Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insufficient #permission #adding #object #repository #database
ADD COMMENT
Topic
Name
2+8 =