Setting up a GitHub subdomain

UPDATE: Below article is no more applicable visit GitHub pages ( for more details

Setting up a GitHub subdomain to host your html website is very simple.

Start with creating a new repository on GitHub with the project name as

Once you have created the repository you need to set it up on your local machine and push a master branch with index.html file. Follow the below steps

git init
git remote add origin
vim index.html
git add index.html
git commit -m "Added index page"
git push -u origin master

Once you push your branch you will get following email from GitHub.

Your page has been built. If this is the first time you've pushed, it may take a few minutes to appear, otherwise your changes should appear immediately.

So as the email suggests just wait for few minutes and you will have your own html website hosted on GitHub subdomain.