How to Create your first website on GitHub Pages

How to Create your first website on GitHub Pages

Bawantha Rathnayaka's photo
Bawantha Rathnayaka
·May 2, 2019·

1 min read

Play this article

What is Github page

GitHub Pages are public web pages for users, organizations, and repositories, that are freely hosted on GitHub’s domain

  1. First you log into your Github account

Once you’ve signed in, you’ll create a new repository to get started and you need to give this repository a special name to generate your website.

Now open your git bash terminal.

Next go to the folder where you want to store your project, and clone the new repository this command

git clone github.comusername/

Now create the index.html file in folder use this command


echo “Hello World” > index.html

And Push it

git add — all

git commit -m “Initial commit”

git push -u origin master

Now go to the your repo settings tab and scroll down you’ll see the GitHub Pages section near the bottom and select the master brance and save it

Now your Done!

Fire up a browser and go to

Share this