How to Host Github Pages
- George Apostolov
How to Host Github Pages: step-by-step guide
Go to your repository on GitHub and navigate to 'Settings'.
Under 'Code and automation', select 'Pages'.
Under 'Source', select the branch you want to use by clicking the drop-down arrow.
Select a branch by clicking the drop-down arrow and choose from the options below.
Click on the 'Docs' by clicking the drop-down arrow.
Select a folder in the main branch.
Click 'Save' to apply changes.
A notification pops up confirming the change.
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'.
Quick answer: 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.
About this GitHub tutorial
Publish your website easily by configuring source branches and folders in GitHub repository settings to launch your live GitHub Pages site. This guide shows how to host Github Pages in 9 steps, starting with "Go to your repository on GitHub and navigate to 'Settings'" and finishing with "Once published, GitHub Pages will display a link to your website. It usually takes a fe...". The interactive demo above is a click-through copy of the real GitHub interface, so you can rehearse each step before doing it in your own account.
Frequently asked questions
How many steps does it take to host Github Pages?
9 steps. Each one is listed in order above, and the demo highlights exactly where to click.
Can I try it without changing my own account?
Yes. Clicking through the demo doesn't touch your GitHub data or settings. Once you know the flow, repeat it in your own workspace.
This tutorial is filed under GitHub. Related guides: How to Install from GitHub, How to Install GitHub and How to Install GitHub Files. Last reviewed 05 Oct 2026.
Create your first interactive demo in minutes
No credit card required • Start building today





