Skip to content

Latest commit

 

History

History
109 lines (88 loc) · 1.8 KB

File metadata and controls

109 lines (88 loc) · 1.8 KB

GIT Commit Shorthand commands

build:

Changes that affect the build system or external dependencies (e.g., npm, make).

bash Copy code

git commit -m "build: update build configuration"

chore:

Routine tasks, maintenance, or housekeeping chores that are not related to the production code (e.g., updating tasks, tools).

bash Copy code

git commit -m "chore: clean up unused files"

ci:

Changes to the continuous integration (CI) configuration and scripts.

bash Copy code

git commit -m "ci: configure Travis CI for automated builds"

docs:

Documentation changes, including both code comments and documentation files.

bash Copy code

git commit -m "docs: update README with usage instructions"

feat:

A new feature introduced to the codebase.

bash Copy code

git commit -m "feat: add user authentication feature"

fix:

A bug fix in the code.

bash Copy code

git commit -m "fix: resolve issue with user login"

perf:

Performance improvements or optimizations in the code.

bash Copy code

git commit -m "perf: optimize rendering for faster page loads"

refactor:

Code changes that neither fix a bug nor add a feature, typically restructuring or cleaning up code.

bash Copy code

git commit -m "refactor: simplify function implementation"

revert:

Reverting a previous commit.

bash Copy code

git commit -m "revert: revert changes made in commit abc123"

style:

Code style changes (e.g., formatting, indentation) that do not affect the logic.

bash Copy code

git commit -m "style: format code according to style guide"

test:

Adding or modifying tests.

bash Copy code

git commit -m "test: add unit tests for authentication module"