Clean Git Commit Messages

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.

Responding with a post on your own blog? Send me a Webmention by writing something on your website that links to this post and then enter your post URL below.

  • No Reposts.

Got Something To Say?

Your email address will not be published. Required fields are marked *