I had a few bare git repositories on a Raspberry Pi's SD card. When I was copying the repos there was an error reading the pack files like repo.git/objects/pack/pack-123abc.pack. Interestingly, only the pack files of several repos are affected. The error is when accessing these files, the Raspberry Pi simply crashes. I assume these files are gone for good, unless somebody has an idea how I might recuperate them?
Anyway, I copied the repositories off the SD card without the pack files (without the whole pack/ folder in fact). Not surprisingly, there is an error when I try to clone the repository:
git clone git/repo.git/
Cloning into 'repo'...
done.
fatal: unable to read tree 541c6fc258f6bd724e4a1f3aad43f8c23dcdb644
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
Is there any chance that I'm still able to extract anything from these repositories?