Migrate Git repository to new TFVC repository

前端 未结 1 763
攒了一身酷
攒了一身酷 2021-01-19 23:05

How do you use git-tfs to mirror/copy an existing Git repository to a NEW TFS 2010 TFVC repository? The existing Git repository was NOT cloned from TFS.

I need to

相关标签:
1条回答
  • 2021-01-19 23:53

    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.

    0 讨论(0)
提交回复
热议问题