I have the following remotes set up:
$ git remote
korg
rorg
And the following branches:
$ git branch -a
* (no branch)
remotes/korg/gingerbread
remotes/korg/gingerbread-release
remotes/korg/honeycomb
remotes/korg/honeycomb-mr1-release
remotes/korg/master
remotes/m/android-2.3.3_r1 -> refs/tags/android-2.3.3_r1a
remotes/m/gingerbread -> korg/gingerbread
Now I wish to push all the remote branches from korg to the rorg remote. How do I do that?
Preferably without making a local branch for each first, if that is avoidable.
A quick test making some temporary repositories shows you can construct a refspec that can do this:
So origin/BRANCHNAME:refs/heads/BRANCHNAME
Checking in my
rorgremote: