gitool
v1.25.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
41
Readme
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
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'
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
cane
shortcut for
git add . && git commit --amend --no-edit
rePrepare
shortcut for git add . && git commit --amend --no-edit
- rebase on main
- push
force
rebase on develop or branch + push force
gitool -force
gitool -force -branch=master
gitool -fb=master