Escape comment character (#) in git commit message [duplicate]
This question already has an answer here: Start a git commit message with a hashmark (#) 8 answers I have set mcedit as my editor for git commit messages. By default it ignores any lines starting with the # character. However odd this may seem, I need to be able to have the my commit message looking like this: #FOO-123: Implement bar foo Committing work in progress The #FOO-123: ... is actually the key + title of an issue in our tracker. The tracker can automatically pick up these commit messages and add them to the issue. Unfortunately, the first line gets treated like a comment and gets