Error while pull from git - insufficient permission for adding an object to repository database .git/objects

前端 未结 5 701
臣服心动
臣服心动 2021-01-29 21:12

I have git error: \"insufficient permission for adding an object to repository database .git/objects\" every time I make \"git pull origin develop\".

    remote:         


        
5条回答
  •  天涯浪人
    2021-01-29 22:07

    Mine was a stupid mistake... the right username and group were set, but www-data was the account accessing it. The directory was owned by vaindil:www-data, but permissions were 755 so www-data couldn't write to it. Fixed it with:

    $ sudo chmod -R 775 /path/to/repo
    

提交回复
热议问题