How to Create and Host Your First Website With GitHub
If you’ve found this article useful consider donating.
In this article I’ll teach you how to create your very own website and host it through GitHub completely for free. Let’s get started!
GitHub Setup
Firstly, you’ll need to create a GitHub account if you don’t have one already.
Once that is complete you’ll want to create a new public repository with the following name (case sensitivity doesn’t matter):
Now that you’ve created the repository you’ll want to clone it to your local machine with the following command:
git clone https://github.com/<username>/<username>.github.io.git
If you don’t have git
installed you can follow the instructionshere to install it.
Now we can move on to actually creating the website.
Website Creation
You can write your own HTML and CSS to create your website however, for the purposes of this tutorial I’ll be using a template from HTML5Up.
HTML5Up is a place where you can download and use premade HTML5 website templates for your own purposes completely for free.