9

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?

Ruben Bartelink
  • 59,778
  • 26
  • 187
  • 249
Mark Pearl
  • 7,573
  • 10
  • 47
  • 57

2 Answers2

9

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.

DaveShaw
  • 52,123
  • 16
  • 112
  • 141
  • +1'd but any chance you could move this answer to http://stackoverflow.com/questions/2874873/migrating-from-tfs-to-git and VTC this Q please? – Ruben Bartelink Dec 06 '13 at 01:09
0

We migrated a year ago, and I tried tfs2git, it worked fine. Though I decided to just start with the files and no history, as the history in TFS was not really useful for anything.

(It lingered in the TFS set to read-only if anyone would be interested, but that hardly ever happened at the start, and by now TFS is shut down for good...)

IME the real challenge is not that part of the migration but to design a sensible split and cooperation of repos, branching policy, teach people to rebase, stuff like that.

Balog Pal
  • 16,195
  • 2
  • 23
  • 37