Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git: export from bitbucket and import github (w/ commits)

I created a private git repo on bitbucket and committed code. Now I want to export all (commits, code, history) and import it in a git repo on github.

Is there a way to do this? Thanks

like image 450
Jem Avatar asked Sep 21 '12 20:09

Jem


1 Answers

  1. Check everything out locally to your computer and git pull.

  2. Create a github repo

  3. Add this repo as your second remote ("with git remote add github URL")

  4. Push to the second remote

like image 155
Zlatko Avatar answered Nov 20 '22 18:11

Zlatko