TFS to GIT Simple Migration guide
Migrating tfs to an external git repository involves these following steps; make sure to have git-tfs [https://github.com/git-tfs/git-tfs] installed. Use chocolatey [http://chocolatey.org] to install git-tfs.
To install chocolatey, run the following command in command prompt:
Once chocolatey is installed run the following command to install git-tfs:
To clone/copy the entire TFS code and history use the following command: Note that "clone" command would copy all code, history and changesets and "quick-clone" would only copy the latest changeset of all the files. The git-tfs command also takes in optional target directory parameter like the following example. The default is the path that the command is run from.
To ignore any file or directory or ignore multiple files/directories from being cloned, use the ignore-regex parameter: If you were to encounter an error like "Command exited with error code:128", you may want to run the git-tfs command with "-d" option, detail option, and ignore that particular file that is causing the export to break! Example: So lets for example you cloned all your TFS code to c:\Temp\TFSCode directory and also lets assume that your GIT (external git repository) directory is at c:\Temp\GITCode. To completely migrate from TFS to your Git Repository following 3 steps needs to be performed:
Labels: Git
<< Home