SVN 提交时填写log,需要换行的三种方法
方法1
需要使用 $'log\n’才能换行,如果直接在"“使用\n是实现不了换行的。
举个栗子一:
svn ci -m $‘1.修改xxx\n2.优化yyy\n3.去掉zzzz’
svn ci -m $‘This is the first line\nThis is the second line’
栗子二:
只要在11111后面不加”,就可以换行
svn ci -m "11111
22222
33333"
svn ci --targets myfiles.txt -m “another commit”
上传指定文件
svn commit path path -m$‘log’
方法2
直接 svn commit,然后在vim中编辑log(需要bash中提前设置$SVN_EDITOR=vim)
方法3
提交指定文件中的log
-F [–file] ARG : read log message from file ARG