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

Disabling publication of GitHub Pages sites for your organization

You can prevent members of your organization from publishing GitHub Pages sites from repositories in the organization.

Organization owners can disable publication of GitHub Pages sites from repositories in the organization.

GitHub Pages 适用于具有 GitHub Free 和组织的 GitHub Free 的公共仓库,以及具有 GitHub Pro、GitHub Team、GitHub Enterprise Cloud 和 GitHub Enterprise Server 的公共和私有仓库。 For more information, see "GitHub's products."

本文内容

此文档对您有帮助吗?

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或, 了解如何参与。

About restrictions on publication of GitHub Pages sites

You can control whether members of your organization can publish websites from repositories in your organization using GitHub Pages. For more information about GitHub Pages, see "About GitHub Pages."

GitHub Pages sites are publicly available on the internet, even if the repository for the site is private or internal. For more information, see "About repository visibility."

Disabling publication of GitHub Pages sites

After you disable publication of GitHub Pages sites, any published site will remain published. You can manually unpublish the site. For more information, see "Unpublishing a GitHub Pages site."

  1. 在 GitHub 的右上角,单击您的个人资料照片,然后单击 Your profile(您的个人资料)
    个人资料照片
  2. 在您的个人资料页面左侧的“Organizations(组织)”下,单击组织的图标。
    组织图标
  3. 在组织名称下,单击 Settings(设置)
    组织设置按钮
  4. 在左侧边栏中,单击 Member privileges(成员权限)
    组织设置中的成员权限选项
  5. Under "Pages creation", unselect Allow members to publish sites.
    Unselected checkbox for "Allow members to publish sites" option
  6. Click Save.
    "Save" button for "Allow members to publish sites" option

此文档对您有帮助吗?

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或, 了解如何参与。