在尝试对我的GitHub存储库执行“git push”时,出现一个错误:
Counting objects: 8, done.
Delta compression using 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 1.37 KiB, done.
Total 5 (delta 2), reused 0 (delta 0)
error: insufficient permission for adding an object to repository database ./objects
fatal: failed to write object
error: unpack-objects exited with error code 128
error: unpack failed: unpack-objects abnormal exit
To git@github.com:bixo/bixo.git
! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'git@github.com:bixo/bixo.git'
发布于 2018-03-24 16:23:03
通常这个问题是由于你的Git服务器文件系统上的用户和组权限错误造成的。git仓库必须由用户以及他的团队拥有。
比如你的用户被称为“git”,他的组“gitgroup”和Git仓库的位置是:git@mygitserverxyz.com:path/to/repo.git
然后:
sudo chown -R git:gitgroup path / to / repo.git /
修正了git权限不足的错误。
https://stackoverflow.com/questions/-100007767
复制相似问题