I have a file in my repository which I accidentally resetted as git reset --hard
. The file is still in the repository, but as the change wasn't committed I cannot get to it.
I found some related questions:
- Recovering added file after doing git reset --hard HEAD^
- Accidentally reverted to master, lost uncommitted changes
However with these I just found only some old lost stuff, but not this recent one. Is there a way to kind of grep
the history just for this specific file?
EDIT: What could help is that I know content of the lost file. Maybe if I could grep
the dangling blobs/commits with this content?