記事のバージョン: GitHub.com
Unpublishing a GitHub Pages site
You can unpublish your GitHub Pages site so that the site is no longer available to the public.
GitHub Pages は、GitHub Free のパブリックリポジトリ、GitHub Pro 、GitHub Team、GitHub Enterprise Cloud、GitHub Enterprise Server のパブリックおよびプライベートリポジトリで利用できます。 詳しい情報については「GitHubの製品」を参照してください。
People with admin permissions for a repository can unpublish a GitHub Pages site.
Unpublishing a project site
- GitHubで、リポジトリのメインページにアクセスしてください。
- If a
gh-pagesbranch exists in the repository, delete thegh-pagesbranch. - If the
gh-pagesbranch was your publishing source, skip to step 6. - リポジトリ名の下で Settings(設定)をクリックしてください。

- Under "GitHub Pages", use the Source drop-down menu and select None.

- サイトで有効化されているカスタムドメインがあるなら、ドメインの乗っ取りを避けるためにDNSの設定を更新してください。 詳しい情報については、「GitHub Pages サイト用のカスタムドメインの設定」を参照してください。
Unpublishing a user or organization site
- GitHubで、リポジトリのメインページにアクセスしてください。
- Delete the
masterbranch, or delete the entire repository. For more information, see "Creating and deleting branches within your repository" and "Deleting a repository." - サイトで有効化されているカスタムドメインがあるなら、ドメインの乗っ取りを避けるためにDNSの設定を更新してください。 詳しい情報については、「GitHub Pages サイト用のカスタムドメインの設定」を参照してください。