Can I create more than one repository for github pages?

Akshat Jiwan Sharma picture Akshat Jiwan Sharma · Mar 22, 2013 · Viewed 72.4k times · Source

I created a repository for hosting a blog on github.Is there any way that I can create more to host multiple blogs?Am I limited to just one repository for hosting(since username.github.com can only be used once?)

Answer

Stephen Jennings picture Stephen Jennings · Mar 22, 2013

You can have one site published to https://<username>.github.io by publishing to the master branch of a repository named “username.github.io” (substituting your actual username).

You can also have an additional site per GitHub project published to https://<username>.github.io/<project>. Project sites will publish whatever you push to the "gh-pages" branch by default, but you can change the publishing source in the repository settings.

A better description is available in the GitHub Pages documentation, including options for using custom domain names.

(since April 2013, all username.github.com are now username.github.io)