Answer the question
In order to leave comments, you need to log in
How to create multiple hosting repositories?
Good afternoon. The question is:
Is there hosting on github ( username/username.github.io/project/index.html ). Is it possible to host a completely different project with a different repository on the site? I tried to create a second repository, and as you know, for hosting you need to register username.gihub.io, but it gives an error, because I already have such a repository and github does not allow me to create a second one with the same name.
Is it possible to put the site on a hosting with a different repository or do I have to cram everything into one?
Answer the question
In order to leave comments, you need to log in
Create a "gh-pages" branch in each of your repositories. Its contents will be hosted at https://username.github.io/repository-name/ , regardless of the contents of the repository called "username.github.io".
Thus, you can have a personal business card site in the repository called "username.github.io", and the projects themselves will live on their own in separate repositories.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question