Skip to content

Instantly share code, notes, and snippets.

@huaweigu
Last active April 23, 2017 19:36
Show Gist options
  • Save huaweigu/71a98b29ded67d3a51b055a5d62b12ed to your computer and use it in GitHub Desktop.
Save huaweigu/71a98b29ded67d3a51b055a5d62b12ed to your computer and use it in GitHub Desktop.
How to Write a Git Commit Message
Separate subject from body with a blank line
Limit the subject line to 50 characters
Capitalize the subject line
Do not end the subject line with a period
Use the imperative mood in the subject line
Wrap the body at 72 characters
Use the body to explain what and why vs. how
More: https://chris.beams.io/posts/git-commit/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment