Github

I’m trying to deploy a page on Github as Im over half way through my “Introduction to Github course”. Unfortunately, though, I cannot see my “hello world” msg when I check my username.github.io.
I followed the instructions form the following webpage:
https://pages.github.com/

In the terminal, after completing steps 3 and 4, this are the messages I receive:

leonardoragazini@Leonardos-MacBook-Pro pro2 % cd ragazini.github.io

echo “Hello World” > index.html

leonardoragazini@Leonardos-MacBook-Pro ragazini.github.io % git add --all

git commit -m “Initial commit”

git push -u origin main

[master (root-commit) f50b278] Initial commit

1 file changed, 1 insertion(+)

create mode 100644 index.html

error: src refspec main does not match any

error: failed to push some refs to ‘ragazini/ragazini.github.io · GitHub

leonardoragazini@Leonardos-MacBook-Pro ragazini.github.io %

Any thoughts? Im confused and find Github pretty daunting at this stage… any help would be much appreciated.

Thanks

Can we have a link to the repository?

1 Like

I somehow managed to run step 4 successfully this time and it worked. Now Im just trying to figure out how to make changes to it from the terminal. It will be a long day here hehe

thanks for your help, though!

2 Likes

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.