I recently had a problem with a Git repository corrupting when I restored it from a backup to a FAT drive. Suddenly `git status` was printing "fatal: Not a git repository"! I managed to clone my repository from someone else but it was a big hassle.
A few days later I decided to poke around some more it see if I could fix the repository. It turns out that the problem was based on FAT being case insensitive. All I had to do was move GIT_ROOT/.git/head to GIT_ROOT/.git/HEAD, where GIT_ROOT is the root directory of the repository. Fixed!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment