user3730179
user3730179

Reputation: 121

Convert Bitbucket to Github

I previously was working with git and github on the command-line. I downloaded sourcetree and played around with bitbucket, just to see what is the best option. I think I accidentally migrated Bitbucket on the command-line somehow. Because now when I do git init and try to push, nothing is happening on github. Then I tried to delete all the access keys from my mac and tried to reinstall github with the ssh keys but thats doesnt seem to work. when I did git pull - i got the following terminal line How do I delete bitbucket and go back to work on github on my command line?

Upvotes: 3

Views: 319

Answers (1)

Oliver Atkinson
Oliver Atkinson

Reputation: 8029

On GitHub you will find your repository URL down the right hand side

github

Copy this URL as you will need it. Now start up terminal and navigate to the directory where your git repository is. Run the following and you should see your bitbucket set as origin,

git remote -v

we need to remove it and replace it with your github one. We can do it like this

git remote remove origin
git remote add origin [email protected]:ollieatkinson/OKAMutableDirectedGraph.git

Now you should be able to push/pull as you normally would do! Remember to replace the remote URL with your own.

Upvotes: 2

Related Questions