Power loss mid-commit. `git status` now errors: 'object file is empty'. Your local clone has corrupted objects.
fsck identifies corruption. Re-fetch missing objects from origin to repair.
Expert · 3 steps · +900 XP
This scenario walks through 3 steps, in order:
Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.
git fsck --fullgit fetch --allgit fsck --fullfsck → identify → re-fetch (or worst-case, re-clone). Always have a remote.