markdown git空对象/腐败修复

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown git空对象/腐败修复相关的知识,希望对你有一定的参考价值。

If anyone else gets the same git corrupt / 'empty object' errors I've been getting I think I've found a fix (but there's still a chance you might lose any work that hasn't already been committed and pushed to codebase).

Take a full backup of your zatpark folder via terminal (probably need to do this on root user):
cp -a /home/zatpark /home/zatpark-old

Find & delete all the corrupt/empty objects in git: 
find .git/objects/ -type f -empty | xargs rm

fetch the missing objects and run a check:
git fetch -p
git fsck --full

以上是关于markdown git空对象/腐败修复的主要内容,如果未能解决你的问题,请参考以下文章

markdown 使用Git推送修复“Permission denied(publickey)”错误

markdown 使用Git推送修复“Permission denied(publickey)”错误

如何修复 [对象:空原型] 标题:'产品'

如何修复 Android Studio / SQLite 中的“空对象引用”错误? [复制]

修复 PHP 空函数

PDF文件损坏,将内存流移动到文件流时无法修复