Contains additional useful git commands.
- Git v2
- Hub v2
Clone this repo and add the directory to your PATH
.
git clone https://github.com/highwayoflife/git-scripts ~/.git-scripts
echo "export PATH="${HOME}/.git-scripts:$PATH" >> ~/.zshrc
git activity
- Pretty-print log activity across all branches.git merge-pr <PR-NUMBER>
- Merge a desired Pull Request to Mastergit merge-branch
- Pull-Request Merge current Branch to Mastergit create-pr
- Shortcut to push branch and create a pull-request
Add the following aliases to .bashrc
, .bash_profile
, or .zshrc
alias pr="git create-pr"
alias push="git push-branch"
alias merge="git merge-branch"
alias pr-merge="git merge-pr"