Skip to content

Instantly share code, notes, and snippets.

@pce1991
Created April 29, 2017 18:19
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save pce1991/5bbba0dc7139db95963ce90eb0d2b5db to your computer and use it in GitHub Desktop.
Save pce1991/5bbba0dc7139db95963ce90eb0d2b5db 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