On Sat, 4 Oct 2008, Jonas Schneider wrote: > Shawn O. Pearce schrieb: > > git read-tree --reset HEAD > Sadly, this doesnt help. I still get the same error. > But, if I remove the corrupt index file, I get this: > > fatal: just how do you expect me to merge 0 trees? Sounds like you didn't recreate the whole .git directory - not only was your index file corrupt, but apparently your .git/HEAD file is too. The index is just a cache (apart from when you stage things into it and/or do merges), and the git read-tree should have recreated it for you. The fact that it doesn't work implies that HEAD is corrupt or missing too. Does "git branch" work for you? And what does .git/HEAD contain (normally it would just contain a single line saying "ref: refs/heads/master", but it obviously depends on which branch you were on, and it could just be a detached head that just points directly to a SHA1). Linus -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html