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

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

问题描述

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

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.

为什么我在 Visual Studio 中看不到其他分支有什么想法吗?

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

我正在运行 Visual Studio 2013 更新 2.

I'm running Visual Studio 2013 Update 2.

推荐答案

分支下拉列表只会显示本地分支,不会显示远程分支.您应该创建一个新的本地分支来跟踪该远程分支.只需单击 New Branch 下拉菜单,您就会看到所有远程分支:

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,仅列出 Master 分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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