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!

Say Thanks
Filed Under

Awesome Job

Cf448620 1654 11e8 9817 2b2a15567933
PHP Back-End Developer
Ch√Ęteauguay,Quebec, Canada
Full Time