6

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

Jem
  • 63
  • 3
  • possible duplicate of [move git repository with all branches from bitbucket to github](http://stackoverflow.com/questions/22906917/move-git-repository-with-all-branches-from-bitbucket-to-github) – mems Nov 04 '14 at 10:29

1 Answers1

8
  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

Zlatko
  • 18,936
  • 14
  • 70
  • 123