git fsck command

The git fsck command is used to check the internal database for problems or inconsistencies.