0% found this document useful (0 votes)
6 views14 pages

Level Up Your Commits

Uploaded by

v.style1100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views14 pages

Level Up Your Commits

Uploaded by

v.style1100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

01/13

Level up your
Git commits
02/13

git commit -m "feat: message"

feat - Introducing
New Features
When you add an exciting new
feature, use 'feat' commit type. It
helps team members identify and
track significant changes easily
03/13

git commit -m "fix: message"

fix - Fixing Bugs


Addressing a bug? Utilize 'fix'
commit type to highlight that the
commit resolves an issue or a
problem in the codebase.
04/13

git commit -m "chore: message"

chore - Miscellaneous
Changes
For non-feature/non-fix updates, like
updating dependencies or
performing routine tasks, use 'chore'
commit type.
05/13

git commit -m "refactor: message"

refactor - Code
Refactoring
When you improve the structure or
readability of the code without
adding features or fixing bugs, use
'refactor' commit type.
06/13

git commit -m "docs: message"

docs - Documentation
Updates
Updating project documentation?
Whether it's the README or other
relevant files, 'docs' commit type
keeps the documentation up to date.
07/13

git commit -m "style: message"

style - Code
Formatting
For changes that don't affect code
behavior but enhance code style or
formatting, like whitespace or
missing semi-colons, use 'style'
commit type.
08/13

git commit -m "test: message"

test - Testing Updates


When you add or modify tests to
ensure code quality and reliability,
use 'test' commit type to keep track
of testing efforts.
09/13

git commit -m "perf: message"

perf - Performance
Improvements
Did you optimize the code to boost
performance? Use 'perf' commit type
to communicate enhancements that
make your code faster and more
efficient.
10/13

git commit -m "ci: message"

ci - Continuous
Integration
Changes related to continuous
integration, such as configuring
pipelines or adjusting build
processes, should use the 'ci' commit
type.
11/13

git commit -m "build: message"

build - Build System


Updates
For changes impacting the build
system or external dependencies,
such as package updates or build
script modifications, use 'build'
commit type.
12/13

git commit -m "revert: message"

revert - Reverting
Changes
Mistakes happen! If you need to
undo a previous commit, use 'revert'
commit type to roll back changes
and restore the previous state.
13/13

Level up
your Git commits

Start using them today!

~ Rishi Meena
Founder/CTO (errsole)

You might also like