Skip to content

Instantly share code, notes, and snippets.

@shiranGinige
Last active May 3, 2017 07:01
Show Gist options
  • Save shiranGinige/ed908ef2c908e5807146c8a58651b14d to your computer and use it in GitHub Desktop.
Save shiranGinige/ed908ef2c908e5807146c8a58651b14d to your computer and use it in GitHub Desktop.
Migrating VSTS TFS repo to Git
# Create a new Git Repository under the VSTS project you are working on (e.g. YourTeamProjectName below)
# Make sure you have chcolatey installed
# Install Git-TFS
> cinst Git-TF
# Init a git repo and apply TFS changesets
> git-tf clone https://your-tenant-name.visualstudio.com/ $/YourTeamProjectName/TFSBranchName --deep
# Add the remote
> git remote add origin https://your-tenant-name.visualstudio.com/_git/YourTeamProjectName
# Push changes up
> git push --set-upstream origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment