Skip to content

Instantly share code, notes, and snippets.

@stefangweichinger
Forked from pce1991/GitRecovery
Created May 31, 2023 18:53
Show Gist options
  • Save stefangweichinger/4a7ee3e51f142e60a42f9a20dcb1c5ee to your computer and use it in GitHub Desktop.
Save stefangweichinger/4a7ee3e51f142e60a42f9a20dcb1c5ee to your computer and use it in GitHub Desktop.
Repair git says object files are empty/corrupted
find .git/objects/ -type f -empty | xargs rm
git fetch -p
git fsck --full
http://stackoverflow.com/questions/11706215/how-to-fix-git-error-object-file-is-empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment