Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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

# error: insufficient permission for adding an object to repository database .git/objects
# EASIEST & SIMPLEST SOLUTION ↓
sudo chmod 777 -R /path/to/your/git/repository/.git/objects
Comment

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

cd into .git/objects

run sudo chown -R "${USER:-$(id -un)}" .
Comment

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"
Comment

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

sudo chown -R www-data .
Comment

error: insufficient permission for adding an object to repository database

cd .git/objects
ls -al
sudo chown -R yourname:yourgroup *
Comment

PREVIOUS NEXT
Code Example
Shell :: git rebase a local branch into my branch 
Shell :: sort unix 
Shell :: bash create user with encrypted password 
Shell :: append data to a file with cat command 
Shell :: generate table of content in readme.md 
Shell :: winscp zip command 
Shell :: how to get specific lines of shell output 
Shell :: create a directory 
Shell :: y option in apt-get 
Shell :: git show whole file at commit 
Shell :: quit nano 
Shell :: sed mac install 
Shell :: git tag documentation 
Shell :: github start 
Shell :: gnu octave ubuntu 20.04 
Shell :: git cherry pick multiple commits 
Shell :: hide permission denied ~/.bash 
Shell :: df command linux concepts 
Shell :: git interactive rebase 
Shell :: jq command in linux 
Shell :: python re.sub examples 
Shell :: tinymce vue 3 
Shell :: how to install specific version of software on mac using brew 
Shell :: where are chocolatey packages installed 
Shell :: install babel language 
Shell :: install erlang 20 mac brew 
Shell :: ubuntu battery and network utilities install 
Shell :: elasticsearch diff between must and should 
Shell :: mac workbench error loading schema content 1558 
Shell :: batch text 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =