Skip to main content
Skip to content

Changing the visibility of your GitHub Pages site

You can manage access control for your project site by publishing the site publicly or privately.

Who can use this feature?

People with admin access to a repository can change the visibility of a GitHub Pages site.

Note

To publish a GitHub Pages site privately, your organization must use GitHub Enterprise Cloud. For more information about how you can try GitHub Enterprise Cloud for free, see Setting up a trial of GitHub Enterprise Cloud.

For information about who can access a privately published site, how its subdomain works, and what happens to it if your organization stops using GitHub Enterprise Cloud, see About privately published GitHub Pages sites.

Changing the visibility of your GitHub Pages site

  1. On GitHub, navigate to your site's repository.

  2. Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

    Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.

  3. In the "Code, planning, and automation" section of the sidebar, click Pages.

  4. Under "GitHub Pages", select the GitHub Pages visibility dropdown menu, then select a visibility.

  5. To see your published site, under "GitHub Pages", click Visit site.

    Screenshot of a confirmation message for GitHub Pages listing the site's URL. On the right, the "Visit site" button is outlined in orange.

Note

It can take up to 10 minutes for changes to your site to publish after you push the changes to GitHub. If you don't see your GitHub Pages site changes reflected in your browser after an hour, see About Jekyll build errors for GitHub Pages sites.