Github
GitHub is a code hosting and version control platform for developers to collaborate on software projects.
Website
Industry
Website
Share this article:

How to change a repository visibility in GitHub

Here is how to change a repository visibility 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 settings have been successfully updated

Create your own interactive guide with Guideflow

Why should you change a repository visibility in GitHub

GitHub is a dynamic platform designed to help developers collaborate and share code easily.

One of the key features of GitHub is the ability to change a repository's visibility. This feature allows users to manage who can view and access their projects, toggling between public and private settings as needed.

Using this feature wisely can protect sensitive information, foster collaborative project management, and control data sharing in professional and personal projects.

Ultimately, adjusting repository visibility empowers developers to tailor their project's accessibility, aligning with their unique goals and privacy needs.

Last update
March 12, 2026
Cursor MariaA cursor points to a button labeled "James."

Create your first demo in less than 30 seconds.