When a developer go back into time to look for something he has worked on six months ago, many times he does not understand why he made that partic...
For further actions, you may consider blocking this person and/or reporting abuse
I disagree with this. You said it yourself, a commit should explain why a change was made. Be it due to a bug, or to prepare for a new feature, or anything else. The title (first line) should be as you say, short and concise about what the commit does. But the commit body should contain more detailed reasons why. Explain the original bug or give an example on how to use the new feature.
I'm not saying every commit needs this. Sometimes line is enough. But far from always.
Thanks for the comment, I have updated the article adding your inputs and why I mentioned that one linear messages are preferable.
But, in reality, most pros write them like this:
😜
Quite true, even if we shouldn't 😂.
But we are working on it...
That's why we are here to change the reality. Happy Committing Jon.
Absolutely not!
Whether adding fancy metadata to the commit summary is useful or adds clutter is arguable, but saying that adding a well-written commit description below should preferably be skipped is just a very dumb take.
Always always always add as much context as necessary. Whether this means you add one more sentence to clarify why the change was necessary, or add a full description of how a bug was identified, anything that can help another developer figure out why a change was made is valuable information.
Thanks for the comment, I have updated the article adding your inputs.
This reminded me of Commit Logs From Last Night. It apparently got shut down and redirected. There is a version of it here or here (Twitter feed).
My favorite is when frustrated developers fight in the commit messages.
Haha That's funny reading those commit messages.
Thank you @ritikbanger...very helpful article
Thank you @shubhamsigdar
Well written!
Thanks @geazi_anc
very helpful
Thanks @mnish9
Thanks Ritik,
For providing such informative stuff.
Thanks @rawasthi231