R
R
rinatoptimus2016-11-17 10:54:33
GitHub
rinatoptimus, 2016-11-17 10:54:33

How to publish a site on Git Pages?

I wanted to upload a folder with a simple landing page to hosting, so I chose GitHub Pages.
I follow the instructions https://pages.github.com/
At step 3, when I enter:
echo "Hello World" > index.html
In the terminal, the output is:
-bash: !": event not found
Ok, I try another lesson: HTTP:/
/isizov.ru/github-kak-hosting-dlya-sajtov/ - already at step 2 I don't get the same page as the author's. github-as-hosting
I read other tutorials - everywhere the same procedure, which does not lead to a positive result
for me.Help a noob figure out how to upload to Gitpages?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey delphinpro, 2016-11-17
@rinatoptimus

On step 3 when I type:
echo "Hello World" > index.html

And humanly, in the editor (or IDE), creating files is no longer comme il faut?
Just create an index.html file. This is your main page. Then push it into a turnip.
What for? Why are there lessons? Everything you need is written on the page https://pages.github.com/ Already 4 steps!
1. Create a turnip with the name username.github.io
2. Clone the turnip to your computer
3. Create site pages
4. Push the turnip to github
, the site is ready athttp://username.github.io

L
Larisa, 2016-11-23
@loratokareva

  1. register on github, the result is https://username.github.io
    multiple repositories, multiple indexes
    Source: https://pages.github.com/
    Bottom line: https://username.github.io/namerepository/ - there is an index, then open it
    or https://username.github.io/ namerepository/filename.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question