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!
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Sunday, January 18, 2009
Subscribe to:
Posts (Atom)