@arianee/gitool
v1.24.0
Published
[![Build Status](https://travis-ci.org/stefdelec/gitool.svg?branch=master)](https://travis-ci.org/stefdelec/gitool) [![npm version](https://img.shields.io/npm/v/gitool.svg?style=flat)](https://www.npmjs.com/package/gitool)
Downloads
222
Keywords
Readme
gitool
Gitool helps you always have the right format for your commit message. Following https://www.conventionalcommits.org/en/v1.0.0/
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
pretty print
gitool --prettyPrint --pn=ProjectName --v=1.23.2
gitool -p --pn=ProjectName --v=1.23.2
(groupBy type by default)
gitool -p groupBy='type' --pn=ProjectName --v=1.23.2
gitool -pg='type' --pn=ProjectName --v=1.23.2
gitool -pg='scope' --pn=ProjectName --v=1.23.2
gitool -pg='type' --filters='feat|fix' --pn=ProjectName --v=1.23.2
gitool -p --pn=ProjectName --v=1.23.2
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
"postversion": "gitool -p --pn=ProjectName --v=1.23.2"
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
cane
shortcut for
git add . && git commit -m "release(changelog): Update changelog.md [CI SKIP]"
force
rebase on master or branch + push force
gitool -force
gitool -force -branch=develop
gitool -fb=develop