Skip to content

Instantly share code, notes, and snippets.

@blackymetal
Created October 30, 2013 17:33
Show Gist options
  • Save blackymetal/7236734 to your computer and use it in GitHub Desktop.
Save blackymetal/7236734 to your computer and use it in GitHub Desktop.
Sync remote branches local
Sync remote branch that local git repo is not aware of yet:
git remote show origin
If the remote branch you want to checkout is under "New remote branches" and not "Tracked remote branches" then you need to fetch them first:
git remote update
git fetch
Now it should work:
git checkout -b local-name origin/remote-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment