I have some troubles with git checkout


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are asking about.>
Git – backtracking – git checkout

<Below this line, describe in what way does your code behave incorrectly? Include ALL error messages.>
I changed the content of the file “scene-5.txt” ,then I see the difference by “git diff”, at the third step I tried the command git checkout HEAD scene-5.txt , but nothing in the original file was changed after the command, the instruction of the exercise says Notice that the changes you made to the ghost's line have been discarded. . Hence this makes me think how the change is discarded as the original file remains the same( contains the change I put)
<Below this line, add a screenshot of your whole web browser so that we can see what you see.>


#3

did you commit the changes in scence-5 file?


#4

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