Unpublishing a GitHub Pages site
You can unpublish your GitHub 页面 site so that the site is no longer available to everyone using 您的 GitHub Enterprise Server 实例.
GitHub 页面 可用于具有 GitHub Free 的公共仓库,以及具有 GitHub Pro、GitHub Team、GitHub Enterprise Cloud 和 GitHub Enterprise Server 的公共和私有仓库。
People with admin permissions for a repository can unpublish a GitHub 页面 site.
本文内容
Unpublishing a project site
-
在 GitHub Enterprise 上,导航到仓库的主页面。
-
If a
gh-pages
branch exists in the repository, delete thegh-pages
branch. -
If the
gh-pages
branch was your publishing source, your site is now unpublished and you can skip the remaining steps. -
在仓库名称下,单击 Settings(设置)。
-
Under "GitHub 页面", use the Source drop-down menu and select None.
-
如果对站点启用了自定义域,请更新您的 DNS 设置。更多信息请参阅“对 GitHub Pages 使用自定义域。”
Unpublishing a user or organization site
-
在 GitHub Enterprise 上,导航到仓库的主页面。
-
Delete the
master
branch, or delete the entire repository. For more information, see "Creating and deleting branches within your repository" and "Deleting a repository." -
如果对站点启用了自定义域,请更新您的 DNS 设置。更多信息请参阅“对 GitHub Pages 使用自定义域。”