4.Add the Remote PLEASE HELP!


#1

Exercise 4/7. My code is not working.
https://www.codecademy.com/courses/deploy-a-website/lessons/github-pages/exercises/add-remote?action=lesson_resume

here's my code:
$git init
$git remote add origin http://github.com/theRhyme/Daisy

I don't know what's wrong with my code. It's not even displaying any type of error. The instructions card doesn't update to the next exercise.


#2

Did the course have you create a repository earlier? If so, you should probably add the remote there


#3

Got the same problem, cant make this thing run.


#4

please ellaborate i'm still not getting it.
And I have already created a repository.
Thanks!


#5

In your screenshot you create a repository. Had you not created one earlier in the course? If so, why are you creating another one in your screenshot instead of using the one the course asked you to create?


#6

That doesn't add any information that I can reply to though. You'd have to describe what you're trying to do and what's stopping you, or ask for what information you're missing.


#7

I have the same problem. I think it should be system error. It won't let me pass the task.


#8

I passed. You should use "jekyll new folder" then inside that folder git init and git remote add origin https://github.com/your-user-name/your-user-name.github.io.git


#9

it's still not working for me.


#10

i think now i'm using the same repository the course wanted me to create. still not working. :confused:


#11

You probably created some commits in that repository, so printing out the commits log would tell you whether you're in the right one. You will need to keep track of what you've done, there's no getting around that
In your last screenshot you're creating a new repository, so to me it still looks like you're in a different one.

Ask yourself where it is and what information you need to get there. You're navigating a file tree, no different from what you might normally do with graphical file navigators. If you put something in one place, don't expect it to be somewhere else. If you created something earlier, don't expect creating another to result in somehow ending up in the one you created previously somewhere else.

If you created a repository earlier, then getting back into it isn't going to involve creating another repository. (And you don't need me to figure that out) So you should rule that out entirely. How does one find something in a file system? How about search tools? What are you looking for? How about a .git directory, or some file that jekyll creates.


#12

So all you really need to do here is to decide to look for the repository you created earlier.
You're expected to recall that you created a repository and that you are supposed to deal with that repository.
Consider what tools you have available that allow you to search in your home directory.
cd allows you to move, and ls allows you to see. That's the basic tools for searching. They're very manual, yes. But considering the size of your home directory, they're also entirely sufficient.

Same as when programming, you need to decide what you're doing before you do anything at all.


#13

thank you so much :slight_smile: it worked


#14

Can I ask how you got through this step, I tried to do everything what ionatan said in the earlier commit but still didn't get it to work, what do I do?


#15

hey!
this worked for me.


#16

Hi everybody,

I'm very confused, i've tried everything but I don't really understand why it does'nt work.
Can you help me please? It will be very kind
here you can find a screenshot of my work


#17

I started again the exercise 3 and 4 but I'm still encounter problems...


#18

I HAVE SUCCEEDED !!!! :sunny:


#19

Pls take a screenshot so I can compare with what i have


#20

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