Skip to content

Latest commit

 

History

History
79 lines (50 loc) · 1.9 KB

README.md

File metadata and controls

79 lines (50 loc) · 1.9 KB

Build Status npm version

gitool

Gitool helps you always have the right format for your commit message. Following https://www.conventionalcommits.org/en/v1.0.0-beta.2/

alias

any gitool command can be called with gitool or gt

check commit format

For last one: gitool --checkCommit

For last 3 gitool --checkCommit --last=3 or gitool -c -l=3 or gitool -cl=3

alt text

pretty print

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'

alt text

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"

message composer

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

alt text

cane

shortcut for

git add . && git commit --amend --no-edit

force

rebase on develop or branch + push force

gitool -force gitool -force -branch=master gitool -fb=master