DEPLOY YOUR WEBSITE TO GITHUB PAGES (Add the Remote)


#1

Hi all,

Can you please help with this one?

I’m on Add the Remote part of the Deploy your website to GITHUB pages.

Instruction 1.
In the terminal, add the remote that points to the repository you created earlier. I enter
git remote add origin https://github.com/AJBosc0/AJBosco0.github.io.git

And get the following:

$ git remote add origin https://github.com/AJBosc0/AJBosco0.github.io.git
fatal: remote origin already exists.
$

Can you please tell me what I need to do next to move on from here?


#2

From what the error says: “remote origin already exists”, it seems you are ready to move on to the next step, which might be pushing to origin master.


#3

Thanks for your answer.

I have tried pushing the origin master and now get the following:

$ git push origin master

error: src refspec master does not match any.
error: failed to push some refs to ‘https://github.com/AJBosc0/AJBosco0.g
ithub.io.git’

Would you know how to resolve this issue?


#4

Oh, the middle step. You need to make changes and do a git commit first.


#5

and git add before you commit


#6

This topic was automatically closed after 7 days. New replies are no longer allowed.