- Mirror a repo (one time):
$ git clone --bare https://github.com/exampleuser/old-repository.git
$ cd old-repository.git
$ git push --mirror https://github.com/exampleuser/new-repository.git
... now delete the temporary local repo directory
- Mirror a repo (and regularly sync/push):