Visual studio 2012 无法克隆/列出TFS repo

Visual studio 2012 无法克隆/列出TFS repo,visual-studio-2012,tfs,git-tfs,Visual Studio 2012,Tfs,Git Tfs,阅读此文档时,我有一种印象,即我应该能够使用git tfs获取tfs回购的内容,以便克隆一些分支: 尝试了以下命令: C:\Workspace.Git\Corp>git tfs list-remote-branches https:/scm.domain.com:8443/tfs Given tfs name is not correct URI and not found as a registered TFS instance C:\Workspace.Git\Corp>git

阅读此文档时,我有一种印象,即我应该能够使用git tfs获取tfs回购的内容,以便克隆一些分支:

尝试了以下命令:

C:\Workspace.Git\Corp>git tfs list-remote-branches https:/scm.domain.com:8443/tfs
Given tfs name is not correct URI and not found as a registered TFS instance

C:\Workspace.Git\Corp>git tfs list-remote-branches https:/scm.domain.com:8443/tfs/DefaultCollection
Given tfs name is not correct URI and not found as a registered TFS instance

C:\Workspace.Git\Corp>git tfs list-remote-branches scm.domain.com
Given tfs name is not correct URI and not found as a registered TFS instance
其中
https:/scm.domain.com:8443/tfs
是我在Visual Studio 2012中用于连接tfs的服务器地址。它有
DefaultCollection
和几个项目


我提供的服务器名称有什么问题?

您使用了错误的url,缺少
/
集合名称。试试这个:

git tfs list-remote-branches https://scm.domain.com:8443/tfs/DefaultCollection 
将获得如下屏幕截图所示的信息

您没有忘记uri中的“https://”协议的“/”吗?是的,我确实忘记了@你的问题解决了吗?确保您也可以通过
https://scm.domain.com:8443/tfs/DefaultCollection
在IE浏览器中。