Skip to content

Instantly share code, notes, and snippets.

@hkuno9000
Last active September 13, 2018 00:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkuno9000/2449292be321eded5a2179c7acbb5319 to your computer and use it in GitHub Desktop.
Save hkuno9000/2449292be321eded5a2179c7acbb5319 to your computer and use it in GitHub Desktop.
git puth to multi mirror repos.
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