What is happening
Git verifies object hashes and reachability through refs and reflogs. Official guidance notes that corrupt objects must be sourced from backups or another repository, while dangling objects and reflogs may retain lost commits if pruning has not removed them.