Copying a complete git repo

This week 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.

Leave a Reply

Your email address will not be published. Required fields are marked *