How to Host a Static Website for free in GitHub?

How to Host a Static Website for free in GitHub?

Subscribe to my newsletter and never miss my upcoming articles

In 2008, GitHub Introduced the feature called GitHub Pages to Host the static webpage in GitHub.

Requirements to Host your website:

  1. A Static Website of Single Webpage.
  2. GitHub Account to Create Repository.

Let us create the GitHub account first:

(If you have already, no need to create new).

Step 1: Create an account if you don't have one.

1.png

Step 2: If you have an account already, then log in.

3.png

Step 3: Create a New Repository to Host your website.

4.png

Step 4: To Create new repository:

  1. Give any Repository name.
  2. Check the Add a Readme file.
  3. Click the Create repository button.

5.png

Step 5: To add files into the repository:

  1. Click Add file.
  2. Click Upload files.

6.png

Step 6: Drag all files from the local folder, where you create a website.

7.png

Step 7: Please see the below images to finish the hosting.

8.png

Step 8: Click the Check it out here!.

9.png

Step 9: Follow the instructions.

10.png

11.png

Step 11: Congratulations, you did it! Website running successfully.

12.png

  • If any problems or issues, please feel free to write a comment.

Best Wishes by Vignesh

 
Share this