How to be a Pro at writing a Commit Message!

Chris Beams has a written an excellent article called How to Write a Git Commit Message on this.

An excerpt from the original article :

The seven rules of a great git commit message

  1. Separate subject from body with a blank line
  2. Limit the subject line to 50 characters
  3. Capitalize the subject line
  4. Do not end the subject line with a period
  5. Use the imperative mood in the subject line
  6. Wrap the body at 72 characters
  7. Use the body to explain what and why vs. how

Following the above will make you a pro, in no time.


Great advice! I love this article. Stumbled upon it a while ago as I was learning my way around git and git committing. Worth going back to it every once in a while.

1 Like

Obligatory xkcd cartoon


This is great! I didn’t know about multi line commit messages, but it makes so much sense now I know about it :slight_smile:

I’ll leave this link here.

1 Like