Convert Git Repo to TFS team collection

2019-09-15 16:23发布

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.

标签: github tfs
1条回答
做自己的国王
2楼-- · 2019-09-15 16:36

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

  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.

enter image description here

查看更多
登录 后发表回答