In Xcode 8, the current branch was visible under the 'Source Control' menu. Xcode 9 has a new 'Source Control Navigator'. But you have to scroll (or expand the folder structure) to see the branch that is marked as (current). Is there an easier and probably faster way to know what my current git branch is on Xcode 9?
In the navigation pane of the repositories organizer, click the working copy folder for the repository. Click the Switch Branch button at the bottom of the Organizer window. In the Select a Branch dialog, choose the branch you want to use from the pop-up menu. Click OK to confirm the switch.
In the Repositories navigator, expand your repository and the Branches folder. Select the branch you want to merge into, and then Control-click and choose Checkout to make that branch the current branch. Select the branch you want to merge from, and then Control-click and choose “Merge [from branch] into [to branch]”.
Navigate to Source Control navigator (the second item on the left sidebar). You will see the name of the current branch next to the project folder's name (in this case, dev).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With