【发布时间】:2020-10-27 01:19:07
【问题描述】:
在我们整个公司中,我们是第一个尝试这样做的人。
我们正在尝试将 代码从 TFS 导入 Azure DevOps。
以下是 TFS 详细信息
TFS Server: companyTFS
TFS Project Collection: TechTeam.
TFS Project name: Main.
TFS Branch : Dev
现在我正在尝试将代码从 TFS 获取到 Azure DevOps。 我们可以将代码从 TFS 文件夹复制到 Azure DevOps 文件夹,但我们不想丢失 TFS 历史记录。
如下所述,我安装了 Chocolatey 并安装了 gittfs。
https://blog.rsuter.com/migrate-a-tfs-repository-to-a-vsts-git-repository
当我给出以下命令时
git tfs clone http://companyTFS:8080/TechTeam/Main $/Main/Dev/Registration/FeeDetails . –ignore-branches –debug
我遇到了异常。
TF31002: Unable to connect to this Team Foundation Server: http://companyTFS:8080/TechTeam/Main.
Team Foundation Server Url: http://companyTFS:8080/TechTeam/Main.
Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline.
- The password has expired or is incorrect.
Technical information (for administrator):
The remote server returned an error: (404) Not Found.
The remote server returned an error: (404) Not Found.
我也试过了,但没用。
https://github.com/microsoft/azure-repos-vscode/issues/320#issuecomment-335573266
我正在尝试了解我的 TFS 服务器是否可以与外部组件进行握手。
如果有人能告诉我我做错了什么,我会很高兴。
【问题讨论】:
-
我不明白为什么它得到 -1 以及为什么建议关闭它。建议关闭的人是否知道答案或他/她是否需要更多信息。是什么原因?
-
我没有投反对票,也没有投票结束这个问题。错误消息告诉您 TFS 服务器返回了
404 Not Found响应。看来你的网址有误。 -
谢谢格雷格。我找到了解决方案。在我发布解决方案之前进行测试
-
也许尝试删除 URL 的
/main段? -
@GregBurghardt .. 接近那个...
标签: tfs azure-devops