Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN commit with a newline in message [duplicate]

I am trying to to an svn commit with a new line in message

how can i do this newline? I have tried

svn commit -m "Issue \n solution" file.js 

but it didnt work obviously.

like image 720
nhenrique Avatar asked Jul 04 '13 11:07

nhenrique


People also ask

How do I create a multi line message commit?

Another method of adding a multi-line Git commit message is using quotes with your message, though it depends on your shell's capacity. To do this, add single or double quotes before typing the message, keep pressing enter and writing the next line, and finally close the quote at end of the message.

How do I commit changes to SVN?

Select any file and/or folders you want to commit, then TortoiseSVN → Commit.... The commit dialog will show you every changed file, including added, deleted and unversioned files. If you don't want a changed file to be committed, just uncheck that file.

Can we change the commit message in SVN?

By default, the log message property (svn:log) cannot be edited once it is committed. That is because changes to revision properties (of which svn:log is one) cause the property's previous value to be permanently discarded, and Subversion tries to prevent you from doing this accidentally.


1 Answers

alternatively, just do not specify -m (and not -F) and you will be shown an editor where you can type your message:

Send changes from your working copy to the repository. If you do not supply a log message with your commit by using either the --file (-F) or --message (-m) option, svn will launch your editor for you to compose a commit message. See the editor-cmd list entry in the section called “Config”.

http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.commit.html

like image 190
mnagel Avatar answered Sep 26 '22 08:09

mnagel