Skip to content
Guideflow

How to change a public repository to private in GitHub

Here is how to change a public repository to private in github

  1. First open the public repository you want to make private
  2. Next click on "Settings" tab in the top navigation menu
  3. In the “General” section, scroll down to the “Danger Zone”
  4. Then click on the "Change visibility" option
  5. Next click on "Change to private" option in the visibility menu
  6. Click on "I want to make this repository private" button in the confirmation dialog
  7. Click on "I have read and understand these effects" in the modal dialog
  8. Finally click on "Make this repository private" button to confirm the action
  9. The repository visibility has been successfully changed to private
Create your own interactive guide with Guideflow

Why should you change a public repository to private in GitHub

GitHub is a versatile platform designed for streamlined code collaboration and management.

Transforming a public repository to private in GitHub is a seamless feature that enhances privacy and control over your projects.

This switch provides developers and organizations with the ability to shield their code from public view, thereby safeguarding intellectual property and sensitive information.

Utilizing this feature empowers teams to maintain a secure collaboration environment while retaining the flexibility to share with specific contributors as needed.

Last update

Tutorials

Built to impress

Why leading companies build with Guideflow

More tutorials

Create your first demo in less than 30 seconds.

Get started now