I tried to run the following command:
git checkout HEAD^
and I got the output
More? (I press Enter)
More? (I press Enter)
error: pathspec 'HEAD
' did not match any file(s) known to git.
What does this mean? If I run this command instead:
git checkout HEAD~
the checkout succeeds with no issues.
I did confirm that HEAD currently only has one parent.
Edit: I forgot to specify that I was running this in Command Prompt. This was, in fact, the issue since ^
is the escape character in Command Prompt.