Last active
September 15, 2024 11:07
-
-
Save debashishc/2c9525de5b9f2226ee584c4b16778d2c to your computer and use it in GitHub Desktop.
Structured Git Commit Message
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# <type>(<scope>): <subject> | |
# | |
# <body> | |
# | |
# <footer> | |
# | |
# Types: | |
# feat (new feature) | |
# fix (bug fix) | |
# docs (changes to documentation) | |
# style (formatting, missing semi colons, etc; no code change) | |
# refactor (refactoring production code) | |
# test (adding missing tests, refactoring tests; no production code change) | |
# chore (updating grunt tasks etc; no production code change) | |
# | |
# Scope: | |
# Anything specifying place of the commit change (optional) | |
# Examples: | |
# auth (authentication related changes) | |
# db (database related changes) | |
# api (API related changes) | |
# ui (user interface changes) | |
# config (configuration changes) | |
# perf (performance improvements) | |
# deps (dependency updates) | |
# i18n (internationalization/localization changes) | |
# security (security-related changes) | |
# ci (continuous integration related changes) | |
# | |
# Subject: | |
# Short description of the change in present tense. Not capitalized. No period at the end. | |
# | |
# Body: | |
# More detailed description of the change (optional). Use blank lines to separate paragraphs. | |
# | |
# Footer: | |
# References to issue trackers, breaking changes, etc. (optional) | |
# | |
# Example: | |
# feat(auth): add password reset functionality | |
# | |
# Implement a secure password reset flow using email verification. | |
# - Add PasswordResetController | |
# - Create email templates for reset instructions | |
# - Update user model with reset token field | |
# | |
# Closes #123 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This template includes:
To use this template:
git config --global commit.template ~/.gitmessage
Now, when you run git commit without the -m flag, your default editor will open with this template.