Debian下安装git出现unpack failed: unpack-objects abnormal exit错误解决方案
·
Counting objects: 3, done.
Writing objects: 100% (3/3), 211 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: error: insufficient permission for adding an object to repository database objects
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To git@xxx.xxx.xxx.xxx:/srv/git/abc.git
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'git@xxx.xxx.xxx.xxx:/srv/git/abc.git'
原因:
git库权限的问题
$ ls -la,查看git库的所有者
解决:
在git库目录下:
$sudo chown -R git:git git库(mtk6573.git)
参考:git在push的时候出现insufficient permission for adding an object错误
更多推荐
已为社区贡献1条内容
所有评论(0)