git 服务器同步代码错误 error: insufficient permission for adding an object to repository database .git/objects

时间:2020-07-18 22:35:47   收藏:0   阅读:88
 * branch            master     -> FETCH_HEAD
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed

git目录无写权限

我的解决方法,直接在xshell上面cd到自己的项目代码,然后  ll -a 找到 .git 目录,给满权限 chmod -R 777 .git 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!