128: Git Commit Message Subject Conventions
August 1, 2017
Posted by on
Some conventions that should be followed when writing the subject of a commit message in Git:
- Separate the subject from the body (if it exists) with a blank line
- Keep the length at no more than 50 characters
- Capitalize the first letter, don’t end it with a period
- Use the imperative mood. For instance, “Update getting started information” instead of “Updated getting started information”, “Refactor X for readability” instead of “Making X more readable”.
Additionally, a commit message subject should convey information about not only what was done but also why.