Reputation: 1321
I created a branch on github. When i try to switch to this newly created branch from Xcode. Xcode not showing in the "Switch to branch" listing. (Neither in local nor origin)
Upvotes: 15
Views: 8117
Reputation: 4688
Synchronization with remotes in git is not automated and must be performed with an command. git fetch origin
instructs git to connect to the remote named origin and get a list of refs and associated objects. This would include the new branch on github. At this point you can checkout the branch with git checkout <branch_name>
.
Upvotes: 29