Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to move git respository between hosting providers

I currently use Assembla for my git hosting. I want to move my git repository to github hosting. I have never done this before - what is the process? Obviously, I want to keep all my previous commits/changes, etc...

Thanks.

like image 499
deruse Avatar asked Jul 12 '11 23:07

deruse


People also ask

How do I transfer ownership of a git repository?

Under your repository name, click Settings. Click Transfer. Read the warnings and enter the repository name to confirm that you've done so. Type the name of the new owner and click I understand, transfer this repo.


1 Answers

Pull your repository to a local location using git clone.

Then create a new repository on github.com, remove the old remote and add the new remote:

git remote rm "assembla remote name"
git remote add origin [email protected]/your_repo_path
git push -u master
like image 131
citizen conn Avatar answered Sep 28 '22 04:09

citizen conn