Commit Messages
From Good Git Commit Messages
Go to text ā
The Summary Line
- 50-72 character slong
- describes all the changes briefly - might be the only thing a reader reads
- Starts with a capital - no period at the end
- "After this commit, the application will... (summary line)"
- For changes where that doesn't fit: "In this commit, I will... (summary line)"
- consider using a
[category]prefix like ([documentation])
From Good Git Commit Messages
Go to text ā
Template
Use Markdown to format your messages.
Feature
The summary line
----one blank line-----
[POV User - What problem is being solved?]
[POV User - What kind of user is benefitting from this feature?]
[POV Manager - Why this solution? What alternatives you considered? Explain your thought process]
[POV Manager - Risks? Tech Debt?]
[POV Code - Explain non-obvious code changes, bullet points per file]
[POV Code - Give evidence that the commit works.]
[POV Git - Mention issues, external discussions related]
Bugs
The summary line
----one blank line-----
[POV User - What problem is being solved?]
[POV User - how was it found/is it reproduced]
[POV Manager - What was the problem in the code?]
[POV Manager - Why this solution? What alternatives you considered? Explain your thought process]
[POV Manager - Risks? Tech Debt?]
[POV Code - Explain non-obvious code changes, bullet points per file]
[POV Code - Give evidence that the commit works.]
[POV Git - Mention commit that introduced the bug]
[POV Git - Mention issues, external discussions related]