Skip to content

Instantly share code, notes, and snippets.

View badgumby's full-sized avatar
:atom:
New boot goofin'

BADGumby badgumby

:atom:
New boot goofin'
View GitHub Profile
@badgumby
badgumby / git-pushing-multiple.rst
Created April 7, 2021 16:00 — 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

Keybase proof

I hereby claim:

  • I am badgumby on github.
  • I am zerowizard (https://keybase.io/zerowizard) on keybase.
  • I have a public key ASCVEzDE3YHH_o4ouRKMnMIAA9d-4dfi1OLqiiO4yHkBhQo

To claim this, I am signing this object: