Counting objects: 3, done.
Writing objects: 100% (3/3), 203 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 121.42.140.121:prs.git
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to '[email protected]:prs.git'
这是因为权限问题,是不是用root账户创建的仓库,然后没有把仓库权限分给git用户
git库权限的问题
$ ls -la,查看git库的所有者
博客中所涉及到的图片都有版权,请谨慎使用