This article should give a step-by-step guide of how to install and use the git-tfs tool to transfer TFVC data to a Git repository correctly.
Instructions
- Install the windows package manager « Chocolatey » https://chocolatey.org/install.
- Open a CMD window with administrative privileges.
- copy/paste the following and execute:
@"%SystemRoot%System32WindowsPowerShellv1.0powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%chocolateybin"
- Close and reopen CMD again with administrative privileges.
- Install the git-tfs tool: https://github.com/git-tfs/git-tfs.
- In the CMD window, type in the following:
choco install gittfs
- Open a git bash on the machine and run the following commands:
git config --global user.name "Some Name"
git config --global user.email "some.em@i.l"
git config --global push.default simple
This gives the git repository your user info for when you push the git repository to the server.