I want to migrate an old Bitbucket repository, containing multiple branches, to Github. To accomplish this, I've followed this description:
# add remote github repository
$ git remote add upstream https://github.com:USER/PROJECT.git
# push all branches <-- doesn't work
$ git push upstream master
$ git push --tags upstream
Only the master
branch is pushed to the Github repository (also for git push --all upstream
).
In order to push all branches to Github, I need to checkout
them individually and do git push upstream
.
How can I push all branches to Github without first checkout
them?