Skip to content

Instantly share code, notes, and snippets.

@brianrip
Last active February 25, 2016 16:47
Show Gist options
  • Save brianrip/a48353998327f035de28 to your computer and use it in GitHub Desktop.
Save brianrip/a48353998327f035de28 to your computer and use it in GitHub Desktop.
proper git commit practice

How to format and define git commits

Rules of thumb

  • Capitalized
  • 50 chars or less summary
  • if detailed explanation neccessary - wrap body @ 72 chars
  • Use imperative mood in subject line
  • Blank line seperating subject and body. Do not end subject line with period
  • Bullet points are ok using hyphen or asterisk
  • Use body to describe "what and why" verus "how"
  • embrace the command line
  • read "Pro Git"

Good examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment