I executed rm -rf
on my working directory and even I interrupted the command immediately execution, I've lost several repositories that were not pushed to the remote (yet). One particular important repository that didn't have the latest commits(two months of work) seems to be partially damaged. Any idea if is it possible to save(partially)/repair it and how? The repository seems to occupy several MBs so there is still data in there.
git fsck
reports about 1064 lines of errors such missing commit
, missing blob
, missing tree
, dangling blob
, broken link from tree <some sha> to tree <some sha>
, refs/heads/master: invalid reflog
, invalid sha1 pointer in cache-tree
.
git-repair says Not in a git repository.
git status
reports all the files deleted