Escape # character in interactive rebase commit message
<p>After performing an interactive rebase in git I want to have a commit message that starts with the <code>#</code> (hash, or pound) character, but lines starting with <code>#</code> are treated as comments and ignored.</p>

<p>Is there any way to escape the <code>#</code> character to make my commit message actually start with a <code>#</code>?</p>

<p><strong>More Details</strong></p>

<p>I am performing an interactive rebase using:</p>

<pre><code>git rebase -i HEAD~4
</code></pre>

<p>Then, in the editor I am doing whatever is needed, e.g.:</p>

<pre><code>pick b010299 #91691 Add test for logging in with valid credentials
reword 5e9159d 91691 Implement log-in feature
pick 2735aa3 #91691 Re-factor logic
pick 14bd500 #91691 Tidy up 'using' declarations

# Rebase 60d6e3f..14bd500 onto 60d6e3f
#
# Commands:
#  p, pick = use commit
#  r, reword = use commit, but edit the commit message
#  e, edit = use commit, but stop for amending
#  s, squash = use commit, but meld into previous commit
#  f, fixup = like "squash", but discard this commit's log message
#  x, exec = run command (the rest of the line) using shell
#
# These lines can be re-ordered; they are executed from top to bottom.
#
# If you remove a line here THAT COMMIT WILL BE LOST.
#
# However, if you remove everything, the rebase will be aborted.
#
# Note that empty commits are commented out
</code></pre>

<p>Then git loads the commit message in my text editor for the commit I want to reword, but I want to save my commit message with a <code>#</code> at the beginning:</p>

<pre><code>#91691 Implement log-in feature

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# rebase in progress; onto 60d6e3f
# You are currently editing a commit while rebasing branch 'master' on '60d6e3f'.
#
# Changes to be committed:
#   modified:   My.Website.LogInController.cs
</code></pre>

<p>But that means my commit message will be ignored. How do I go about making the commit message <code>#91691 Implement log-in feature</code>?</p>