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
Written by J. Nunn
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#