pull-branch This will pull your current branch from origin Setup Clone this repo Symbolically link this script to your path ln -s <input-file> <new-symbolic-link> e.g. ln -s pull-branch /usr/local/bin/pull-branch Now you should be able to run the script anywhere