pydata

Keep Looking, Don't Settle

fix git error for blog

为了自动给blog备份,我把blog放在dropbox里面,这样主机和vmware上的ubuntu_dl机器可以同步,而且dropbox在线还有一份,这样不同意丢了。即使不小心删掉也会有online的备份。

可是一个问题是老是会出现git的error,比如

hhh@ubuntu:~/Dropbox/blog/output$ git commit -m "test"
error: object file .git/objects/d2/f4c036db03671b6d859b137e4ccdc06383fb14 is empty
error: object file .git/objects/d2/f4c036db03671b6d859b137e4ccdc06383fb14 is empty
fatal: loose object d2f4c036db03671b6d859b137e4ccdc06383fb14 (stored in .git/objects/d2/f4c036db03671b6d859b137e4ccdc06383fb14) is corrupt

hhh@ubuntu:~/Dropbox ...