5. git merge, step 2


This is the error I get when I type in git fetch origin !!! HELP

$ git cd my-quizzes
git: 'cd' is not a git command. See 'git --help'.

Did you mean this?
$ git fetch origin
fatal: Not a git repository (or any of the parent directories): .git

5.git merge pt.2 merge origin/master
5.git merge pt.2 merge origin/master

Hey Landen. It sounds like you may have corrupted the directories/branches while you were trying to figure it out. I was struggling with this one too, but I solved it. Here are my steps:

Reset the console & directories:
1. Click on the "Get Help" button in the bottom right hand corner.
2. Click on the "I want to restart this exercise" in the drop-up menu.

Enter the following commands to the terminal:

  1. $ cd my-quizzes
  2. $ git fetch origin
  3. $ git merge origin/master
  4. $ git log

Why this works:
"$ git fetch" - Downloads object(s) and ref(s) from another repository. Apparently the origin/master is not part of your local copy, so you have to download it with "$ git fetch" before you can merge.


um do $cd my-quizzes
no $git


It works perfectly... Thank you...:innocent:


When i enter git fetch orgin, it says
fatal: 'orgin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


Mr. Winkler,

This worked perfectly--how did you know to do that?


facts are that you did not switch directories since

$ git cd

will not do anything because it is not a git command.

use the regular command which is just

$ cd my-quizzes

this is by the way clearly indicated by the error message, that is telling you, that the directory you're in is not a git repo



$ pwd

and check if you're really in the directory that you want to be in.
The error message that you get, is indicating that you're not in a directory that is a git repo


haye guys this is not working for me


thank you , nice :smile:


my problem is step 3


Perfecto! thank you very much!


you are my savior! i love you #20charikturs


bash: cd: my-quizzes: No such file or directory


enter cd in stead of the "ls"


thanks! you andrewwinkler!


dude you rule this really works thx!


Same here thank you man :slight_smile:


it works thanks , i was stuck there as well


I have done this exact thing like 10 times and it never works. cant get past step 2