Skip to content

Instantly share code, notes, and snippets.

@baijian
Created December 20, 2013 05:18
Show Gist options
  • Save baijian/8050664 to your computer and use it in GitHub Desktop.
Save baijian/8050664 to your computer and use it in GitHub Desktop.
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