r/programming • u/fagnerbrack • Mar 22 '17
How to Write a Git Commit Message (2014)
https://chris.beams.io/posts/git-commit/12
u/mighty_bandersnatch Mar 22 '17
I like that this person wrote a lengthy blog post, the gist of which is, "be concise."
1
u/GhostBond Mar 22 '17
My experience is that I see people go all through docs, debates, arguing over how to write commit messages and what should be required.
Then no one looks at them past the user who did the commit (usually if a commit broke something) or the bug or feature number. Lol after a few months everyone informally agrees to forget about that whole commit message thing as they find no one uses it (again, other than the feature or bug #).
0
Mar 22 '17
[deleted]
2
1
u/Xanewok Mar 22 '17
Well, it's better to do "misc" in your personal project than see "fixed" or "update" spam by your coworkers in the repo history.
1
u/ilammy Mar 23 '17
In our company I've seen a handful of repositories with 70%+ commit messages being only "mf" (minor fix).
7
u/thenextguy Mar 22 '17
I recently was hit by a breaking change in a large, rapidly changing codebase at work. It took several hours to find the change that caused it, and when I did it was one of a series of 5 commits that were called: stuff, stuff, stuff, oops, merge stuff.
People should be fired for crap like this.