Verify the validity and connectivity of nodes in a Git repository index. Does not make any modifications. See git gc for cleaning up dangling blobs. More information: https://git-scm.com/docs/git-fsck.
git gc
git fsck
git fsck --tags
git fsck --root