Conventional Commit
Conventional Commits
Defining a standard format for commit changes,which can be processed by automated tools to produce documentation.
<type>[(optional <scope>)]: <description>
[optional <body>]
[optional <footer>]
-
type
build
: build system and dependencieschange
: changes to the implementation of existing featurechore
:ci
: continous integration or continous delivery scriptsdeprecate
: deprecate existing featuresAdocs
: adds,updates,revises documentation related to applcationfeat
: new featurefix
: commit to fix defect in the applicationperf
: increase performance of algorithm,without fundamental changes in existing featurerefactor
: refactor existing code,does not change existing featuresremove
: remove a featurerevert
: revert one or more commitssecurity
: resolves security issue.style
: reformats the style of source codetest
: automated tests of the product/application
-
Description very short summary of the intent,or title for the body
-
Body additional details in the commit,which can include multiple paragraphs to describe the change.
-
Footer
Close
,Closes
,Closed
,Fix
,Fixes
,Fixed
,Resolves
Automated Version Numbering
fix
: increase the patch number according to semver.org
feat
: reset patch version and increase minor version, 1.2.4
changes to 1.3.0
patch number is reset.
BREAKING CHANGE
: presence of BREAKING CHANGE header increases Major version
-
git log --oneline
- prints out the subject in one line -
git shortlog
- prints one line subject and user -
Subject lines should be capitalized