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错误

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐