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
I followed the instructions form the following webpage:

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

leonardoragazini@Leonardos-MacBook-Pro pro2 % cd

echo “Hello World” > index.html

leonardoragazini@Leonardos-MacBook-Pro % 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/ · GitHub

leonardoragazini@Leonardos-MacBook-Pro %

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


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!


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