How can I make git commit messages divide into multiple lines? -


when use git log check out commit explanatory note like

1. changed 2. blank line 3. why changed 

in 3 lines not 1. changed 2. blank line 3. why changed in 1 line.

you use following command:

$ git commit -m "1. changed > 2. blank line > 3. why changed" 

in terminal, hit 'enter' new line. commit message won't end until add closing quote. git log like:

$ git log commit abcde2f660c707br2d20411581c4183170c3p0c2 author: alex pan <alexpan@stackoverflow.com> date:   tue apr 28 20:52:44 2015 -0700      1. changed     2. blank line     3. why changed 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -