- Open https://github.com/new in your browser to begin creating a new repository for your
github.iohomepage. - Name your new repo
USERNAME.github.io.- Replace
USERNAMEwith your GitHub username. - Example:
droxey.github.io
- Replace
- Check the box labeled Initialize this repository with a README.
- Click
Create Repository. - Double check that the URL in your browser matches the following pattern:
https://github.com/USERNAME/USERNAME.github.io. - Go to the Settings tab, scroll down to the middle of the page, and locate the section for GitHub pages.
- Choose
masterfrom 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!
- If you have a custom domain, add
yourdomain.comin the textbox labeled Custom domain, then click Save. Leave outhttp://orhttps://. - 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!