Skip to content

Instantly share code, notes, and snippets.

@mattbontrager
Forked from batjaa/git-commit.md
Created February 17, 2017 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattbontrager/1ff84914d02880b842868b6c69ca258b to your computer and use it in GitHub Desktop.
Save mattbontrager/1ff84914d02880b842868b6c69ca258b to your computer and use it in GitHub Desktop.
Git Commit Messages

Git Commit Messages

  • Use the Present Tense ("Add feature" not "Added feature").
  • Use the Imperative Mood ("Move cursor to..." not "Moves cursor to...").
  • Limit the subject line to 50 characters
  • Wrap the body at 72 characters
  • Reference issues and pull requests
  • When only changing documentation, include [ci skip] in the commit description
  • Be creative with emojies
    • πŸŽ‰ :tada: Initial commit
    • 🎨 :art: when improving the format/structure of the code
    • 🐎 :racehorse: when improving performance
    • πŸ“š :books: when writing docs
    • ✏️ :pencil2: when fixing typos
    • πŸ› :bug: when fixing a bug
    • πŸ”₯ :fire: when removing code or files
    • πŸ’š :green_heart: when fixing the CI build
    • βœ… :white_check_mark: when adding tests
    • πŸ”’ :lock: when dealing with security
    • ⬆️ :arrow_up: when upgrading dependencies
    • ⬇️ :arrow_down: when downgrading dependencies
    • πŸ‘• :shirt: when removing linter warnings
    • 🚧 :construction: work in progress
    • ✨ :sparkles: when adding feature
    • πŸ’„ :lipstick: when improving UI
    • πŸ’Ž :gem: new release
    • πŸš€ :rocket: Anything related to Deployments/DevOps

Thanks to…

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