如何在Visual Studio 2015中创建一个新分支? [英] How to make a new branch in Visual Studio 2015?

查看:223
本文介绍了如何在Visual Studio 2015中创建一个新分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2015中使用了Visual Studio Online中的Git,并试图找出如何创建分支。



这是互联网上常见的答案: https://msdn.microsoft.com/zh-cn/library/hh850437 .aspx & https://msdn.microsoft.com/en-us/library/ jj190809.aspx#create



如果您检查图片,它会显示分支和下拉箭头,我假设您可以创建分支。但在Visual Studio 2105中,下拉列表不存在,当我点击链接时,它会转到分支。



但只有合并,重做和动作下拉菜单。没有新的分支。



那么我怎样才能在Visual Studio 2015中创建一个新的分支?

解决方案

只要再看看分支机构中心。你会发现它有活动的Git仓库,并且可能会显示你的仓库。它可以打开,并显示您的主分支。
右键点击那个,你会看到一个上下文菜单,包括New Local Branch from ...。

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?

解决方案

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

这篇关于如何在Visual Studio 2015中创建一个新分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆