参照:
http://stackoverflow.com/questions/1918524/error-pushing-to-github-insufficient-permission-for-adding-an-object-to-reposi
原因:
用ssh 管理时,客户端机器对服务器git代码仓库的写权限出了问题。如参考文
//登录到git 服务器ssh [email protected] //进入代码仓库cd repository.git //改变代码仓库下,所有文件的访问权限,同组可写sudo chmod -R g+ws *
//改变代码仓库下,所有文件的访问属性
sudo chgrp -R mygroup * //更新配置git repo-config core.sharedRepository true
原文地址:https://www.cnblogs.com/zoulixiang/p/9542688.html
时间: 2024-07-30 14:27:32