Thursday, December 15, 2011

Move Git repository from Unfuddle to BitBucket

4 comments:

  1. This didn't push all my branches. How do I do that?

    ReplyDelete
    Replies
    1. After you clone your old repository you have to checkout all the branches:

      git branch -r # displays all remote branches
      git checkout -t origin/mybranch # checks out and tracks a given remote branch, do this for all of them

      ... continue as stated above ...

      git push origin mybranch # in the end push all the branches to the remote

      Delete