问题
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?
回答1:
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..."
回答2:
I had the same problem that the select branch was empty, the create branch was disabled and I had win10 anniversary. Then I realised I hadn't committed anything locally. Once I had the button and drop down became active.
来源:https://stackoverflow.com/questions/30413834/how-to-make-a-new-branch-in-visual-studio-2015