oliverdavies.uk/source/_posts/9.md
Oliver Davies 2c517f1d39 Move zet notes to blog posts
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
2025-09-10 18:36:36 +01:00

675 B

title date tags note permalink
Git remotes can have more than one URL 2024-08-22 09:43:42
Software Development
Git
true /notes/9-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  git@github.com:opdavies/zet.oliverdavies.uk (fetch)
origin  git@github.com:opdavies/zet.oliverdavies.uk (push)
origin  git@gitlab.com:opdavies/zet.oliverdavies.uk.git (push)