Skip to content

Instantly share code, notes, and snippets.

@gauravchl
Created December 25, 2017 15:43
Show Gist options
  • Save gauravchl/2ad719edcc8e7888765d942ed3195ddc to your computer and use it in GitHub Desktop.
Save gauravchl/2ad719edcc8e7888765d942ed3195ddc to your computer and use it in GitHub Desktop.
Git commit message spec

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 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:
🎨 :art: when improving the format/structure of the code
🐎 :racehorse: when improving performance
🚱 :non-potable_water: when plugging memory leaks
πŸ“ :memo: when writing docs
🐧 :penguin: when fixing something on Linux
🍎 :apple: when fixing something on macOS
🏁 :checkered_flag: when fixing something on Windows
πŸ› :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 l  Β Β  inter warnings
✨ :sparkles: new feature
πŸ’„ :lipstick: Improve design, cosmetic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment