I want to always use --cleanup=whitespace
when creating/editing commit messages (to allow for initial "#"). Unfortunately, I can't find a proper setting to put in ~/.gitconfig
; this one doesn't work:
[commit]
cleanup = whitespace
For normal commits I added --cleanup=whitespace
to my main commit alias, but
I can't figure out how to pass this option to git rebase --interactive
so that I could reword and squash commits and use my preferred cleanup method.
In git 1.8.2 they added the setting I was trying to use:
"git commit" can be told to use --cleanup=whitespace by setting the configuration variable commit.cleanup to 'whitespace'.
Meanwhile, I just started adding a single space before a #
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With