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 git@gitlab.com:mbtamuli/miterp.git

To add the two remotes, I had to do,
git remote set-url --add --push allgit@gitlab.com:mbtamuli/miterp.git
git remote set-url --add --push all ssh://mbtamuli@techfreak.ga:2212/~/miterp.git

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.