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
Post a Comment