Clone and Push all branches
December 18, 2018
Mirror Clone + Push
code
git clone --mirror OLD_URL
cd repo.git
git push --mirror NEW_URL
--mirror:
- kopiert alle refs (branches, tags, remotes)
- erzwingt Force Updates
- pruned geloeschte refs
Wenn du ein Working Copy brauchst
code
git clone OLD_URL
git push --all NEW_URL
git push --tags NEW_URL