将Git Repo转换为TFS团队集合 [英] Convert Git Repo to TFS team collection

查看:207
本文介绍了将Git Repo转换为TFS团队集合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将Git Repository迁移到TFS,并且迁移意味着不会导入到TFS git中,但它也需要在TFS Team集合中随着历史记录一起转换,以便我们可以进一步将其作为TFVC使用。

I need to migrate Git Repository to TFS and migrate means not import into TFS git but it also needs to be converted in TFS Team collection along with the history so further we can utilize it as TFVC.

推荐答案

您可以通过以下步骤将主分支的所有历史记录从本地回购迁移到新的TFVC团队项目:

You can migrate all history of main branch from local repo to a new TFVC team project with following steps:


  1. 创建一个空的TFVC团队项目

  2. 转到您的本地Repo文件夹,并使用 git-tf checkin --deep 命令检查TFVC团队项目的本地回购。默认情况下,checkin命令将创建一个单一的TFS变更集,用于汇总自Git上一次签入TFS后当前分支所做的所有更改。与 - deep 选项一起使用时,自上次签入TFS后,将为当前分支上的每个Git提交创建TFS变更集。

  1. Create an empty TFVC team project
  2. Go to your local Repo folder, and use git-tf checkin --deep command to checkin the local repo to a TFVC team project. By default, the checkin command will create a single TFS changeset for the aggregate of all changes made on the current branch in Git since the last checkin to TFS. When used with the --deep option, a TFS changeset will be created for each Git commit on the current branch since the last checkin to TFS.

这篇关于将Git Repo转换为TFS团队集合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆