Git · Senior · Question 55 of 76
How can you check that a repository's objects are not corrupted?
- 1
git log --check - ✓Correct answer:
git fsck - 3
git status --verify
Explanation
fsck verifies connectivity and object integrity, and lists dangling objects (unreachable commits or blobs), which can also help recover lost work.