Visual Studio 2013 git, only Master branch listed

谁说我不能喝 提交于 2019-12-28 08:37:30

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/24919907/visual-studio-2013-git-only-master-branch-listed

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