Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switching branch on Xcode 9

I am having trouble finding the menu item to switch branch using Xcode 9. The working copies menu seems to have disappeared. Any ideas?

Xcode 9

enter image description here

Xcode 8

enter image description here

like image 244
Alexander MacLeod Avatar asked Jun 06 '17 17:06

Alexander MacLeod


2 Answers

  • Press ⌘2 to open the new Source Control Navigator.
  • Right-click on the master icon.

enter image description here

To switch to a different branch

  • Right-click on a non-current branch
  • Choose Checkout...
  • Press or click on the Checkout button.

enter image description here

like image 114
vadian Avatar answered Oct 05 '22 23:10

vadian


Expose the left side window (Navigator) in your Xcode by selecting this option (you will see this on the top right side of your Xcode window):

Enabling the Navigator

Now select the second tab:

Selecting the Source control tab

Right click on the branch you are intending to checkout and hit the checkout button from menu: Checking out the branch

like image 22
Rushabh Avatar answered Oct 06 '22 00:10

Rushabh