How to diagnose and fix git fatal: unable to read tree

Following my older recommendation, it boils down to being able to find a repo which actually contains the missing elements (here full trees).
This is what is shown in “How to fix corrupted git repository?“.

But if a full clone doesn’t solve the problem, then it may be:


Update July 2016, with Git 2.10 soon to be release, you now have:

git fsck --name-objects

See “How to fix git error broken link from tree to tree?” for more.

Leave a Comment