1

I imported my github project to bitbucket following this tutorial :

tutorial import github project to bitbucket

Worked great except that I want to import all my branches, so I did the :

git branch -a

and I get this as a result :

master
planB
stuffOnTheNewBranch
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/pageflipStuff
remotes/origin/planB
remotes/origin/stuffOnTheNewBranch

After pushing all, when I check on bitbucket, only master, planB, stuffOnTheNewBranch are imported ... How to push all the branches?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Sebastien FERRAND
  • 2,110
  • 2
  • 30
  • 62

1 Answers1

1

You would push all the local branches, not the ones declared in the remotes namespace.

If you want to push all the branches coming from the remote origin, you must first create a local branch for each of the origin branches.
For that, see "Track all remote git branches as local branches".

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250