Answers for "error: insufficient permission for adding an object to repository database .git/objects Cannot save the current index state"

2

error: insufficient permission for adding an object to repository database .git/objects

find .git/ -exec stat --format="%G %n" {} + |grep root

chown -R $(id -un):$(id -gn) .git/objects/

git commit -a -m "fixed git objects ownership"
Posted by: Guest on February-27-2021

Code answers related to "error: insufficient permission for adding an object to repository database .git/objects Cannot save the current index state"

Browse Popular Code Answers by Language