SVN commit with a newline in message

nhenrique picture nhenrique · Jul 4, 2013 · Viewed 28k times · Source

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.

Answer

mnagel picture mnagel · Jul 4, 2013

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