Robin van den Heever
Robin van den Heever

Reputation: 107

How can I migrate Team Foundation Server 2013 Work Items to a new TFS Git Repository?

I'm busy migrating a Team Foundation Server 2012 Repository to a Git repository running in TFS 2013.

I'm using the recommended process:

  1. Clone a Git repository form TFS using git-tf.
  2. Create the Git repository using Visual Studio 2013 connected to a TFS 2013 server.
  3. Copy the cloned repository into the newly created local git repository (excluding the conf file).
  4. Commit and Sync the changes back into the TFS 2013 Git repository.

This process keeps the code change history intact, but it does not import the Work Items for the project.

Is there a better way to migrate from TFS 2012 to TFS GIT 2013 that will keep the TFS Work items intact?

Upvotes: 2

Views: 1212

Answers (2)

Philippe
Philippe

Reputation: 31137

IMHO, there is a better way...

  1. Don't use git-tf to migrate (except if don't have branches). Use git-tfs instead (that support branches and export metadatas)!
  2. The last time I tried, TFS Integration Tools didn't support TFS2013 (and nothing seems to have changed) and crashed.

Otherwise, I could not explain better than what I have already done in git-tfs documentation

Upvotes: 2

You need to use a tool that migrates Work Items:

  1. Excel - you can export and import using excell but you loose history and state
  2. TFS Integration Tools - you can migrate history but it is complex
  3. API - this is by far the best way although you need coding knowledge.

If you contact me directly I can give you access to some code that may be useful.

Upvotes: 1

Related Questions