serhii.net

In the middle of the desert you can say anything you want

22 Jul 2024

Git config commentchar for commits starting with hash

Commit messages starting with #14 whatever are awkward as # is the default comment in git rebase and friends.

git config core.commentchar ";"

fixes that for me.

For a one-time thing this works as well:

git -c core.commentChar="|" commit --amend

(escaping - Escape comment character (#) in git commit message - Stack Overflow)

Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus