git-if

Install

All systems
curl cmd.cat/git-if.sh
OS X
brew install git-if

git-if