Last active
August 29, 2015 13:59
-
-
Save jcdarwin/10616558 to your computer and use it in GitHub Desktop.
Pushing to multiple git repos simultaneously
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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