Ammar Mujeeb
Ammar Mujeeb

Reputation: 1321

Newly created branch on github not showing in Xcode "switch to branch" option

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

Answers (1)

Ben Campbell
Ben Campbell

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

Related Questions