无法克隆/列出TFS回购

时间:2017-03-14 20:05:53

标签: visual-studio-2012 tfs git-tfs

阅读本文档后,我得到的印象是,我应该能够使用git-tfs获取TFS仓库的内容,以便克隆一些分支:https://github.com/git-tfs/git-tfs/blob/master/doc/usecases/manage_tfs_branches.md

尝试了这些命令:

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个项目。

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

1 个答案:

答案 0 :(得分:1)

您使用了错误的网址,缺少/收藏品名称。试试这个:

git tfs list-remote-branches https://scm.domain.com:8443/tfs/DefaultCollection 

将获得如下截图 的信息 enter image description here