Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to convert a TFS project to a git repo

Tags:

git

tfs

I know there have been a number of developments on support for git in the VS2012. We currently have a Team Foundation Server 2012 (Update 2) with all of our projects on it stored in the classic TFS format.

We are wanting to move from TFS to a pure git repo system (shared folder with git repos).

What is the best way to migrate our existing TFS projects into git repos so that they maintain their full commit log etc?

Is TFS2Git still the way to go?

like image 722
Mark Pearl Avatar asked Jun 25 '13 10:06

Mark Pearl


People also ask

Can we use Git to clone from TFS?

Cloning the whole TFS Project CollectionYou can clone all projects by specifying $/ as the tfs-repository path. If you do not specify a git repository name, it will clone into tfs-collection .

What is the advantage of Git over TFS?

Compared to our time with TFS, we have much less merge conflicts now are on Git. The main reason is that Git does a three-way merge because it knows exactly where two branches started to diverge.

Does Microsoft TFS use Git?

Azure DevOps Services and TFS provide two models of version control: Git, which is distributed version control, and Team Foundation Version Control (TFVC), which is centralized version control.


1 Answers

There's an article by Black Marble on using git tf and doing a clone with --deep to maintain history when transferring between TFS instances. The same should apply for migrating to Git.

like image 59
DaveShaw Avatar answered Oct 22 '22 04:10

DaveShaw