Backtracking not working?

I’ve used the command

git reset HEAD 955e2d0
git checkout HEAD road-not-taken.txt oven-birds.txt fire-and-ice.txt

but I get no result back and the text files do not revert to the previous status. What did I do/didn’t do? I thought I was following directions.

No response is how many commands indicate success. Perhaps those files were already identical to what they were at HEAD, or perhaps you actually meant to reset to another commit.

Your first command doesn’t have any effect on your files, only on your staging area. Git will also ignore the second commit that you specified, you can only reset to one commit, and you specified two.

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