DEV Community

Discussion on: The Dos and Don'ts of Creating Good Git Commits

Collapse
 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard

There Is More Than One Way To Do It as the Perl guys say.

You describe how to do it when the commit is the unit of work.

I prefer the GitHub way where the Pull Request is the unit of work.

You still should strive for doing small focused pull requests

However the individual commits inside them don't matter much. I'm doing pr: handle comments commits all the time. When the PR gets approved, we just squash the whole thing so who cares?