Skip to content

Instantly share code, notes, and snippets.

@thadd
Created December 6, 2018 17:23
Show Gist options
  • Save thadd/765f3ce339f1b9772cba621f8eaf333d to your computer and use it in GitHub Desktop.
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.
# 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