按照本教程,我将github项目导入了bitbucket:
tutorial import github project to bitbucket
工作得很好,除了我想导入我的所有分支,所以我做了:
git branch -a
我得到了这个结果:
master
planB
stuffOnTheNewBranch
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/pageflipStuff
remotes/origin/planB
remotes/origin/stuffOnTheNewBranch
推送全部内容后,当我检查bitbucket时,只导入master
,planB
,stuffOnTheNewBranch
...如何推送所有分支?
答案 0 :(得分:1)
您将推送所有本地分支,而不是remotes
命名空间中声明的分支。
如果要推送来自远程{{1}}的所有分支,则必须先为每个origin
分支创建一个本地分支。
为此,请参阅“Track all remote git branches as local branches”。