5. git merge, step 2


#1

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?
add
$ 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
#2

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.


#3

um do $cd my-quizzes
no $git


#4

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


#5

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.


#6

Mr. Winkler,

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


#7

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


#8

do

$ 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


#9

haye guys this is not working for me


#10

thank you , nice :smile:


#11

my problem is step 3


#13

Perfecto! thank you very much!


#14

you are my savior! i love you #20charikturs


#15

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


#16

enter cd in stead of the "ls"


#17

thanks! you andrewwinkler!


#18

dude you rule this really works thx!


#19

Same here thank you man :slight_smile:


#20

it works thanks , i was stuck there as well


#21

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