Help!


#1

What am i doing wrong
https://www.codecademy.com/courses/deploy-a-website/lessons/github-pages/exercises/add-remote


#2

Post everything you write in that exercise, and post the instructions, post the error messages, everything


#3

$cd
git remote add init https://github.com/your-user-name/your-user-name.github.io.git
git init https://github.com/DanAllie/danAllie.github.io.git


#4

Instructions, error messages?


#5

In the terminal, add the remote that points to the repository you created earlier. Use the example above to help you.

Important: If you accidentally make a mistake when adding the remote URL, you can start over and remove the remote with the following command:

git remote rm origin
doesnt add


#6

You have either posted the wrong url or read the instructions wrong:

It doesn’t tell you to “init” your side, it just tells you to define a variable for the whole long url to your Jekyll site so it will be easier to use it in the future, like if you should use the url, you can just write ‘originall’ instead of the whole long url. So:

You should not type ‘cd’ in the top of the session (Please reply why you did it :grinning: )
Then you wrote 'git remote add init https://github.com/your-user-name/your-user-name.github.io.git
The instructions told you to write original instead of init.
The last line shouldn’t be there (Reply why it is there, too)


#7

And a third thing:
In “https://github.com/your-user-name/your-user-name.github.io.git
‘your-user-name’ means that you should replace it by your own user name :slightly_smiling_face:


#8

I did do that but I also did the instructions and it would always give me this error
fatal: Not a git repository (or any of the parent directories): .git


#9

OK. Post a screenshot of the entire screen when you’re in the exercise


#10


#11

As I said before, you are adding a variable, “origin”, for the Jekyll site url.
You just forgot to write the url in the end of the command, like this:
git remote add origin https://github.com/replace-this-with-your-username/replace-this-with-your-username.github.io


#12

git remote add origin https://github.com/DanAllie/danallie.github.io.git
git push -u origin master
is this correct


#13

The last line should not be there. It is a part of one of the next steps in the deploy, but not this. Only the first line should be there :grinning:


#14


#15

In the second attempt you wrote
git remote add origin https://github.com/DanAllie/danallie.github.io .git

The highlighted part should not be there :slight_smile:


#16

I mean, the bold part, not the light-blue part :smile:

So the url will be like this: git remote add origin https://github.com/DanAllie/danallie.github.io


#17


#18

Do you have a git repository which is called that?


#19

When I click the link, I get a GitHub page saying that the repository is empty


#20

I dont know, ill check in the code for it