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
Similar Posts:
- Git Permission issues: insufficient permission for adding an object to repository database .git
- Git push Warning: The authenticity of host ‘github.com (52.74.223.119)’ can’t be established.
- ubuntu18.04 Start Android StudioKVM is required to run this AVD ./dev/kvm device: permission denied.
- error: src refspec master does not match any [How to Solve]
- How to Solve Git Warning: possible DNS spoofing detected
- Git | fatal: refusing to merge unrelated histories [How to Solve]
- Conflict resolution after git error non fast forward
- How to Solve MySQL Startup error: mysql-bin.index not found (Errcode: 13)
- Git Push hint: Updates were rejected because the remote contains work that you do hint: not have …
- Raspberry pie: How to Solve Mongodb installation error