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

前端 未结 5 703
臣服心动
臣服心动 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:04

    NOT A GOOD PRACTICE (Just an alternative)

    I am using Ubuntu and faced the same problem. To solve it, I simply switched user to root and I see no further error.

    $su
    password
    

    Then,

    $git pull origin master
    

    Recommended way: CHANGE THE PERMISSION OF THE DIRECTORY

提交回复
热议问题