Skip to main content

Unpublishing a GitHub Pages site

この記事では、次の項目が扱われます。

You can unpublish your GitHub Pages site so that the site is no longer available.

Who can use this feature

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

GitHub Pagesは、GitHub Free及びOrganizationのGitHub Freeのパブリックリポジトリ、GitHub Pro、GitHub Team、GitHub Enterprise Cloud、GitHub Enterprise Serverのパブリック及びプライベートリポジトリで利用できます。

Unpublishing a project site

  1. On your GitHub Enterprise Server instance, navigate to the main page of the repository.

  2. If a gh-pages branch exists in the repository, delete the gh-pages branch. For more information, see "Creating and deleting branches within your repository."

  3. If the gh-pages branch was your publishing source, your site is now unpublished and you can skip the remaining steps.

  4. リポジトリ名の下の [ 設定] をクリックします。 リポジトリの設定ボタン

  5. In the "Code and automation" section of the sidebar, click Pages.

  6. Under "GitHub Pages", use the Source drop-down menu and select None. Drop down menu to select a publishing source

Unpublishing a user or organization site

  1. On your GitHub Enterprise Server instance, navigate to the main page of the repository.
  2. Delete the branch that you're using as a publishing source, or delete the entire repository. For more information, see "Creating and deleting branches within your repository" and "Deleting a repository."