Change repository from public to private in GitHub
GitHub allows unlimited free private repositories and to take advantage of it, you can change the repository status from public to private by following the steps listed below. (As a free user, you can change any repos you control to private)
Change repository visibility to private in GitHub
-
Go to GitHub.com and the repository where you want to change the visibility
-
Scroll down to “Danger Zone”
-
Click on “Change Visibility” in the Danger Zone
-
Then Click on “Change to Private” and again click on “I want to make this repository private”
-
Making a repository private will erase all stars and watches, it will also affect the rankings. If you are still okay with it, then go ahead and click on “I have read and understand these effects
-
Repositories visibility will change to private
By following the above process, we will be able to change the repository from public to private in Github.