git fsck --full

Category: Git - Core

git fsck --full

Check the entire object database

Verifies every object's integrity, connectivity, and format, reporting dangling or corrupt objects. The --full flag scans all packs and loose objects. Run it after crashes or disk issues to assess repository health.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.