Skip to content

Instantly share code, notes, and snippets.

@arbitrarily
Forked from mandiwise/Update remote repo
Created December 7, 2022 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arbitrarily/8b2a68757b67094ddbba60e89bdd9c04 to your computer and use it in GitHub Desktop.
Save arbitrarily/8b2a68757b67094ddbba60e89bdd9c04 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
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment