Skip to content

Instantly share code, notes, and snippets.

@coherencez
coherencez / pushurls.md
Last active September 18, 2025 12:35
Setup multiple origin push urls for git repos -- one git push: multiple repos

Create multiple origin push urls for GitHub.

  1. We want to make sure to add a new remote as normal: git remote add <remote name> <url for git repo>

  2. Now we can setup multiple origin push urls:

  • git remote set-url --add --push origin <git url one>
  • git remote set-url --add --push origin <git url two>
  1. Last step, you will need to set the upstream branch again