git pull的时候出现以下错误, 是由于.git/objects目录下文件和文件夹权限导致
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed
解决办法:修改.git/objects目录下文件和文件夹的用户和用户组
cd .git/objects/
sudo chown -R username:groupname *
如果不知道username 和 groupname,可以通过 ls -all 查看