Skip to content

Instantly share code, notes, and snippets.

@PtaxLaine
Forked from joshbuchea/semantic-commit-messages.md
Last active January 12, 2024 01:16
Show Gist options
  • Save PtaxLaine/2ee9a8da48b81ca80d155b949a63bad5 to your computer and use it in GitHub Desktop.
Save PtaxLaine/2ee9a8da48b81ca80d155b949a63bad5 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

ADD add hat wobble
^-^ ^------------^
|    |
|    +-> Summary in present tense.
|
+-------> Type: some off below
  • ADD: (new feature for the user, not a new feature for build script)
  • BLD: (build/CI script updates)
  • FOC: (bug fix for the user, not a fix to a build script)
  • DOC: (changes to the documentation)
  • REF: (refactoring production code, eg. renaming a variable)
  • TEST: (adding missing tests, refactoring tests; no production code change)
  • STYLE: (formatting, missing semi colons, etc; 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