Command

git fsck

Inspect object connectivity and report objects unreachable from selected roots; verify candidate contents before anchoring.

Formal Syntax & Structure

git syntaxgit
git fsck --no-reflogs --unreachable
Git Reference