How to Use Github Pages
- George Apostolov
How to Use Github Pages: step-by-step guide
Navigate to your repository.
Click on the 'Settings' tab.
Scroll down to the 'Pages' section.
Under 'Source', select the branch you want to publish by clicking the drop-don arrow.
Optionally, select a folder such as root or docs if needed.
Click the 'Save' button.
After enabling, GitHub will provide a URL. Visit the provided URL to see your live site by clicking the 'Visit site' button.
Quick answer: To use GitHub Pages in GitHub, navigate to your repository, click the 'Settings' tab, and scroll to 'Pages'. Select your publish branch under 'Source', optionally choose a folder, and click 'Save'. Finally, click the 'Visit site' button to view your live site at the provided URL.
About this GitHub tutorial
Publish a live website directly from your repository by configuring the Pages settings on GitHub with your preferred branch and folder. This guide shows how to use Github Pages in 7 steps, starting with "Navigate to your repository" and finishing with "After enabling, GitHub will provide a URL. Visit the provided URL to see your live site...". 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 use Github Pages?
7 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 Use Sourcetree with GitHub, Github Actions How to Use Environment Variables and How to Accept Github Invitation. Last reviewed 05 Oct 2026.
Create your first interactive demo in minutes
No credit card required • Start building today





