You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

能否将TFS/DevOps Server迁移至已有项目的Azure DevOps Services?

问题解答

1. 能否将TFS/DevOps Server迁移至已包含项目的Azure DevOps Services?

无法直接将整个TFS/DevOps Server实例迁移到已存在项目的Azure DevOps Services组织。官方迁移工具(如Azure DevOps Migration Tools)仅支持将单个TFS/DevOps Server项目迁移到新的Azure DevOps Services项目,不支持合并到已有的项目中。

2. 手动迁移TFVC代码库至Azure DevOps Services并转换为Git(保留历史)的方法

可以使用git-tfs工具完成迁移,它能将TFVC代码库完整转换为Git版本控制并保留所有历史记录,核心步骤如下:

  • 安装git-tfs:确保本地已安装Git和.NET Framework,通过Chocolatey或官方渠道安装工具
  • 克隆TFVC仓库:执行命令 git tfs clone <TFVC集合地址> <TFVC项目路径> --branches=auto,该命令会将TFVC的分支、变更集历史同步到本地Git仓库
  • 在Azure DevOps Services中创建空Git仓库:在目标项目下新建一个无初始化文件的Git仓库
  • 推送至Azure DevOps:添加远程源 git remote add azure <Azure Git仓库地址>,随后执行 git push azure --all 推送所有分支及历史记录

git-tfs会自动处理TFVC到Git的历史映射,包括变更集关联、分支转换等,能有效保留原有代码的版本轨迹。

内容的提问来源于stack exchange,提问作者tasin95

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.13 12:58:23