If you push code to a git repo, you might get this error :
remote: error: insufficient permission for adding an object to repository database objects
remote: fatal: failed to write object
Make sure that the system permissions are set properly. Stackoverflow provides some good troubleshooting steps.
The commands below solve the issue :
chgrp -R groupname .
chmod -R g+rwX .
git config core.sharedRepository true
For groupname, make sure it matches the user account details that you use for logging in and pushing code to the git server.