Validate objects and refs.
Section: Dangling Objects and Inspection
Check repository integrity
bash
bash
git fsck --fullLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Dangling Objects and Inspection
Find dropped stash commits
Locate dangling stash-like commits after accidental drop.
Recover after hard reset
Restore previous HEAD after disruptive operation when ORIG_HEAD is available.