Setting repository visibility

You can choose who can view your repository.

In this article

Did this doc help you?

About repository visibility changes

Organization owners can restrict the ability to change repository visibility to organization owners only. For more information, see "Restricting repository visibility changes in your organization."

We recommend reviewing the following caveats before you change the visibility of a repository.

Making a repository private

Making a repository public

Changing a repository's visibility

  1. On GitHub Enterprise, navigate to the main page of the repository.
  2. Under your repository name, click Settings.
    Repository settings button
  3. Under "Danger Zone", to the right of to "Change repository visibility", click Change visibility.
    Change visibility button
  4. Select a visibility.
    Dialog of options for repository visibility
  5. To verify that you're changing the correct repository's visibility, type the name of the repository you want to change the visibility of.
  6. Click I understand, change repository visibility.
    Confirm change of repository visibility button

Further reading

Did this doc help you?