The easiest way I’ve found to do it is the following:
- With the help of git-tfs tool convert tfs repository to git one with the following command:
git tfs clone %FullUrlToYourTfsServer% $/%PathToProject%
I suggest you to verify that your network connection to TFS is stable because this operation will take a lot of time and if it fail you will need to start from the beginning. - Have hg installed (I’m using tortoisehg) and configure its ConvertExtension.
In order to do that navigate to C:\Users\%UserName% and open mercurial.ini file, and add this at the end:
[extensions] hgext.convert=
- Execute convert command on git repository with following command:
hg convert -s git -d hg %PathToGitRepository%
- Have fun with hg
I guess steps 2-4 are redundant. Nothing can prevent you from having fun with git :)
ReplyDeleteTrue :)
ReplyDelete