Git reset hard error: ambiguous argument HEAD

2.4k Views Asked by At

I need to reset my HEAD to where it was before the most recent pull.

I believe what I need to do is: git reset --hard HEAD@{1}

But here is what git tells me.

fatal: ambiguous argument 'HEAD@1': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
1

There are 1 best solutions below

1
On

Fish was stripping { and }

Bash works fine.