Git remotes can have more than one URL

If you want to have multiple URLs for a single remote so git push origin ... will push to multiple remotes, such as GitHub and GitLab, or a personal repository and a client repository, you can do git remote set-url --add origin <url>.

Then git remote -v should show something like this:

origin  [email protected]:opdavies/zet.oliverdavies.uk (fetch)
origin  [email protected]:opdavies/zet.oliverdavies.uk (push)
origin  [email protected]:opdavies/zet.oliverdavies.uk.git (push)

Tags