You can choose to allow or disallow organization members from publishing GitHub Pages sites. Organizations that use GitHub Enterprise Cloud can also choose to allow publicly published sites, privately published sites, both, or neither. For more information, see the GitHub Enterprise Cloud documentation.
If you disallow publication of GitHub Pages sites, any sites that are already published will remain published. You can manually unpublish the site. For more information, see "Unpublishing a GitHub Pages site."
-
在 GitHub.com 的右上角,单击您的头像,然后单击 Your organizations(您的组织)。
-
在组织旁边,单击 Settings(设置)。
-
在边栏的“Access(访问)”部分中,单击 Member privileges(成员权限)。
-
Under "Pages creation, select or deselect Public.
注意: 若要私下发布 GitHub Pages 网站,您的组织必须使用 GitHub Enterprise Cloud。 有关如何免费试用 GitHub Enterprise Cloud 的详细信息,请参阅“设置 GitHub Enterprise Cloud 试用版”。
-
Click Save.