Git push to multiple remotes.

Ah, git. Always surprising.

I recently had the requirement to push to multiple remote URL at once. I found out that you could set multiple push URLs. The trick to doing that lies in the using

git remote set-url --add --push

So what I did was, create a new remote all, which seemed appropriate, using
git remote add all

To add the two remotes, I had to do,
git remote set-url --add --push
git remote set-url --add --push all ssh://

Somehow, just adding(git remote set-url --add --push) the second remote after creating (git remote add) seems to replace it instead of adding it. So we have to add twice for the two URLs.