Last Updated: February 25, 2016
· alanthing

A better way to setup git flow

Add the alias git flow-setup by running the following command once:

$ git config --global alias.flow-setup '!git branch --track develop origin/develop 2>/dev/null ; git flow init -fd && git checkout master && git pull origin master && git checkout develop && git pull origin develop'

To use, clone a git repository and run:

$ git clone https://github.com/blah/blah.git
$ cd git
$ git flow-setup