Multiple Git remotes repositories

Let say, you would like to make back up code to multiple repositories. For the example; one is Github and another is self hosted Gitlab.

git remote set-url --add --push origin git@git.nazreen.my:rained23/yosh.git
git remote set-url --add --push origin git@github.com:invoture/yosh.git

So when you push to origin, it will push to both repositories.

A git remote -v should reveal the actual URLs for all remotes.

git remote set-url --add --push all git://another/repo.git