How to use newline character in text in cmd batch?

后端 未结 12 1846
忘掉有多难
忘掉有多难 2020-12-31 07:08

I would like to do

svn commit -m \"\"

But message should have two lines:

Commit by: firstuser
Bug track: 92         


        
12条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 07:35

    I use the following method and it works:

    svn commit {list of files to commit}
    

    After typing the above command and pressing enter, an editor will open. Write your comment there and exit the editor. Upon exiting the editor, the commit command will execute and whatever you wrote in the editor will be committed too.

提交回复
热议问题