Search code examples
githubrepositorygithub-pages

Can I create more than one repository for GitHub Pages?


I created a repository for hosting a blog on GitHub.

Is there any way that I can create additional repositories to host multiple blogs, or am I limited to just one since username.github.io can only be used once?


Solution

  • 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 settings let you choose which branch and directory to publish.

    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)