Start interactive commit messages with # (Hash)
Normally git commit
cleans up commit message lines that start with #
due to its default clean-up behaviour.
It's a little cumbersome if you want to write multi-line commit messages in interactive mode & you want to mention issue numbers at the beginning of your commit message.
This is how you should commit:
git commit --cleanup=whitespace
Now everything you write will be a part of the commit message and lines starting with #
will not be escaped.
Happy git commits!
Written by Kerem Bozdas
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Commit
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#