I have git error: \"insufficient permission for adding an object to repository database\" every time I make \"git push origin master\".
I tried solution described here:
As mentioned in "Error pushing to GitHub - insufficient permission for adding an object to repository database", you need, in addition of the git config setting, to:
umask for all your repos: umask 002 (so on your server side)rw as mentioned in your solution, still on the server side.That usually happens when someone commited to git while booing root. The .git/* files created in that process are protected from external change.
chmod -R 777 .git
is a fast fix.