我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们
文章版本: Enterprise Server 2.19

Unpublishing a GitHub Pages site

You can unpublish your GitHub Pages site so that the site is no longer available to everyone using 您的 GitHub Enterprise Server 实例.

GitHub Pages 可用于具有 GitHub Free 的公共仓库,以及具有 GitHub Pro、GitHub Team、GitHub Enterprise Cloud 和 GitHub Enterprise Server 的公共和私有仓库。

本文内容

People with admin permissions for a repository can unpublish a GitHub Pages site.

Unpublishing a project site

  1. 在 GitHub Enterprise 上,导航到仓库的主页面。
  2. If a gh-pages branch exists in the repository, delete the gh-pages branch.
  3. If the gh-pages branch was your publishing source, your site is now unpublished and you can skip the remaining steps.
  4. 在仓库名称下,单击 Settings(设置)
    仓库设置按钮
  5. Under "GitHub Pages", use the Source drop-down menu and select None.
    用于选择发布源的下拉菜单

Unpublishing a user or organization site

  1. 在 GitHub Enterprise 上,导航到仓库的主页面。
  2. Delete the master branch, or delete the entire repository. For more information, see "Creating and deleting branches within your repository" and "Deleting a repository."

延伸阅读

问问别人

找不到要找的内容?

联系我们