您好,我不知道为什么我在推送Git时遇到此错误。我已经承诺并拉了它。谢谢你
Counting objects: 55, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (31/31), done.
Writing objects: 100% (31/31), 3.31 KiB, done.
Total 31 (delta 25), reused 0 (delta 0)
error: insufficient permission for adding an object to repository database ./objects
fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To x@10.11.16.52:/opt/git/web-client.git
! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'x@10.11.16.52:/opt/git/web-client.git'
答案 0 :(得分:1)
似乎在远程存储库(您正在推送的存储库)中,您的用户没有足够的权限来创建新文件。
BTW,如果您使用的是多个用户共享的远程存储库(通常使用 git init --shared --bare 创建),我建议您执行以下操作: