How to host a static website on Github

What is Github?

GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.

This tutorial teaches you GitHub essentials like repositoriesbranchescommits, and Pull Requests. You’ll create your own Hello World repository and learn GitHub’s Pull Request workflow, a popular way to create and review code.

In this article I will be showing how to create a static website on Github. You can use this website as your Resume Website or just blogging website with full customizations using Javascript and PhP.

1.Create A Github Account:

If You have an account already then don’t worry about it.

  1. Create A repository:-

First of all Go to the homepage of Github and click on create new repository.Capture

Now let’s finish creating repository and move to the next step.

 

Capture2

As we can see our repository has been created.

Now go to settings section.

Go to the Github Pages section and select the source as master branch from the drop-down.Capture3 A you can see in the image website is live on https://vedprakash11.github.io/Geekycodes/

Capture4

congratulations your first github page is live…

If you are good at HTML and CSS you can create your own HTML Pages and Publish it. Otherwise I recommend you to download free HTML Website Templates from free-CSS . Website provides a good amount of creative HTML templates. And you can upload it in your repository.

I am uploading this template and after uploading it you can see the template is live on https://vedprakash11.github.io/Geekycodes/

 

 

Leave a Reply

%d bloggers like this: