Skip to content

Instantly share code, notes, and snippets.

@jcdarwin
Last active August 29, 2015 13:59
Show Gist options
  • Save jcdarwin/10616558 to your computer and use it in GitHub Desktop.
Save jcdarwin/10616558 to your computer and use it in GitHub Desktop.
Pushing to multiple git repos simultaneously
# setup our remotes
git remote add all git@myrepo:pathtorepo
git remote set-url all --add [email protected]:me/myrepo
git remote set-url all --add [email protected]:me/myrepo
git remote set-url all --add https://gitlab.cwp.govt.nz/pathtorepo
# do work
git add .
git commit -m "Commiting work"
# push to *all* remotes
git push all master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment