Skip to content

Instantly share code, notes, and snippets.

@m4n
Created August 22, 2010 21:32
Show Gist options
  • Save m4n/544303 to your computer and use it in GitHub Desktop.
Save m4n/544303 to your computer and use it in GitHub Desktop.

Writing Commit Messages

One line summary (< 50c)

Longer description (wrap at 72c)

Summary

  • 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

Description

  • Wrap at 72 characters

  • Why, explain intention and implementation approach

  • Present tense

Atomicity

  • 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