# How to Host Github Pages

> To host GitHub Pages in GitHub, navigate to repository settings, select Pages under Code and automation, choose your source branch and folder, save the changes, and click Visit site once the live link is displayed.

Canonical: https://livedemo.ai/tutorials/how-to-host-github-pages/
Apps: GitHub
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a3f81ab56e05a00fe769c/preview?step=1

## Steps

1. Go to your repository on GitHub and navigate to 'Settings'.
2. Under 'Code and automation', select 'Pages'.
3. Under 'Source', select the branch you want to use by clicking the drop-down arrow.
4. Select a branch by clicking the drop-down arrow and choose from the options below.
5. Click on the 'Docs' by clicking the drop-down arrow.
6. Select a folder in the main branch.
7. Click 'Save' to apply changes.
8. A notification pops up confirming the change.
9. Once published, GitHub Pages will display a link to your website. It usually takes a few minutes for your site to become live. Click 'Visit site'.
