Puneet
Puneet

Reputation: 215

How to migrate from github to bitbucket?

I have migrated my repository from Github to Bitbucket. How do I point my local branch from github to bitbucket?

Upvotes: 5

Views: 4499

Answers (2)

Swapnil Kadam
Swapnil Kadam

Reputation: 4293

if you have existing git setup then go to .git folder and find gitconfig file and replace the github url inside that with bitbucket url.

Upvotes: 0

Vampire
Vampire

Reputation: 38639

From https://git-scm.com/docs/git-remote

git remote set-url [--push] <name> <newurl> [<oldurl>]

so just do e. g. git remote set-url origin <bitbucket url>

Upvotes: 8

Related Questions