insufficient permission for adding an object to repository database .git / objects

Fixing error error: insufficient permission for adding an object to repository database .git / objects.

The error occurs after the command git pull

remote: Enumerating objects: 60, done.
remote: Counting objects: 100% (60/60), done.
remote: Compressing objects: 100% (7/7), done.
error: insufficient permission for adding an object to repository database .git / objects
fatal: failed to write object
fatal: unpack-objects failed

We go to the directory to which the swearing:

Next, we look at the rights:

We see that instead of the user ploshadka rights have been established for something root:

We rule the rights to the ones we need (our user):

sudo chown -R ploshadka: ploshadka *

Similar Posts

Leave a Reply