DEV Community

Mohammad-Ali A'RÂBI
Mohammad-Ali A'RÂBI

Posted on

Ten Commandments of Git Commit Messages

0. The git commit message shall not be empty
1. Separate header from body, and body from footer with a blank line
2. Limit the header to 72 characters
3. Use sentence case for the subject
4. Do not end the subject with a period
5. Use the imperative mood in the subject
6. Wrap the body and footer at 72 characters
7. Use the body to explain what and why vs. how
8. Use types for semantic versioning
9. Use footer to connect to issues and designate breaking changes

For explanations and automation means, please refer to the original Medium article.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay