Git commit message starting with hash (#)

If You need to have a commit message starting with a hash (#), e.g. when using some ticket systems, use --cleanup=whitespace. This turns Git functionality to ignore lines with hash at the beginning off.
git commit --cleanup=whitespace

Alternatively You can use the hash sign when specifying commit message directly from command line.
git commit -m "#525 - ticket resolution"

Be aware! Do not forget to remove all # lines that you don't want to appear in git commit log, e.g. default Git summary describing commited files.


  1. It's very great to see your post!I like it .I'm looking forward to you in the next post.Thank you .There is a dell recovery software to you.

  2. Wow, so thankful! I like your blog very much. By the way, you can choose some discount ray ban sunglasses here.