Make a forked GitHub repository privatemiAlism / October 11, 20211 min read • Command git clone --bare https://github.com/exampleuser/public-repo.gitcd public-repo.gitgit push --mirror https://github.com/yourname/private-repo.gitcd ..rm -rf public-repo.git Reference stackoverflow