Help me with exercise 3 in Backtrack


#1

According to instruction 1, I changed the ghost's words.
Everything was going well.
In step 3, according to instruction 3, I should "Use the new Git command to restore the file in your working directory to look as it did when you last made a commit."
But after I put in "git checkout HEAD scene-5.txt", there was nothing changed and there was no error message. I passed exercise 3.
I was confused. I should have seen that the changes I made to the ghost's line have been discarded.
What's the problem? Please help me.


#2

Do you still see "balloons" instead of "flames" in the text editor?


#3

I’m having the same issue as the op. Yes i still see ‘Balloons’ instead of ‘flames’. SHouldn’t the checkout command return me the version before i made the changes?


#6

For anyone else having this problem all you need to do is close the file in file editor and re-open it (after you use the git checkout command, do not run, as git will see this as a new modification)


#7

Yes, same problem . the word “ballons” did not change


#8

did you check your codes very well cause mine changed as well


#9

#10

This topic is really old, as such, its now closed. If you still have questions, make a new topic. You will likely get better help faster when creating new topics