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

  1. Install the windows package manager « Chocolatey » https://chocolatey.org/install.
    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('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%chocolateybin"
    4. Close and reopen CMD again with administrative privileges.
  2. Install the git-tfs tool: https://github.com/git-tfs/git-tfs.
    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 user.name "Some Name"
    5. git config --global user.email "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

L’assistance proposée par ANKAA PMO

ANKAA PMO présent depuis plus de 20 ans sur le marché des services IT, accompagne les DSI dans leur recherche de compétences pour des besoins de renforts en mode régie ou l’externalisation de projets.
Vous souhaitez plus d’information ? Cliquez ici