Is it possible to migrate from TFS 2008 to Git, and still preserve all the history, etc? I've seen some references that talk about doing it through SVN, but that seems rather complicated, and complicates my mission to introduce Git at my job.
Asked
Active
Viewed 1.7k times
50
-
related: http://stackoverflow.com/questions/18814465/migrating-a-tfs-repository-to-git – Ruben Bartelink Dec 06 '13 at 01:05
-
related: http://stackoverflow.com/questions/17294894/what-is-the-best-way-to-convert-a-tfs-project-to-a-git-repo/17295256#17295256 – Ruben Bartelink Dec 06 '13 at 01:11
-
related: http://stackoverflow.com/questions/19548659/migrate-from-tfs-to-git-on-visualstudio-com – Ruben Bartelink Dec 06 '13 at 01:11
2 Answers
61
There is a direct way its called git-tfs and it's up on github.
You just do a
git tfs clone <tfs server> <tfs project>
I recommend getting the source and adding it to your path separately so that you can debug it for any strangeness, but the code is pretty easy to step through.
I had a file that was an msi that was 500 MB that the client stored in tfs, that wouldn't convert, took a few hours to narrow it down.

Shaul Behr
- 36,951
- 69
- 249
- 387

DevelopingChris
- 39,797
- 30
- 87
- 118
-
2Binaries of git-tfs are available at [git-tfs.com](http://www.git-tfs.com) or via [chocolatey](http://chocolatey.org/) as `cinst GitTfs`. – Simon Opelt Jun 20 '13 at 08:10
-
14Be aware that this command won't manage tfs branches. If you want to clone branches too, use the option --with-branches but, for the moment, it doesn't support all cases (I know, that's me that develop it!). An improvement is in the pipe but need more work (and some very complex tfs repositories won't even be supported). So don't fit all needs! :( – Philippe Aug 03 '13 at 11:33
3
I wrote blog on migration of source code from TFS to Git, by maintaining your check-in history. Hope it will help:
Blog: TFS to GIT Migration

Prasad Telkikar
- 15,207
- 5
- 21
- 44