• Share on Tumblr
  • Sharebar

UPDATE: Below article is no more applicable visit GitHub pages (https://help.github.com/categories/20/articles) 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 yourusername.github.com.

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

mkdir hussainanjar.github.com
cd hussainanjar.github.com/
git init
git remote add origin [email protected]:hussainanjar/hussainanjar.github.com.git
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.

Tagged with:

2 Responses to Setting up a GitHub subdomain

  1. [...] Github 서브 도메인 셋팅하기 (username.github.com) [...]

  2. Richard Bucker says:

    this is out of date now.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>