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!

Step 1:

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.

Screenshot1

Step 2:

Go to the “Your repositories” section.

Screenshot2

Step 3:

Click on the “New” button for creating a new repository.

Screenshot3

Step 4:

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:

https://[username].github.io

Check the README box and click on the “Create Repository” button.

Screenshot4

Step 5:

Now here you have 2 options: Upload files or Create new file.

Step 5.1:

If you already have your website created on your computer, upload all the files and “Commit changes”.

Screenshot5

Screenshot6

Step 5.2:

If you’re just starting to create your website, click on Create new file.

Screenshot7

Let’s say for example we’ll create a page named “index.html” and then “Commit new file”.

Screenshot8

Screenshot9

Step 6:

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:

username.github.io

and press Enter.

Screenshot10

Screenshot11


And voila, your website is live and running!!

It’s also secure (https)!

You can add CSS, Javascript and other HTML files to your repository and commit changes. Your website will be automatically updated!