Skip to content

Instantly share code, notes, and snippets.

@mauleyzaola
Forked from pce1991/GitRecovery
Created January 14, 2024 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mauleyzaola/8756f57916d2abf98df6268bc533a95f to your computer and use it in GitHub Desktop.
Save mauleyzaola/8756f57916d2abf98df6268bc533a95f 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