After doing the interactive redirect in git, I want to have a commit message that starts with the # character (hash or pound), but lines starting with # are treated as comments and are ignored.
Is there a way to escape the # character so that my transfer message really starts with # ?
More details
I am performing an interactive reboot using:
git rebase -i HEAD~4
Then in the editor I do everything that is necessary, for example:
pick b010299
Then git loads the commit message in my text editor for the commit that I want to rewrite, but I want to save the commit message with # at the beginning:
#91691 Implement log-in feature
But that means my commit message will be ignored. How do I make a commit #91691 Implement log-in feature message?
source share