Skip to content

Instantly share code, notes, and snippets.

@IshankDev
Forked from mandiwise/Update remote repo
Last active September 17, 2022 04:49
Show Gist options
  • Save IshankDev/c06a495e4ef04825d8da8602a7dbe706 to your computer and use it in GitHub Desktop.
Save IshankDev/c06a495e4ef04825d8da8602a7dbe706 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
// if need to push all use -
// git push origin --all
$ git remote rm bitbucket
@IshankDev
Copy link
Author

Thanks for great solution 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment