Skip to content

Instantly share code, notes, and snippets.

@cyrillkuettel
Last active August 23, 2022 11:31
Show Gist options
  • Save cyrillkuettel/40217233038fec27d52caee15b5a3d0a to your computer and use it in GitHub Desktop.
Save cyrillkuettel/40217233038fec27d52caee15b5a3d0a to your computer and use it in GitHub Desktop.
Add multiple remote origin urls to git

Show the curent remote origin url

git config --get remote.origin.url

Add multiple remote origins

git remote set-url --add --push origin git@<your_remote_url_here>
git remote set-url --add --push origin git@<your_second_remote_url_here>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment