I am following the following process to duplicate a repository found here:
https://help.github.com/articles/duplicating-a-repository/
- Create a new private repository (new-repository.git) on github made sure not to create a readme - Done
- Create a bare clone of the public repository (old-repository.git) I want to duplicate by running
git clone --bare https://github.com/exampleuser/old-repository.git
Success.
- Then I do this:
cd old-repository.git
And this:
git push --mirror https://github.com/exampleuser/new-repository.git
I then get the error in my terminal that:
remote: Repository not found.
fatal: repository 'https://github.com/exampleuser/new-repository.git/' not found
I seems like I am missing a simple step. How can I find out what is going wrong and fix it.