Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.46 KB

File metadata and controls

26 lines (18 loc) · 1.46 KB

Guide: Infinite GitHub Pages

Set Up the Root Site

  1. Open https://github.com/new in your browser to begin creating a new repository for your github.io homepage.
  2. Name your new repo USERNAME.github.io.
  3. Check the box labeled Initialize this repository with a README.
  4. Click Create Repository.
  5. Double check that the URL in your browser matches the following pattern: https://github.com/USERNAME/USERNAME.github.io.
  6. Go to the Settings tab, scroll down to the middle of the page, and locate the section for GitHub pages.
  7. Choose master from the Source drop-down box.

Test it out! Open a new tab and go to https://USERNAME.github.io. You should see a page with the name of your repository on it!

You can now access the GitHub Pages site for any of your repositories by visiting https://USERNAME.github.io/REPONAME!

Add a Custom Domain to the Root Site

  1. If you have a custom domain, add yourdomain.com in the textbox labeled Custom domain, then click Save. Leave out http:// or https://.
  2. Check the box labeled Enforce HTTPS.

Test it out! Visit https://yourdomain.com. The page you see should match https://USERNAME.github.io.

You can now access the GitHub Pages site for any of your repositories by visiting https://yourdomain.com/REPONAME!