- clone the repo
$ git clone --bare https://github.com/exampleuser/old-repository.git
- Push to new repository
$ cd old-repository.git
$ git push --mirror https://github.com/exampleuser/new-repository.git
- Delete old repository you recently cloned
$ cd ..
$ rm -rf old-repository.git