How to Host a Static Site with GitHub Pages Updated on September 15, 2025 by Christopher Maiorana 1 Minutes, 15 Seconds to Read In this article we’ll show you how you can easily host a basic website on your GitHub account using GitHub Pages. This can be valuable if you require an offsite resource to redirect visitors to in case of emergency hosting situations. For example, if you are undergoing maintenance or switching servers, you will be able to offload resources temporarily. Be sure to check out our guides about using GitHub and logging into your GitHub account. Setting up a Site with GitHub Pages Log into your GitHub Account Select New repository at the top right Name the repository Click Create Repository Visit your repository and choose Settings Select Choose a theme under the GitHub Pages section Select your theme Add content to the page or edit the existing content in the form window Click the green Commit Changes button to add changes to the master branch Visitor your new site at https://username.github.io/name-of-repository/ (a link will be provided to you) GitHub pages supports static HTML files.This means you can host an uncomplicated site there. There are no databases, so you can’t install something like a WordPress site. You will also have no options for SSL if you choose to use a custom domain. But, for a very basic project or emergency page, this is an easy way to set up a site quickly. Next Steps Now that you have created a single page hosted at GitHub.com, we will show you how to use a custom domain. Share this Article CM Christopher Maiorana Content Writer II Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog. More Articles by Christopher Related Articles How to Host a Static Site with GitHub Pages Publish Your Lovable Created React WebApp to InMotion Hosting Shared Hosting via GitHub How to Publish Your Lovable Created React WebApp to UltraStack ONE for React Git Checkout Command – How To Switch To Branches and Commits How to Create Your Own Git Server Using Git to Publish Files How to Create a New Account with GitHub How to Commit Changes in Git How to Sign Tags and Commits with Git Git Fundamentals Complete Beginner Guide