Skip to content

Instantly share code, notes, and snippets.

View karudonaldson's full-sized avatar

Karu Donaldson karudonaldson

View GitHub Profile

Keybase proof

I hereby claim:

  • I am karudonaldson on github.
  • I am sistym (https://keybase.io/sistym) on keybase.
  • I have a public key ASARKAKQ3ogRQEUkA2RMYs5t4LpFlVkYXXencRLAP1g5xgo

To claim this, I am signing this object:

@karudonaldson
karudonaldson / git-pushing-multiple.rst
Created December 30, 2024 05:35 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just