Created
January 18, 2019 10:41
-
-
Save fabiojose/6f35946896c99c323f744942da716c6b to your computer and use it in GitHub Desktop.
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
ORIGIN=<ORIGIN_REPO_URL> | |
MIRROR1=<MIRROR_REPO_URL> | |
git clone --bare $ORIGIN | |
cd $ORIGIN | |
git remote add --mirror=fetch mirror1 $MIRROR1 | |
git fetch origin --tags | |
git push mirror1 --all | |
git push mirror1 --tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment