This is a just a simple tool for formatting and wrapping common git commands. It allows for quicker properly formatted commits, automated squashing (to some degree) and less busy-work.
- Install:
npm install -g --save https://github.com/haydncomley/clearscore-jit/tarball/master
- Start:
jit
Pretty simple but just creates a branch that is already formatted based on type - useful when used later with formatted commits.
Remembering the steps for a commit isn't hard but we're all human and forget here and there - this just automates it, formats it correctly and ships it off ready for review (plus you can just paste in a jira ticket URL which makes life way easier).
This is also simple - it just commits current changes to your branch for testing which can be later squished.
Sometimes you forgot that one thing on your branch like a dependency update or a small fix - this just pulls your last commit back to staging, commits your changes and then force pushes them up to the same branch.
This one hopes to automate the process of squashing commits - if there are no conflicts then easy-peasy, one command and a message later you're done. If there are any conflicts just fix them up, re-run it and your should be good to go.
Just quickly hop back to the master branch while keeping your changes in the staging area.