In private mode, GitHub Enterprise requires every user to sign in to access the installation.

You must enable private mode if your GitHub Enterprise instance is publicly accessible over the Internet. In private mode, users cannot anonymously clone repositories over git://. If built-in authentication is also enabled, an administrator must invite new users to create an account on the instance. For more information, see "Using built-in authentication."

Warning: If you add an image attachment to a pull request or issue comment, anyone can view the anonymized image URL without authentication, even if the pull request is in a private repository, or if private mode is enabled. To keep sensitive images private, serve them from a private network or server that requires authentication.

  1. Rocketship icon for accessing site admin settingsIn the upper-right corner of any page, click .

  2. Management Console tab in the left sidebarIn the left sidebar, click Management Console.

  3. Privacy tab in the settings sidebarIn the left sidebar, click Privacy.

  4. Checkbox for enabling private modeSelect Private mode.

  5. Save settings buttonUnder the left sidebar, click Save settings.