How to get private clone of a public github repository

for example consider a scenario which we are trying to clone public repo of ton-community/tsc5 to the private repo that I’ve created in arashnm80/ts5-private. we can use commands like this:

git clone --bare
cd tsc5.git
git push --mirror

you can change the names and follow this routine for your desired repo and your own github account.