Skip to content

Instantly share code, notes, and snippets.

@DmitriyLyalyuev
Last active August 1, 2018 06:59
Show Gist options
  • Save DmitriyLyalyuev/3a184e8866560b5fb9c4a6b32d49c22b to your computer and use it in GitHub Desktop.
Save DmitriyLyalyuev/3a184e8866560b5fb9c4a6b32d49c22b to your computer and use it in GitHub Desktop.
Git commit template
[tag][#ISSUE] Subject
# |<---- Using a Maximum Of 50 Characters ---->|
Description
BREAKING CHANGES:
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# --- COMMIT END ---
# Tag can be
# feat (new feature)
# fix (bug fix)
# refactor (refactoring production code)
# style (formatting, missing semi colons, etc; no code change)
# docs (changes to documentation)
# ci (changes in CI configurations)
# version (version bump/new release; no production code change)
# hack (Temporary fix to make things move forward; please avoid it)
# WIP (Work In Progress; for intermediate commits to keep patches reasonably sized)
#
# Note: Multiple tags can be combined, e.g. [fix][jsr292] Fix issue X with methodhandles
To setup git commit tempate:
$ git config --global commit.template ~/.gitcommit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment