Skip to content

Instantly share code, notes, and snippets.

@fabiojose
Created January 18, 2019 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiojose/6f35946896c99c323f744942da716c6b to your computer and use it in GitHub Desktop.
Save fabiojose/6f35946896c99c323f744942da716c6b to your computer and use it in GitHub Desktop.
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