参考自:
Setting repository visibility - GitHub Docs
-
On GitHub.com, navigate to the main page of the repository.
-
Under your repository name, click Settings.
-
Under "Danger Zone", to the right of to "Change repository visibility", click Change visibility.
-
Select a visibility.
-
-
To verify that you're changing the correct repository's visibility, type the name of the repository you want to change the visibility of.