DEV Community

Discussion on: How to Write Useful Commit Messages (My Commit Message Template)

Collapse
 
benstigsen profile image
Benjamin Stigsen

I usually don't specify the WHY, unless something was rewritten. I usually do:

Additions, changes/fixes and removals

Additions:
 - Added class <Bar>
     - Added new function <foo()> for handling input
 - ... 

Fixes:
- ...

Changes:
- Updated README.md
    - Added todo list
- ... 

Removed:
- ... 
Collapse
 
jacobherrington profile image
Jacob Herrington (he/him)

I can see how this would be useful, but I think Ben's point about why people look at commit messages is super important.

I don't use git blame to find out what was done nearly as often as why.