A simple guide to writing clear and structured Git commit messages using Conventional Commits.
<type>(<scope>): <subject>- type:
feat,fix,refactor,docs,style,test,chore,perf,ci,build,revert - scope (optional): part of the project affected
- subject: short description (imperative mood, lowercase, no period)
feat(auth): add Google login
fix(navbar): correct overflow on small screens
refactor(user): simplify profile update
docs(readme): add API usage example
style(button): adjust padding and font size
test(cart): add unit tests for cart functions
chore(deps): update project dependencies
perf(images): optimize image loading speed
ci(github-actions): update workflow
revert: revert "feat(auth): add Google login"type(scope): subject
body:
- More details about the change
- Why the change was needed
- Additional notes
footer: BREAKING CHANGE: description of breaking change
feat(cart): add quantity update
- Users can now increase/decrease item quantity in the cart
- Updated total calculation
BREAKING CHANGE: cart API now requires 'quantity' in POST requests