如何把公共reposit 转为 私有

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

参考:
GitHub: How to make a fork of public repository private?

你可能感兴趣的:(如何把公共reposit 转为 私有)