Provided there are two remote repositories (A, B) and there is a branch master (among others). The first repository A has all branches and the other one B has to have one only masterB.
How can I push local branch master to both remote repositories with a single "git push" command ? (mapping A: master->master; mapping B: master->masterB)
tried so far:
[remote "A"]
url = <urlA>
fetch = +refs/heads/*:refs/remotes/A/*
[remote "B"]
url = <urlB>
fetch = +refs/heads/*:refs/remotes/B/*
push = master:masterB
[branch "master"]
remote = A
merge = refs/heads/master
pushRemote = A
pushRemote = B //this overrides the previous push remote; how can I use both ?
The reference says that multiple 'pushRemote' entries are possible.