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 remote set-url --add --push origin

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