Created
December 6, 2018 17:23
-
-
Save thadd/765f3ce339f1b9772cba621f8eaf333d to your computer and use it in GitHub Desktop.
Clones all branches from one remote to another. Replace `destremote` and `sourceremote` as appropriate.
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
# Copies all branches from one git remote to another | |
git push destremote 'refs/remotes/sourceremote/*:refs/heads/*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment