Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a new branch in Visual Studio 2015?

I am using Git with Visual Studio Online in Visual Studio 2015 and am trying to figure out how to create a branch.

This is the usual answer on the internet: https://msdn.microsoft.com/en-us/library/hh850437.aspx & https://msdn.microsoft.com/en-us/library/jj190809.aspx#create

If you check the image it shows the branch and the drop down arrow where I assume you can create a branch. But in Visual Studio 2105 the dropdown is not there and when I click on the link it goes to branches.

But there is only Merge, Rebase, and Actions dropdowns. There is no new branch.

So how can I create a new branch in Visual Studio 2015?

like image 996
b0x0rz Avatar asked May 23 '15 14:05

b0x0rz


People also ask

How do I create a branch in Visual Studio 2015?

Just look one further down in the branches hub. You see it has Active Git Repositories, and presumably showing yours. It can be opened, and show your master branch. Right click that one, and you get a context menu including "New Local Branch from..."

How do I create a branch in Visual Studio?

From the Git menu, select New Branch. In the Create a new branch dialog box, enter a branch name. For branch naming details, see Special characters in branch and tag names. In the Based on section, use the drop-down list to choose whether you want to base your new branch off an existing local branch or a remote branch.

How do I create a new branch?

New Branches The git branch command can be used to create a new branch. When you want to start a new feature, you create a new branch off main using git branch new_branch . Once created you can then use git checkout new_branch to switch to that branch.


1 Answers

Just look one further down in the branches hub. You see it has Active Git Repositories, and presumably showing yours. It can be opened, and show your master branch. Right click that one, and you get a context menu including "New Local Branch from..."

like image 172
Terje Sandstrøm Avatar answered Sep 21 '22 16:09

Terje Sandstrøm