Skip to content

Instantly share code, notes, and snippets.

@raypereda
Forked from mandiwise/Update remote repo
Last active May 12, 2018 06:06
Show Gist options
  • Save raypereda/b5a353f26dad7db6c782d2d58b8ea447 to your computer and use it in GitHub Desktop.
Save raypereda/b5a353f26dad7db6c782d2d58b8ea447 to your computer and use it in GitHub Desktop.
Transfer repo from Bitbucket to TFS
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
// These are steps for moving a git repo from Bitbucket to TFS
// 1. add your SSH keys to the TFS project (google for a guide)
// 2. follow the steps below
git clone git@bitbucket.org:<bitbucket_user>/<repo_name>.git
cd repo_name
git remote rename origin bitbucket
git remote add origin https://tfc.molina.mhc/tfs/<collectionname1><collection1>/<project1>/_git/<project1>.git
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment