Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thomaskanzig/e603fbe087af3f65309632a3b837f27e to your computer and use it in GitHub Desktop.
Save thomaskanzig/e603fbe087af3f65309632a3b837f27e to your computer and use it in GitHub Desktop.
Insufficient permission to add an object to the repository database .git/objects

Insufficient permission to add an object to the repository database .git/objects

If you did some git command with user root previously for some reason and now you don't have the permission with any other user, you can simplest do this.

From the root project:

cd .git/objects
ls -al
sudo chown -R yourname:yourgroup *

Try again with your desire user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment