Skip to content

Instantly share code, notes, and snippets.

@rgwozdz
Created November 19, 2013 17:38
Show Gist options
  • Save rgwozdz/7549239 to your computer and use it in GitHub Desktop.
Save rgwozdz/7549239 to your computer and use it in GitHub Desktop.
#Before you can start working locally on a remote branch, you need to fetch it as called out in answers below.
#To fetch a branch, you simply need to:
git fetch origin
#This will fetch all of the remote branches for you. With the remote branches in hand, you now need to check out the branch you are interested in, giving you a local working copy:
git checkout -b test origin/test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment