Problem:
git add
orĀ git commit
error:
error: insufficient permission for adding an object to repository database .git/objects
error: insufficient permission for adding an object to repository database .git/objects
error: Error building trees
solution
sudo chown -R cygr-0101-01-0133 *
cd .git
sudo chown -R cygr-0101-01-0133 *
central reason
https://stackoverflow.com/questions/28832815/git-commands-require-sudo-on-osx
In fact, when our versiongit clone
requires systemssudo
permissions, and our system is connected. It should be that ssh requires system privileges. Even if it works, then it also requires the git fetch
and git push
. But at least, saving is not bad…
Detected Detection
chown -R < If this option is checked, KDM will show a list of users, so users can click on their name or image rather than typing in their login. myproject