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 urls.
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.
push-all = !git push firstremote mybranch:firstbranch && git push secondremote mybranch:secondbranchto projects git config. So I also used @mahead's one-liner ;).