git: Quick Multi-Line Commit Messages
I don’t know why I’m quite so tickled by this, but today I learned
that you can make multi-line git
commit messages by passing multiple
-m
arguments:
$ git commit -m "Stop storing builds on CI server" -m "Who cares?"
[deps-edn 6a67840f] Stop storing builds on CI server
1 file changed, 8 deletions(-)
$ git show
commit 6a67840f7d1aceb92521556e5043a0f928233d49 (HEAD -> deps-edn)
Author: Cameron Desautels <camdez@gmail.com>
Date: Tue Dec 13 21:22:09 2022 -0600
Stop storing builds on CI server
Who cares?
Kind of awesome, right?
FWIW, the lines are not wrapped—only separated by newlines.
Hat tip to Drew Miller on Mastodon.