Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I see the current git branch on Xcode9?

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?

like image 779
akshay1188 Avatar asked Jan 12 '18 21:01

akshay1188


People also ask

How do I change branches in Xcode?

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.

How do I merge branches in Xcode?

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]”.


1 Answers

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).

Source Code navigator

like image 99
Tamás Sengel Avatar answered Sep 21 '22 06:09

Tamás Sengel