Create a bare clone of the repository.
$ git clone --bare https://github.com/exampleuser/old-repository.git
$ cd old-repository.git
$ git push --mirror https://github.com/exampleuser/new-repository.git
Remove the temporary local repository you created in step 1.
$ cd ..
$ rm -rf old-repository.git