GitHub: In very simple terms, GitHub is a website for hosting your source code. It is really cool and almost any repository on GitHub can be converted into a website.
Who doesn’t want a free hosting platform for their website? If you want a free hosting platform that is secure and reliable, GitHub is the best option. The only requirement: you should have some basic coding knowledge, really basic.
If you have your website ready or are planning to build one, and you have no idea how to host it, you’re at the right place. We are going to follow some very simple steps and get your website live under 5 minutes!
Visit GitHub.com and sign-up for a free account. Verify your email address and your account will be created. If you already have an account, ignore this step.
Go to the “Your repositories” section.
Click on the “New” button for creating a new repository.
Now, this is a critical step. While naming the repository, follow this convention:
[your GitHub username].github.io
The above convention tells GitHub to host the files in your repository automatically and display them when someone points their browser to:
Check the README box and click on the “Create Repository” button.
Now here you have 2 options: Upload files or Create new file.
If you already have your website created on your computer, upload all the files and “Commit changes”.
If you’re just starting to create your website, click on Create new file.
Let’s say for example we’ll create a page named “index.html” and then “Commit new file”.
We are done with the basic version of the website. The website gets automatically deployed after you “commit changes”. For checking out your website on the internet, just go your browser and type:
and press Enter.
And voila, your website is live and running!!
It’s also secure (https)!