Dec 13, 2016 1 min read

Copying a complete git repo

thumbnail for this post

Sometimes the simple things can be hard as I needed to copy a complete git repo, and couldn’t quickly find how to. In the end I found this:

git clone --mirror
cd upstream-repository.git
git push --mirror

which worked as a charm.