Skip to content

Instantly share code, notes, and snippets.

@jeffreyroberts
Created January 16, 2014 11:12
Show Gist options
  • 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://[email protected]/jeffreylroberts/legophp-com-framework.git
[ /jlr/sites/legophp.com/framework ]
[ jlroberts@iMac ] $ git remote set-url --add --push origin [email protected]:LegoPHP/LegoPHP.git
[ /jlr/sites/legophp.com/framework ]
[ jlroberts@iMac ] $ git remote -v
github [email protected]:LegoPHP/LegoPHP.git (fetch)
github [email protected]:LegoPHP/LegoPHP.git (push)
origin ssh://[email protected]/jeffreylroberts/legophp-com-framework.git (fetch)
origin ssh://[email protected]/jeffreylroberts/legophp-com-framework.git (push)
origin [email protected]: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