Hacker News new | ask | show | jobs
by meander_water 451 days ago
This focuses on the format of the git message, but I would argue what matters more is the content.

The most important thing to convey in a git commit message is the why, not the what or how.

The title should be a short summary of the change (the what), so that it can easily be searched for.

The description should explain why this change needed to be made. The how and the what can be determined by reading the code. But more often than not, explaining the why helps to clarify intent so that future readers can determine if your rationale still holds.