CIT
Automatically add branch to commit message | add, commit and push in one command | quick git.
cit c "npm install me" -n
CIT is tiny and easy to use. It aims to increase the git flow where structured commits and branches are required.
❯ Install
Install with npm:
$ npm install @sanderhelleso/cit -g
❯ Usage
Commit
Commit to current branch with branch name prefixed to commit message
Commit
$ cit c "message"
Commit and add
$ cit c "message" -a
Commit, add and push
$ cit c "message" -a -p "branch"
Checkout branch
Checkout to provided branch or create a new branch
Checkout existing branch
$ cit b "name"
Checkout new branch
$ cit b "name" -n
Add all changes to current branch
Add all new git changes in current directory to current branch
$ cit a
Push all commits to branch
Pushes all commits to specified branch from the current branch
$ cit p "name"
Show current branch
Shows the current git branch of the current git project
$ cit l
❯ LICENCE
MIT