Skip to content

Instantly share code, notes, and snippets.

@monnoval
Last active December 31, 2019 03:45
Show Gist options
  • Save monnoval/6aae0b855fca4786766938996342e192 to your computer and use it in GitHub Desktop.
Save monnoval/6aae0b855fca4786766938996342e192 to your computer and use it in GitHub Desktop.
git remote remove origin
git remote add origin [BASE-GIT-REPO]
git remote set-url --add --push origin [BASE-GIT-REPO]
git remote set-url --add --push origin [SECONDARY-GIT-REPO]
$ git remote -v
origin [BASE-GIT-REPO] (fetch)
origin [BASE-GIT-REPO] (push)
origin [SECONDARY-GIT-REPO] (push)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment