A small commit-message cheat sheet
Conventional prefixes make Git history easier to scan, filter, and discuss.
Conventional commit prefixes make a project history easier to skim, filter, and discuss.
Schema
<type>(<scope>): <subject>
The scope is optional. Keep the subject short and describe the change rather than the process.
Types
build
Build-system or dependency changes.
chore
Maintenance work that does not change the product for users, such as .gitignore or formatting configuration.
feat
A new user-facing capability.
fix
A bug fix.
docs
Documentation changes.
refactor
A code change that is neither a feature nor a bug fix.
perf
A change that improves performance.
style
Styling or formatting work.
test
Adding or changing tests.
The original reference was this conventional commit overview.