Skip to content

Instantly share code, notes, and snippets.

@kevinawoo
Last active April 1, 2016 00:58
Show Gist options
  • Save kevinawoo/c2c38102abed3568c88968dddcb5e740 to your computer and use it in GitHub Desktop.
Save kevinawoo/c2c38102abed3568c88968dddcb5e740 to your computer and use it in GitHub Desktop.

Git Commit Messages

  • Messages answers the following sentence:

    Apply this commit to _______________

  • Use the present tense ("Add feature" not "Added feature")
  • Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
  • Limit the first line to 72 characters or less
  • Reference issues and pull requests liberally
  • When only changing documentation, include [ci skip] in the commit description
  • Consider starting the commit message with an applicable emoji:
    • ✨ :sparkles: adding something new
    • πŸ’„ :lipstick: when improving the format/structure of the code
    • 🐎 :racehorse: when improving performance
    • 🚱 :non-potable_water: when plugging memory leaks
    • πŸ“ :memo: when writing docs
    • πŸ› :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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment