Looking to share your work with everyone? Not sure how to host your website with all the hosting options? Well, it might seem like it's difficult to host a website and also learn all the necessary requirements to host, but that's not always the case! GitHub allows developers from all levels to host their website with a simple GUI.
Steps to Hosting a Website on GitHub
1. If you don't already have a GitHub account, create one at https://github.com.
It's super simple and all you need is a Username, Email and Password.
2. Using either a Mac or Windows, download an application called GitHub Desktop. Open the application and login with your GitHub credentials.
In this example, I am using a Windows computer, hence I downloaded the GitHub for Windows.
3. Create a new Repository on your GitHub Application. This should be located on the File/New Repository.
IMPORTANT - You must name your repository: [username].github.io and ticking the "Initialize this repository with a README" is optional. In this example I am ticking this box.
4. If you already have your website files set up, then great! Just move your files into the GitHub folder you saved in.
If you're not sure, check the Local Path in Step 4. For me, this is in C:\Users\[Name]\Documents\GitHub.
IMPORTANT: Your homepage HTML file should be called index.html
5. Back to the GitHub Application, you should see all your files that you have uploaded to your repository.
As you can see by the example, the changed files is on the left hand side. Tick the files you want to commit and press the "Commit to master" button on the bottom.
6. On the top right of your application, click the "Publish Report" and "Publish repository" button.
I personally like to tick the "Keep this code private" box, but that's up to you.
7. Now check your [username].github.io on the browser, in my case it would be wksung.github.io.
NOTE: If you check and it's not there, wait for a few minutes and check again.
Un-publishing your project
Deleting the master branch that was hosting your website files. Or you could delete the whole repository.