Visual Studio 2013 git, only Master branch listed

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.

链接地址: http://www.djcxy.com/p/27090.html

上一篇: VS中的TFS / GIT由于存在未提交的更改,因此无法切换到主站

下一篇: Visual Studio 2013 git,只有主分支列出