How to make a new branch in Visual Studio 2015?

半城伤御伤魂 提交于 2019-12-09 14:16:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!