How to Host a Website on Github
- George Apostolov
How to Host a Website on Github: step-by-step guide
Open your desired repository and click on the 'Settings' tab.
Under 'Code and automation', select 'Pages'.
Go to the 'Source' section and select the drop-down arrow by clicking 'Deploy from a branch'.
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.
You will see a small yellow circle and click on it.
Click on the 'Details' button.
After clicking, you will see the backend process.
Once the steps have been successfully applied, click 'Settings'.
That's it! Your website is now live and you can click your website by clicking 'Visit site'.
Quick answer: To host a website on GitHub, open your repository settings, go to Pages, select 'Deploy from a branch', choose your branch and folder, and click 'Save'. Monitor the build process, return to settings when complete, and click 'Visit site' to view your live page.
About this GitHub tutorial
Publish your web pages online easily by configuring repository settings on GitHub Pages and deploying from your designated branch. This guide shows how to host a Website on Github in 13 steps, starting with "Open your desired repository and click on the 'Settings' tab" and finishing with "That's it! Your website is now live and you can click your website by clicking 'Visit s...". 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 a Website on Github?
13 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 Host Github Pages, How to Install from GitHub and How to Install GitHub. Last reviewed 05 Oct 2026.
Create your first interactive demo in minutes
No credit card required • Start building today





