DEV Community

Discussion on: A Beginner’s Guide to Git — How to Write a Good Commit Message

Collapse
 
pinotattari profile image
Riccardo Bernardini

I did not know about the double "-m," neat!

I work mostly on personal project (but exported as open source, so I want to maintain a "presentable" look) and I have this habit: I keep two "reference" repositories on two different git providers (typically github and bitbucket). One repository is the official open source rep, the other one is for my own use. When I am working on a specific feature, I create a new branch that I associate with the private rep and use it to save the intermediate states with embarrassing comments like "saving a snapshot."

Whenever I reach a stable, publishable state, I squash the changes in the main branch and publish it on the public rep, this time with a meaningful comment.