Skip to content

Instantly share code, notes, and snippets.

@chaance
Forked from joshbuchea/semantic-commit-messages.md
Last active June 29, 2022 13:58
Show Gist options
  • Save chaance/e8f16642be50e69bfef03fc951f953d2 to your computer and use it in GitHub Desktop.
Save chaance/e8f16642be50e69bfef03fc951f953d2 to your computer and use it in GitHub Desktop.
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

feat πŸš€: add hat wobble
^--^  ^------------^
|     |
|     +-> Summary in present tense.
|
+-------> Type: upgrade, chore, docs, feat, fix, refactor, style, or test.

More Examples:

  • upgrade πŸ†™: (updgrade dependencies)
  • feat πŸš€: (new feature for the user, not a new feature for build script)
  • fix πŸ”¨: (bug fix for the user, not a fix to a build script)
  • docs πŸ“–: (changes to the documentation)
  • style οΈπŸ’…: (formatting, missing semi colons, etc; no production code change)
  • refactor ✨: (refactoring production code, eg. renaming a variable)
  • test βœ…: (adding missing tests, refactoring tests; no production code change)
  • chore πŸ’ͺ: (updating grunt tasks etc; no production code change)

Reference(s):

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