Skip to content

stefdelec/gitool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published