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.

Author: Michael Bishop

I used to wash dishes, now I'm a digital plumber. Proud Tampa native. Public Interest technologist. Sports fan, music lover. he/him

Leave a Reply

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