Visual Studio 2013 git,只有主分支列出 [英] Visual Studio 2013 git, only Master branch listed

查看:123
本文介绍了Visual Studio 2013 git,只有主分支列出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2013的Git支持来处理私有的GitHub存储库。我有权做出承诺。我想切换分支,但是当我转到分支视图时,任何列表(分支下拉,已发布分支,合并工具)中的唯一分支就是主分支。其他分支出现在GitHub,Windows的GitHub和TortoiseGit。所以我知道他们在那里,我有权访问。



任何想法为什么我不能在Visual Studio中看到其他分支?




我正在运行Visual Studio 2013 Update 2。

解决方案

分支下拉菜单仅显示 local 分支机构,它不会显示远程分支机构。您应该创建一个新的本地分支来跟踪该远程分支。只需点击新建分支下拉菜单,即可看到所有的远程分支:


一旦你这样做了,它就会显示为一个已发布的分支,允许你推拉它。


I'm using Visual Studio 2013's Git support to work on a private GitHub repository. I have permission to commit to it. I want to switch branches, but when I go to the Branches view, the only branch in any of the lists (branch drop-down, published branches, merge tool) is master. Other branches show up in GitHub, GitHub for Windows, and TortoiseGit. So I know they're there and I have access.

Any ideas why I can't see other branches in Visual Studio?

I'm running Visual Studio 2013 Update 2.

解决方案

The branch dropdown will only show local branches, it will not show remote branches. You should create a new local branch to track that remote branch. Simply click the New Branch dropdown, and you will see all the remote branches:

Once you've done that, this will appear as a "published branch" allowing you to push and pull to it.

这篇关于Visual Studio 2013 git,只有主分支列出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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