Skip to content

Instantly share code, notes, and snippets.

@sgasser
Forked from mandiwise/Update remote repo
Last active July 20, 2018 06:45
Show Gist options
  • Select an option

  • Save sgasser/406951879150a36e14c6323962c6c858 to your computer and use it in GitHub Desktop.

Select an option

Save sgasser/406951879150a36e14c6323962c6c858 to your computer and use it in GitHub Desktop.
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
git remote rename origin bitbucket
git remote add origin https://github.com/mandiwise/awesome-new-repo.git
git push origin master
// check not merged branches and push
git push origin --tag
git remote rm bitbucket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment