How to Host a Static Site with GitHub Pages

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.

Setting up a Site with GitHub Pages

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 <a href="/support/domain-names/how-to-use-a-custom-domain-with-github-pages/">custom domain</a>.    But, for a very basic project or emergency page, this is an easy way to set up a site quickly. 
  1. Log into your GitHub Account
  2. Select New repository at the top right
  3. Name the repository
  4. Click Create Repository
  5. Visit your repository and choose Settings
  6. Select Choose a theme under the GitHub Pages section
  7. Select your theme
  8. Add content to the page or edit the existing content in the form window
  9. Click the green Commit Changes button to add changes to the master branch
  10. Visitor your new site at https://username.github.io/name-of-repository/ (a link will be provided to you)

Next Steps

 Now that you have created a single page hosted at GitHub.com, we will show you how to use a <a href="/support/domain-names/how-to-use-a-custom-domain-with-github-pages/">custom domain</a>.
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

Was this article helpful? Join the conversation!

Questions about our MailChannels Deployment? We have answers and are here to help!Learn More
+