Last Updated: February 25, 2016
·
319
· jbnunn

Fetching and tracking a remote Git branch

I never can remember how to track and start working off of a branch posted by a member of my team. First, make sure you have the latest info from Github pulled down with

git fetch

Then, use the git branch --track command to track the branch name

git branch --track branch-name origin/branch-name