I have a local repository that i want to push to multiple remote repositories (firstremote
, secondremote
).
This can simply be done by editing .git/config
and creating a new remote
with multiple url
s.
But additionally I want to push my local branch to different-named remote branches. E.g. push (mybranch
) to a branch named firstbranch
on firstremote
and to secondbranch
on secondremote
.
For this I have no idea how to specify the different upstream branch names.
Note: I'd like to do the push automatically with a single git push
.