Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export Source Code with History from TFS 2010 as a manual export

My developers and I are looking to move off TFS 2010, and what we are looking to do is export all the source code with history. The source code and history we want to export over to another network where we are standing up a Git Repository.

Every where I look gives examples of where TFS and Git have access to one another, but unfortunately, in our case the two networks are isolated from one another.

Is there away where I can simply export the data, transfer the data on to the new network and then import into Git?

like image 573
Andy5 Avatar asked Nov 20 '25 07:11

Andy5


1 Answers

  • Install git-tfs on your TFS 2010 server/any PC in your first netowrk with access to TFS (you also need git installed).
  • Migrate you TFVC code to a git repository:

    git tfs clone https://{tfsServer}:8080/tfs/Collection $/project/repo . --branches=all

Now you have a local git repo with your TFVC source code in your first network.

  • Move this local git repo to the second network physically.
  • Upload the code to your existing central git repository or create a new git repository and push the current code.
like image 122
Shayki Abramczyk Avatar answered Nov 21 '25 22:11

Shayki Abramczyk