Migrating source code from TFS to VSTS

2019-07-14 02:41发布

I am trying to migrate Source code from TFS to VSTS. I tried git-tf command to migrate and was able to migrate successfully but i am not able to migrate the history. Can someone guide me on what i am doing wrong. Please note i am not migrating to GITVC but migrating to TFVC in Visual studio from On premise TFS server.

Steps are ...

  1. git-tf clone http://onprimisetfsurl/ $/project project
  2. git-tf clone http://Visualstudiotfvcurl/ $project project1
  3. git pull project1 into project
  4. git-tf checkin --deep

2条回答
Ridiculous、
2楼-- · 2019-07-14 03:21

Add "--deep" when you perform git-tf clone:

git-tf clone http://onprimisetfsurl/ $/project --deep

Add my steps for your reference:

  1. git-tf clone http://tfsurl $/tfsproject --deep
  2. Create a project "vstsproject" in VSTS.
  3. Delete the "BuildProcessTemplates" folder in the vstsproject from web portal.
  4. Create a new folder for vstsproject on local machine.
  5. Run "git init" to set this folder to a git repository.
  6. Pull the changes in tfsproject into the new created repo.
  7. Run "git log" to make sure the history is correct.
  8. git-tf configure https://vstsurl $/vstsproject --deep
  9. git-tf checkin --deep
查看更多
登录 后发表回答