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 :: how to I display powershell function code 
Shell :: how to install a lite-server on package.json 
Shell :: how to install gnome system monitor 
Shell :: How do I get my drive letters back? 
Shell :: gcloud list current CLI Configuration 
Shell :: pip not found after installation 
Shell :: how to remove first line from output using awk 
Shell :: install jq command 
Shell :: centos apache certbot 
Shell :: cannot install gcc on ubuntu 
Shell :: Authentication is required to create a color managed device 
Shell :: openssl generate certificate 
Shell :: how to setup git locally with ssh 
Shell :: bash find file by name 
Shell :: how to deallocate a port 
Shell :: vim sudo write 
Shell :: redis start stop commands 
Shell :: install werkzeug 
Shell :: apache .htaccess Option ubuntu 
Shell :: visualize git tree branches in repo 
Shell :: bash get timestamp 
Shell :: how to prevent idle ubuntu suspending 
Shell :: disable pre commit hook 
Shell :: kill screen 
Shell :: kali 
Shell :: cmd stop process on port 
Shell :: how to push code to github from vscode 
Shell :: Yarn .gitignore for Zero Installs 
Shell :: ubuntu default phpmyadmin password 
Shell :: uninstall django 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =