I can't go on after using diff command


#1

Hi, after using the git diff comand, I can't go on. I press letter q but nothing occurs.

IMPORTANT: press q on your keyboard to exit diff mode.

Thanks


#2

Press letter q is useless.

Just continue to type git diff scence-1.txt on the right part, the command line.


#3

How do you do part 3 of this git diff


#4

I think I misunderstand this topic before, so just follow me~

In fist step, you need to copy the words

Dumblediff: I should've known you would be here, Professor McGonagit.

into the staging area. Just copy and paste , then you finish the fist step!

Second step just type git diff in the terminal then you will see

Changes to the file are marked with a + and are indicated in green.

the changes meanis the words Dumblediff: I should've known you would be here, Professor McGonagit.

but why do this step?

Because we can see the words Harry Programmer and the Sorcerer’s Code: Scene 1 has been wrote in to the file which names scence-1.txt (in the terminal the color is white) BUT the words we just add is not , so it has a green + sign (in the terminal the color is green)

Then you must press q to exit the diff mode then you will back to the terminal.

In the third step, also the final step in this exercise we want to add the words

Dumblediff: I should've known you would be here, Professor McGonagit.

so just type git add scence-1.txt

Then you will pass the exercise

YEAH~~

Try again Best wishes~


#5

I want a help about lesson Git 6/9?


#6

log out and then log back in


#7

what kind of help ? what problem you are facing @zhangsuyan