Skip to content

Instantly share code, notes, and snippets.

@cuibonobo
Last active December 18, 2020 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cuibonobo/10cd4192873a204c05e22a5bd34a5727 to your computer and use it in GitHub Desktop.
Save cuibonobo/10cd4192873a204c05e22a5bd34a5727 to your computer and use it in GitHub Desktop.
Pushing to multiple repositories at the same time. (This will also work with HTTP URLs.)
git remote set-url --add --push origin git@github.com:org_1/the_repo.git
git remote set-url --add --push origin git@bitbucket.org:org_2/the_repo.git
# Note: Even if you cloned the repo directly from one of these addresses, you still
# need to set them again as a push URL!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment