Skip to content

Instantly share code, notes, and snippets.

Created August 20, 2010 18:10
What would you like to do?

Writing Commit Messages

One line summary (< 50c)

Longer description (wrap at 72c)


  • Less than 50 characters

  • What was changed

  • Imperative present tense (fix, add, change)

      Fix calendar timezone bug
      Add tests for Account#create
      Change file upload limit
  • No period


  • Wrap at 73 characters

  • Why, explain intention and implementation approach

  • Present tense


  • Break up logical changes

  • Use git add -p

  • Make whitespace changes separately

See Also

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