Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio for mac: how to create new git branch

In Visual Studio for mac I connected and checked out a project from git repository. I call context menu by clicking on the project and see this

enter image description here

enter image description here

Could someone tell me where to create a new branch?

like image 762
Vitalii Avatar asked Mar 10 '26 20:03

Vitalii


1 Answers

In order to switch to a branch it has to be available locally. If it is not available locally then do the following to setup a local branch:

  1. From the main menu select Version Control - Manage Branches and Remotes
  2. Select the Remote Sources tab.
  3. Find the branch in the list. You will need to expand the origin item.
  4. Select the branch and click Track in Local Branch.

Now you should be able to switch to that branch from the Solution window or by using the dialog that is currently open, from the Branches tab.

like image 196
Matt Ward Avatar answered Mar 12 '26 12:03

Matt Ward



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!