首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >推送到GitHub时出“insufficient permission for adding an object to repository database"怎么办?

推送到GitHub时出“insufficient permission for adding an object to repository database"怎么办?
EN

Stack Overflow用户
提问于 2018-03-24 06:48:58
回答 2查看 0关注 0票数 0

在尝试对我的GitHub存储库执行“git push”时,出现一个错误:

代码语言:javascript
复制
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'
EN

Stack Overflow用户

发布于 2018-03-24 15:13:15

当你看到github以外的这个错误时,解决方案:

下这个:http://mapopa.blogspot.com/2009/10/git-insufficient-permission-for-adding.html

然后

代码语言:javascript
复制
ssh me@myserver
cd repository/.git

sudo chmod -R g+ws *
sudo chgrp -R mygroup *

git config core.sharedRepository true
票数 0
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/-100007767

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档