Skip to content

Instantly share code, notes, and snippets.

@jeffreyroberts
Created January 16, 2014 11:12
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 jeffreyroberts/8453208 to your computer and use it in GitHub Desktop.
Save jeffreyroberts/8453208 to your computer and use it in GitHub Desktop.
Push to multiple repos with a single command
[ /jlr/sites/legophp.com/framework ]
[ jlroberts@iMac ] $ git remote set-url --add --push origin ssh://git@bitbucket.org/jeffreylroberts/legophp-com-framework.git
[ /jlr/sites/legophp.com/framework ]
[ jlroberts@iMac ] $ git remote set-url --add --push origin git@github.com:LegoPHP/LegoPHP.git
[ /jlr/sites/legophp.com/framework ]
[ jlroberts@iMac ] $ git remote -v
github git@github.com:LegoPHP/LegoPHP.git (fetch)
github git@github.com:LegoPHP/LegoPHP.git (push)
origin ssh://git@bitbucket.org/jeffreylroberts/legophp-com-framework.git (fetch)
origin ssh://git@bitbucket.org/jeffreylroberts/legophp-com-framework.git (push)
origin git@github.com:LegoPHP/LegoPHP.git (push)
[ /jlr/sites/legophp.com/framework ]
[ jlroberts@iMac ] $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment