【问题标题】:Not able to clone/list TFS repo无法克隆/列出 TFS 存储库
【发布时间】:2017-08-05 08:30:05
【问题描述】:

阅读此文档后,我觉得我应该能够使用 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 和几个项目。

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

【问题讨论】:

  • 你没有忘记 uri 中 'https://' 协议的 '/' 吗?
  • 是的,我确实做到了!
  • @ajeh 你的问题解决了吗?确保您也可以在 IE 浏览器中通过https://scm.domain.com:8443/tfs/DefaultCollection 访问该集合。

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


【解决方案1】:

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

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

会得到如下截图所示的信息

【讨论】:

    猜你喜欢
    • 2018-06-20
    • 2017-10-17
    • 2016-10-09
    • 2015-05-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-02
    相关资源
    最近更新 更多