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.


  1. Install the windows package manager « Chocolatey »
    1. Open a CMD window with administrative privileges.
    2. copy/paste the following and execute:
    3. @"%SystemRoot%System32WindowsPowerShellv1.0powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString(''))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%chocolateybin"
    4. Close and reopen CMD again with administrative privileges.
  2. Install the git-tfs tool:
    1. In the CMD window, type in the following:
    2. choco install gittfs
    3. Open a git bash on the machine and run the following commands:
    4. git config --global "Some Name"
    5. git config --global "some.em@i.l"
    6. git config --global push.default simple

This gives the git repository your user info for when you push the git repository to the server.

Source de l’article sur DZONE