執行以下指令即可

# delete empty objects
$ find .git/objects/ -type f -empty | xargs rm

# fetch missing objects
$ git fetch -p

# do a full store object check
$ git fsck --full