Skip to content

Instantly share code, notes, and snippets.

@wilderjds
Last active January 19, 2020 03:39
Show Gist options
  • Save wilderjds/b668c0b5b7568f7774e4cac105b994fd to your computer and use it in GitHub Desktop.
Save wilderjds/b668c0b5b7568f7774e4cac105b994fd to your computer and use it in GitHub Desktop.

How to add an extra url to a given remote in git

Use this command to add another url to the same remote in git; pushing will update all repositories.

git remote set-url origin --add --push git@some-host.com:alfunx/foo

Source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment