E
E
Epic_failure2017-04-24 14:24:27
git
Epic_failure, 2017-04-24 14:24:27

How to use github (interested in github/pages) as hosting?

Friends!
A huge problem with how to correctly create username/github.io/pages.
Is there a more detailed and step-by-step instruction on how to put your site on github, as well as how to put several sites (pages?)
Unfortunately, various https://pages.github.com/ did not help(
You need to create a username/github.io/pages1 , username/github.io/pages2 etc.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vlad Feninets, 2017-04-24
@fnnzzz

create a new branch " gh-pages " and commit/push statics/website (html, css, js, assets) there.
you can generate a template for yourself in Settings/GitHub Pages
and open it at
https://your-user-name.github.io/repo-name

E
Epic_failure, 2017-07-07
@Epic_failure

as a result, the solution turned out to be simple)
go to the repository we need, then to the settings of this repository ( Settings), after which in the Options tab we find GitHub Pages.
In Source select Master Branch and click Save. We wait for some time, we update and we have a line in Source, highlighted in green, with the phrase "Your site is published at and then your io".
Only, as practice has shown, index.html should lie outside the folders, otherwise the github does not see it (
I don’t know how correct this option is, but it’s simple for sure.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question