I had changes in a few files and some new files
git pull
: said I had conflicts in a few files
I did :
git stash
git pull
git stash pop
I expected conflicts but there were none.
Instead many files are now just empty. current uncommitted changes show everything deleted from these files.
Solution I see is: clone the repository. "somehow recover" my last popped stash and save it as a patch and apply there.
How do I recover this (it is not in the stash list anymore)
I don't see the last stash using :
gitk --all $( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )
and
git fsck --no-reflog | awk '/dangling commit/ {print $3}'
gives :
error: object file .git/objects/02/7745a5151a6237eb1dcd8e4f0df10328809669 is empty
error: object file .git/objects/02/7745a5151a6237eb1dcd8e4f0df10328809669 is empty
fatal: loose object 027745a5151a6237eb1dcd8e4f0df10328809669 (stored in .git/objects/02/7745a5151a6237eb1dcd8e4f0df10328809669) is corrupt
What do I do? What happened?