git push error:error: insufficient permission for adding an object to repository database ./object解决

时间:2022-10-28 23:38:13
在服务器代码库xxx.git文件夹中:
1.sudo chmod -R g+ws *
2.
sudo chgrp -R mygroup * //mygroup是该文件夹的所有组
3.
git repo-config core.sharedRepository true