Git Push Error: insufficient permission for adding an object to repository database When you try to push to a shared git remote, you get the following error: insufficient permission for adding an object to repository database After you have identified and fixed the underlying cause (see below), you’ll want to repair the permissions: cd /path/to/repo.git chgrp -R groupname . chmod -R g+rwX . find . -type d -exec chmod g+s '{}' + Underlying Causes The error could be caused by one of the following: The repository isn’t configured to be a shared repository (see core.sharedRepository in git help config ). If the output of: git config core.sharedRepository is not group or true or 1 or some mask, try running: git config core.sharedRepository group and then re-run the recursive chmod and chgrp (see “Repair Permissions” above). The operating system doesn’t interpret a setgid bit o...
Comments
Post a Comment