Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save kolynzb/2e6a57511e300940773dc2e2fa8c0567 to your computer and use it in GitHub Desktop.

Select an option

Save kolynzb/2e6a57511e300940773dc2e2fa8c0567 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: Chore, Docs, Feat, Fix, Refactor, Style, or Test.

More Examples:

  • 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)

References:

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