Skip to content

Instantly share code, notes, and snippets.

@slashedzer0
Last active March 25, 2025 03:42
Show Gist options
  • Save slashedzer0/a467946e40ad141ca2935cbe8f857ece to your computer and use it in GitHub Desktop.
Save slashedzer0/a467946e40ad141ca2935cbe8f857ece to your computer and use it in GitHub Desktop.

πŸ“ Commit Message Template

Choose the one that fits the best below.

Step 1: Choose Your Commit Type and Gitmoji

Select the type of change (choose one):

  • 🎨 Improve structure / format of the code
  • ⚑️ Improve performance
  • πŸ”₯ Remove code or files
  • πŸ› Fix a bug
  • πŸš‘οΈ Critical hotfix
  • ✨ Introduce new features
  • πŸ“ Add or update documentation
  • πŸš€ Deploy stuff
  • πŸ’„ Add or update the UI and style files
  • πŸŽ‰ Initial commit
  • βœ… Add, update, or pass tests
  • πŸ”’ Fix security or privacy issues
  • πŸ” Add or update secrets
  • πŸ”– Release / Version tags
  • 🚨 Fix compiler / linter warnings
  • 🚧 Work in progress
  • πŸ’š Fix CI Build
  • ⬇️ Downgrade dependencies
  • ⬆️ Upgrade dependencies
  • πŸ“Œ Pin dependencies to specific versions
  • πŸ‘· Add or update CI build system
  • πŸ“ˆ Add or update analytics or track code
  • ♻️ Refactor code
  • βž• Add a dependency
  • βž– Remove a dependency
  • πŸ”§ Add or update configuration files
  • πŸ”¨ Add or update development scripts
  • 🌐 Internationalization and localization
  • ✏️ Fix typos
  • πŸ’© Write bad code that needs to be improved
  • βͺ Revert changes
  • πŸ”€ Merge branches
  • πŸ“¦ Add or update compiled files or packages
  • πŸ‘½οΈ Update code due to external API changes
  • 🚚 Move or rename resources (e.g.: files, paths, routes)
  • πŸ“„ Add or update license
  • πŸ’₯ Introduce breaking changes
  • 🍱 Add or update assets
  • ♿️ Improve accessibility
  • πŸ’‘ Add or update comments in source code
  • 🍻 Write code drunkenly
  • πŸ’¬ Add or update text and literals
  • πŸ—ƒοΈ Perform database related changes
  • πŸ”Š Add or update logs
  • πŸ”‡ Remove logs
  • πŸ‘₯ Add or update contributor(s)
  • 🚸 Improve user experience / usability
  • πŸ—οΈ Make architectural changes
  • πŸ“± Work on responsive design
  • 🀑 Mock things
  • πŸ₯š Add or update an easter egg
  • πŸ™ˆ Add or update a .gitignore file
  • πŸ“Έ Add or update snapshots
  • βš—οΈ Perform experiments
  • πŸ” Improve SEO
  • 🏷️ Add or update types
  • 🌱 Add or update seed files
  • 🚩 Add, update, or remove feature flags
  • πŸ₯… Catch errors
  • πŸ’« Add or update animations and transitions
  • πŸ—‘οΈ Deprecate code that needs to be cleaned up
  • πŸ›‚ Work on code related to authorization, roles and permissions
  • 🩹 Simple fix for a non-critical issue
  • 🧐 Data exploration/inspection
  • ⚰️ Remove dead code
  • πŸ§ͺ Add a failing test
  • πŸ‘” Add or update business logic
  • 🩺 Add or update healthcheck
  • 🧱 Infrastructure related changes
  • πŸ§‘β€πŸ’» Improve developer experience
  • πŸ’Έ Add sponsorships or money related infrastructure
  • 🧡 Add or update code related to multithreading or concurrency
  • 🦺 Add or update code related to validation

Step 2: Specify Scope (Optional)

Enter the scope in parentheses (e.g., auth, api, ui, components, account, etc.):


Step 3: Write Short Description

Write a brief, imperative description (e.g., "add user authentication"):


Format Rules

  1. Structure: [(scope)]:
  2. Use imperative mood ("add" not "added")
  3. Description should be lowercase
  4. No period at the end of the description
  5. Keep commit message under 72 characters

Examples:

  • ⚑️ lazyload home screen images
  • πŸ› fix onClick event handler
  • πŸ”– bump version 1.2.0
  • ♻️ (components): transform classes to hooks
  • πŸ“ˆ add analytics to the dashboard
  • 🌐 support Japanese language
  • ♿️ (account): improve modals a11y

Tips:

  • Look for main keyword and use only strict emoji (max 1)
  • Be specific in your scope
  • Keep descriptions concise but informative
  • Always mention breaking changes
  • Reference issues when applicable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment