Git Recovery and Reflog/Check repository integrity

Validate objects and refs.

Section: Dangling Objects and Inspection

Check repository integrity

bash
bash
git fsck --full

Learn 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
List dangling objects
Find unreferenced commits, trees, and blobs.
OpenIn sheetbashsame section
Inspect dangling commit
Review commit content before recovery.
OpenIn sheetbashsame section
Inspect dangling blob
Print blob content if a file was lost.
OpenIn sheetbashsame section
Find dropped stash commits
Locate dangling stash-like commits after accidental drop.
OpenIn sheetbash1 tag match
Show reflog with dates
Display ref movements with timestamps.
Recover after hard reset
Restore previous HEAD after disruptive operation when ORIG_HEAD is available.