Monday, April 7, 2014

Move repo from bitbucket to github

Simple and pretty neat trick:

Lets say your project repository in my $HOME/dev/SampleProject directory.

cd $HOME/dev/SampleProject
git remote rename origin bitbucket
git remote add origin
git push origin master
Once your push has been successful to Github then you can delete the old remote by using:
git remote rm bitbucket

It'll only remove your local reference not your origin repository.

You'll notice that your tags are still not visible in github. You may need to run single command on terminal:
git push origin --tags -f


Submit Express Inc.Search Engine Optimization Services