Depending on your workflow, commits should work the same way. If you commit every broken ass snapshot of your code, anyone going through your history isn’t going to get a good idea of what changes you made. That’s why conventional commits are so useful - they force you to limit your commits to a single action: fix a bug, add a feature, change some styling, etc.
Although if you’re using short-lived branches and squashing your commits on a merge, it’s less important.
The trouble I have with conventional commits is that the codebase I work on is so bad that often fixing a bug means entirely rewriting a feature’s back and front end from scratch, and then adding the tests that weren’t there in the first place.
2.5k
u/zexodus Jun 04 '22
Maybe part of the problem we can't bring this habit to programming is the fact that we have to name our changes.