Where do git repositories go when they die?
My RDB repository started giving me this error;
fatal: Not a git repository (or any of the parent directories): .git
I don’t think that I did anything to it, but it is still dead.
Any ideas how to recover this?
Update: Found why Git doesn't like my repository, it doesn't have .git\objects, but I have no idea where it could have gone to… or why.
Comments
It's strange. My .git subdirectories aren't hidden. Maybe that's the cause?
No the newer versions of msysgit hide the .git directory like it is on unix.
Sorry ayende, no idea what happen. Did you try git fsck?
The contents of the .git directory would be more interesting ;-) IIRC, git looks for HEAD existing inside .git, so maybe that's gone for some reason?
Looks like a file system issue
Install Mercurial. That is not a flame btw, it's from experience. Git nearly murdered me twice with similar problems. It lacks any form of "engineering", relying on luck instead. SourceSafe was more reliable.
Try going with the "Previous Versions" version of Windows to restore a version that worked. Should be turned on for the C drive automatically...
Comment preview