Last active
September 13, 2018 00:00
-
-
Save hkuno9000/2449292be321eded5a2179c7acbb5319 to your computer and use it in GitHub Desktop.
git puth to multi mirror repos.
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
git clone https://who@github.com/who/proj.git | |
cd proj | |
# set remote mirror URL | |
git remote add --mirror=push mirror1 https://who@bitbucket.org/who/proj.git | |
git remote add --mirror=push mirror2 https://who@abc.com/who/proj.git | |
# push to remote-mirrors | |
git push mirror1 | |
git push mirror2 | |
# push to direct-URL | |
git push --mirror https://who@xyz.com/who/proj.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment