我有麻烦找到菜单项切换分支使用 Xcode 9。工作副本菜单似乎消失了。有什么想法吗?
Xcode 9
Xcode 8
master
To switch to a different branch
Checkout...
Checkout
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):
Now select the second tab:
Right click on the branch you are intending to checkout and hit the checkout button from menu:
Follow the below link for the clear explanation of each and every functionality like, Commit, pull, push, etc.
https://www.raywenderlich.com/153084/use-git-source-control-xcode-9
1) Press show navigator button (top right corner of Xcode):
2) Show the project navigator, expand Remotes folder:
Remotes
3) Expand the origin folder, right click the branch you want to use, and click Checkout....
It seems that Apple has moved Source Controls feature like change branch, version history to separate tab in Navigator area for Xcode 9.x
change branch
version history
Below are step to perform branch switch :
Navigator area
Source control navigator
Branches
Tag
Now, if you want to switch branch then select the branch to switch and right click on it.
Select Checkout. This will prompt an alert Do you want to check out “<branch name>”? Select Checkout.
Do you want to check out “<branch name>”?
Note: In order to switch between branches you need to commit or discard changes done in project.