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 ...
- git-tf clone http://onprimisetfsurl/ $/project project
- git-tf clone http://Visualstudiotfvcurl/ $project project1
- git pull project1 into project
- git-tf checkin --deep
Look at OpsHub https://visualstudiogallery.msdn.microsoft.com/28a90a17-d00c-4660-b7ae-42d58315ccf2 since that is the one that was recommended by the VSTS manager https://blogs.msdn.microsoft.com/bharry/2014/05/14/migrating-on-premises-tfs-to-vs-online/ https://www.visualstudio.com/en-us/articles/adopting-vsts also covers other tools if that doesn't work for you.
Add "--deep" when you perform git-tf clone:
git-tf clone http://onprimisetfsurl/ $/project --deep
Add my steps for your reference:
- git-tf clone http://tfsurl $/tfsproject --deep
- Create a project "vstsproject" in VSTS.
- Delete the "BuildProcessTemplates" folder in the vstsproject from web portal.
- Create a new folder for vstsproject on local machine.
- Run "git init" to set this folder to a git repository.
- Pull the changes in tfsproject into the new created repo.
- Run "git log" to make sure the history is correct.
- git-tf configure https://vstsurl $/vstsproject --deep
- git-tf checkin --deep
来源:https://stackoverflow.com/questions/38820443/migrating-source-code-from-tfs-to-vsts