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 :: delete last commit from remote repo 
Shell :: keycloak docker 
Shell :: opera install in ubuntu 
Shell :: the current branch has no upstream branch error 
Shell :: ohow to kill pm2 servers 
Shell :: install gnome software 
Shell :: tcpdump get dhcp packets 
Shell :: install vue in laravel 
Shell :: install react file base64 
Shell :: bash how to trim every nth line 
Shell :: ubuntu ifconfig not found 
Shell :: how to get kafka version 
Shell :: git checkout branch on different remote 
Shell :: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/singh/Library/LaunchAgents/homebrew.mxcl.httpd.plist` exited with 5. singh@Singhs-Air ~ % sudo apachectl start 
Shell :: npm clear cache 
Shell :: jupyter sagemath kernel 
Shell :: git initial commit steps 
Shell :: vercel 
Shell :: pinterest clone github 
Shell :: export commit history github 
Shell :: git pull upstream 
Shell :: How to Install Google Chrome on Centos 8 
Shell :: make root password kali 
Shell :: install python for latex with dependencies 
Shell :: git changes on branch carried over after switching to other branch 
Shell :: kubectl install on ubuntu 
Shell :: sh declare variable 
Shell :: node install ubuntu 
Shell :: docker view container logs 
Shell :: how to install vim through powershell 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =