Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
GitHub Docs

Quickstart for GitHub Pages

You can use GitHub Pages to showcase some open source projects, host a blog, or even share your résumé. This guide will help get you started on creating your next website.

Who can use this feature?

GitHub Pages is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, seeGitHub’s plans.

Introduction

In this guide, you'll create a user site at<username>.github.io.

Creating your website

  1. In the upper-right corner of any page, select, then clickNew repository.

    Screenshot of a GitHub dropdown menu showing options to create new items. The menu item "New repository" is outlined in dark orange.

  2. Enterusername.github.io as the repository name. Replaceusername with your GitHub username. For example, if your username isoctocat, the repository name should beoctocat.github.io.

    Screenshot of GitHub Pages settings in a repository. The repository name field contains the text "octocat.github.io" and is outlined in dark orange.

  3. Choose a repository visibility. For more information, seeAbout repositories.

  4. ToggleAdd README toOn.

  5. ClickCreate repository.

  6. Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then clickSettings.

    Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.

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

  8. Under "Build and deployment", under "Source", selectDeploy from a branch.

  9. Under "Build and deployment", under "Branch", use the branch dropdown menu and select a publishing source.

    Screenshot of Pages settings in a GitHub repository. A menu to select a branch for a publishing source, labeled "None," is outlined in dark orange.

  10. Optionally, open theREADME.md file of your repository. TheREADME.md file is where you will write the content for your site. You can edit the file or keep the default content for now.

  11. Visitusername.github.io to view your new website. Note that it can take up to 10 minutes for changes to your site to publish after you push the changes to GitHub.

Changing the title and description

By default, the title of your site isusername.github.io. You can change the title by editing the_config.yml file in your repository. You can also add a description for your site.

  1. Click theCode tab of your repository.

  2. In the file list, click_config.yml to open the file.

  3. Click to edit the file.

  4. The_config.yml file already contains a line that specifies the theme for your site. Add a new line withtitle: followed by the title you want. Add a new line withdescription: followed by the description you want. For example:

    theme:jekyll-theme-minimaltitle:Octocat'shomepagedescription:Bookmarkthistokeepaneyeonmyprojectupdates!
  5. When you are finished editing the file, clickCommit changes.

Next Steps

You've successfully created, personalized, and published your first GitHub Pages website but there's so much more to explore! Here are some helpful resources for taking your next steps with GitHub Pages:


[8]ページ先頭

©2009-2025 Movatter.jp