Convert Git Repo to TFS team collection

寵の児 提交于 2019-12-25 08:28:54

问题


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:

  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.



来源:https://stackoverflow.com/questions/42019296/convert-git-repo-to-tfs-team-collection

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!