简体   繁体   English

如何执行从 TFS 2018 到 Azure DevOps 的代码迁移?

[英]How to perform code migration from TFS 2018 to Azure DevOps?

We are trying to migrate code from TFS2018 to Azure DevOps.我们正在尝试将代码从 TFS2018 迁移到 Azure DevOps。 I am new to code migration from TFS to VSTS.我是从 TFS 到 VSTS 的代码迁移的新手。 I would like to know is there any tool for code migration?我想知道有没有代码迁移的工具?

I saw TFS-GIT utility.我看到了 TFS-GIT 实用程序。 I am really not sure how much efficient this tool.我真的不确定这个工具的效率有多高。

GIT-TFS list remote repostiory GIT-TFS 列出远程仓库

你可以通过 OpsHub 工具: OpsHub Visual Studio Online Migration Utility

My recommendation would be to either upgrade your on-premise server to Azure DevOps Server 2019 or the latest Team Foundation Server 2018 update pack that's supported by the migration tool.我的建议是将本地服务器升级到 Azure DevOps Server 2019 或迁移工具支持的最新 Team Foundation Server 2018 更新包。

You can perform this upgrade on a clone instance of your existing server, so it won't break or change your existing machine or database in case anything goes wrong.您可以在现有服务器的克隆实例上执行此升级,因此如果出现任何问题,它不会破坏或更改您现有的机器或数据库。

We regularly perform these types of migrations and we generally use a temporary Azure Virtual Machine.我们定期执行这些类型的迁移,并且通常使用临时 Azure 虚拟机。 We install SQL Server on it, we restore the backup of the on-premise server, we install the desired TFS application tier version on it.我们在其上安装 SQL Server,恢复内部部署服务器的备份,并在其上安装所需的 TFS 应用层版本。 If the Azure machine is joined to your domain, then that's all you need to start the import into Azure DevOps.如果 Azure 计算机已加入您的域,那么您只需开始导入 Azure DevOps 即可。 If the machine isn't domain joined, be sure to turn off the AD Sync job as part of the migration.如果计算机未加入域,请确保在迁移过程中关闭 AD 同步作业。 My colleague Jasper has a couple of scripts to fix that for you . 我的同事 Jasper 有几个脚本可以为您解决这个问题


Alternate options.替代选项。 In my opinion there aren't any.在我看来,没有。 At least not good ones.至少不是好的。 There is a whole set of tools that an migrate parts of TFS to Azure DevOps, tools like OpsHub , git-tfs , git-tf , Migration Tools for Azure DevOps .有一整套工具可以将 TFS 的一部分迁移到 Azure DevOps,例如OpsHubgit-tfsgit-tf 和 Azure DevOps 迁移工具 None offer a complete migration, some do work items, some sources, some builds, but none of these offer a complete migration.没有一个提供完整的迁移,一些提供工作项,一些源,一些构建,但这些都没有提供完整的迁移。

All of these also have the issue that they reset metadata such as Commit/Approval dates, work item IDs.所有这些还存在重置元数据的问题,例如提交/批准日期、工作项 ID。 Which will impact retention jobs, history and other things you may care about.这将影响保留工作、历史记录和您可能关心的其他事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM