Wednesday 3 June 2015

[SVN to TFS] Migrating source code from SVN to Team Foundation Server 2013

Quick steps:

Follow the steps below to migrate your source code for free from SVN to TFS:


Install SVN Client, For example, Tortoise SVN
Install Git-TF
  •     Add Git-tf to system %Path% variable
Install the Java Runtime Environment (JRE)
  •     Add  java to system %Path% variable       
Install GIT Repo
Init Repo
  •     git svn init http://svn/sources/trunk --no-metadata   
Fetch
  •     git svn fetch   
Check history
  •     git log
Push source code from GIT to TFS using the following command lines:
  •     git tf configure "http://tfs:8080/tfs/DefaultCollection" "$/MyTeamProject/Services"
  •     git tf checkin --deep --no-lock
Some useful links:
http://sitecoreblog.blogspot.fr/2014/04/migrate-from-svn-to-tfs-or-git.html
http://www.incyclesoftware.com/2013/08/migrate-svn-to-tfs-its-free/
http://www.incyclesoftware.com/2013/08/how-easy-its-to-migrate-svn-to-tfs-2013-git-repo/