从 Bitbucket 服务器迁移到 Azure DevOps

Migrating from Bitbucket Server to Azure DevOps

从可通过 VPN 访问的 Bitbucket Server 导入到 Azure DevOps 时,我遇到了“克隆 URL 不正确。克隆 URL 需要授权”的问题。我可以知道如何解决这个问题吗?

而且我在 Azure DevOps 中看到了导入存储库选项。但是有什么方法可以将多个项目及其 Bitbucket Server 存储库导入到 Azure DevOps 中吗?

这是关于add support for Bitbucket Server for Azure DevOps的建议票。你可以投这张票。

作为解决方法,您可以使用 git 命令克隆和推送您的存储库。

1.Clone 使用 bare 选项将源回购到您计算机上的临时文件夹。

git clone --bare https://github.com/contoso/old-contoso-repo.git

cd old-contoso-repo.git

2.Create 一个目标仓库。

3.Copy 源代码库到目标代码库。

git push --mirror https://dev.azure.com/contoso-ltd/MyFirstProject/_git/new-contoso-repo

请在 this document 中找到更详细的信息。

在 Azure DevOps 中,导入将从源存储库 URL 发生,这些存储库可从 Azure DevOps 服务访问,这些服务基本上 运行 在云上并且需要 HTTPS 可访问性。

如果 BitBucket 服务器在专用网络上托管存储库,则无法从 Azure DevOps 访问它,因此我们需要上面 Walter 提供的方法。