Skip to content

Instantly share code, notes, and snippets.

@chongshenng
Forked from pce1991/GitRecovery
Created March 17, 2023 14:08
Show Gist options
  • Select an option

  • Save chongshenng/39047e52389ecfc608fd963d3eee4868 to your computer and use it in GitHub Desktop.

Select an option

Save chongshenng/39047e52389ecfc608fd963d3eee4868 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