【发布时间】:2021-05-10 02:32:01
【问题描述】:
我被分配了将存储库从一个 Azure DevOps 组织迁移到另一个组织的任务。
我需要移动的源代码库是 TFVC - 他们希望它也迁移到 Git。
我发现工具 git-tfs 看起来可以满足我的一切需求。 安装工具后,我按照说明运行以下命令进行测试,看看我是否可以连接,它有以下问题:
C:\temp>git tfs list-remote-branches https://testpoint.visualstudio.com:8080/tfs/TestPoint2013
TF400324: Team Foundation services are not available from server https://testpoint.visualstudio.com:8080/tfs/TestPoint2013.
Technical information (for administrator):
Unable to connect to the remote server
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 16.107.42.18:8080
我认为它需要某种用户/密码,我发现了这个 -
To clone a TFVC repository on Azure DevOps, you should:
Enable alternate credentials. Go to "My profile"->"Security"-> Enter data and "Enable alternate credentials"
use the command following this pattern (where 'yourLogin' and 'yourPassword' was defined in the previous step) git tfs clone https://dev.azure.com/{organization} $/project/folder --username=yourLogin --password=yourPassword
不幸的是,启用备用凭据的功能已关闭,因此我无法执行上述操作。 我生成了一个个人访问令牌并尝试使用它,但它也不喜欢那样。 我也尝试过使用 ssh 键。我创建了一个密钥,将公钥添加到源 Azure DevOps 帐户,然后将以下内容添加到 .ssh 目录中的配置文件中 -
Host ssh.dev.azure.com
HostName ssh.dev.azure.com
User git
IdentityFile ~/.ssh/ado
主机名是否正确?
请注意,使用相同的 ssh 密钥,我可以在相同的 ADO 组织 Git 存储库中执行 Git 克隆。
为了让我能够成功连接到 tfs 存储库,我缺少什么?
这里是 git-tfs 工具的链接 - https://github.com/git-tfs/git-tfs/blob/master/README.md
【问题讨论】:
标签: git azure azure-devops tfvc