ProjectStack
git

fatal: loose object is corrupt

A Git object file on disk is corrupt — its content doesn't match its stored hash. This is usually caused by a filesystem issue, interrupted write, or disk error.

Common causes

  • Power loss or system crash during a Git operation
  • Disk errors or bad sectors on the drive
  • Filesystem issues caused by force-quit or hard reboot
  • Network filesystem (NFS) or cloud sync (Dropbox, iCloud) corrupting the .git folder

How to fix it

  1. Run a full integrity check: git fsck --full
  2. Try to recover using the reflog: git reflog show
  3. If you have a remote backup, re-clone: git clone <url> (keep local changes aside first)
  4. Remove the corrupt object and let Git re-fetch it: git fetch --all (if remote is intact)

Example

fatal: loose object 1a2b3c4d (stored in .git/objects/1a/2b3c4d...) is corrupt

Running any Git command after a system crash or disk issue

Have a different error?

Paste any error message into the Error Translator to get an instant explanation.