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

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

PREVIOUS NEXT
Code Example
Shell :: fstab sshfs 
Shell :: echo to add line to file 
Shell :: open a file in linux 
Shell :: wsl distro 
Shell :: bash for 
Shell :: git pull branch you are not on 
Shell :: crear una aplicacion con angular cli 
Shell :: fetch a specific branch 
Shell :: skip ci gitlab 
Shell :: get latitude and longitude based on user entered place android 
Shell :: docker run 
Shell :: mac format drive for windows 
Shell :: bash script to get all git branches from remote 
Shell :: imagemagick compare pdf 
Shell :: packet10 
Shell :: transfer git repo from gitlab to github 
Shell :: git push 
Shell :: ksd command not found 
Shell :: how to install unijoy in linux 
Shell :: postgres change deafult encode 
Shell :: Linkar repo en github 
Shell :: ssh with key linux 
Shell :: ubuntu history to file without line number 
Shell :: how to provide 777 access recurssively unix 
Shell :: git merge origin master branch with branch 
Shell :: The process cannot access the file because it is being used by another process. Press any key to continue... 
Shell :: installing cdf 
Shell :: neovim nvim plugins 
Shell :: redis sentinel get master ip 
Shell :: how to install automapper in vs code 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =