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 hidden or 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://[email protected]/who/proj.git | |
cd proj | |
# set remote mirror URL | |
git remote add --mirror=push mirror1 https://[email protected]/who/proj.git | |
git remote add --mirror=push mirror2 https://[email protected]/who/proj.git | |
# push to remote-mirrors | |
git push mirror1 | |
git push mirror2 | |
# push to direct-URL | |
git push --mirror https://[email protected]/who/proj.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment