Gitool helps you always have the right format for your commit message. Following https://www.conventionalcommits.org/en/v1.0.0-beta.2/
any gitool command can be called with gitool
or gt
For last one:
gitool --checkCommit
For last 3
gitool --checkCommit --last=3
or gitool -c -l=3
or gitool -cl=3
gitool --prettyPrint
gitool -p
(groupBy type by default)
gitool -p groupBy='type'
gitool -pg='type'
gitool -pg='scope'
gitool -pg='scope' --tag=3
gitool -pg='type' --tag=3 --filters='feat|fix'
gitool -p --tag
output commits from last tag
Output a file:
gitool -po=releasechangelogNote.md'
gitool -p --output=changelog.md'
example of this repo here
Add this in your package.json
"prepublish": "npm test && npm version minor && node index.js -pao=changelog.md --tag=1 && git push"
gitool --messageComposer --test
to test the functionality
or gitool -mt
and
gitool --messageComposer
to make a real commit
gitool --m
to make a real commit
shortcut for
git add . && git commit --amend --no-edit
rebase on develop or branch + push force
gitool -force
gitool -force -branch=master
gitool -fb=master