I have been experimenting with custom git commit message templates for about 6 months, and it’s been good. Comments in the template remind me to write a meaningful message and describe the commit.(That’s not to say when taxed and frustrated, I don’t write the ocassional kill me now
message.)
However, in a couple of situations, my commented lines starting with # show up in the commit logs. Not pretty. So today I learned you can add cleanup = strip
to your .gitconfig
file, thus stripping the commented lines and clean and meaningful commit messages.
Got Something To Say?