I was going through a rebase, and accidentally deleted one of my files.
When I try to get it back via git checkout
it tells me
error: path 'foo' is unmerged
When I try to get it back via git reset foo
, I get the following error:
fatal: ambiguous argument 'foo': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
How can I get my file back?