Skip to content

Instantly share code, notes, and snippets.

@amit08255
Forked from mandiwise/Update remote repo
Last active September 6, 2023 18:02
Show Gist options
  • Save amit08255/2581b5587038f84887199ef698815e0a to your computer and use it in GitHub Desktop.
Save amit08255/2581b5587038f84887199ef698815e0a 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 clone --mirror <Bitbucket_repo_address>
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push --mirror
$ git remote rm bitbucket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment