This version of GitHub Enterprise was discontinued on 2020-11-12. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Setting repository visibility

You can choose who can view your repository.

In this article

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

Making a repository private

  1. On GitHub Enterprise Server, navigate to the main page of the repository.
  2. Under your repository name, click Settings.
    Repository settings button
  3. Under "Danger Zone", next to "Make this repository private", click Make private.
    Make private button
  4. Read the warnings about making a repository private.
    Warnings popup
  5. Type the name of the repository that you want to make private, for example accountname/reponame.
  6. Click I understand, make this repository private.

Making a repository public

  1. On GitHub Enterprise Server, navigate to the main page of the repository.
  2. Under your repository name, click Settings.
    Repository settings button
  3. Under "Danger Zone", next to "Make this repository public", click Make public.
    Make public button
  4. Read the warnings about making a repository public.
    Pop-up with information about making a private repository public
  5. Type the name of the repository that you want to make public, for example accountname/reponame.
  6. Click I understand, make this repository public.

Further reading