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
- Run a full integrity check: git fsck --full
- Try to recover using the reflog: git reflog show
- If you have a remote backup, re-clone: git clone <url> (keep local changes aside first)
- 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 corruptRunning 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.
