Last active
May 3, 2017 07:01
-
-
Save shiranGinige/ed908ef2c908e5807146c8a58651b14d to your computer and use it in GitHub Desktop.
Migrating VSTS TFS repo to Git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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