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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can migrate all history of main branch from local repo to a new TFVC team project with following steps:
- Create an empty TFVC team project
- 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.