Created
October 30, 2013 17:33
-
-
Save blackymetal/7236734 to your computer and use it in GitHub Desktop.
Sync remote branches local
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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