Make a forked GitHub repository private

miAlism

miAlism / October 11, 2021

1 min read

Command

git clone --bare https://github.com/exampleuser/public-repo.git
cd public-repo.git
git push --mirror https://github.com/yourname/private-repo.git
cd ..
rm -rf public-repo.git

Reference

stackoverflow