Last Updated: February 25, 2016
· krmbzds

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!