The correct way of creating a private frok by duplicating the repo is documented here.
We assume the following:
- Old or original repo is:
git@github.com:<user>/<old-repo>.git
- New mirror will be:
git@github.com:<your_username>/mirror.git
For this, the commands are:
- Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)