Jump to the navigation menu

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)

About me

Picture of Oliver

I'm an certified Drupal Triple Expert with 18 years of experience, a Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.