E
E
Evtera2020-03-11 20:39:20
git
Evtera, 2020-03-11 20:39:20

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

2 answer(s)
I
Ivan Bogachev, 2020-03-11
@Evtera

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.

I
Ivan Shumov, 2020-03-11
@inoise

You'll have to shove it into one or register another account

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question