STEP1
git config --global -l --show-origin
result
warning: unable to access '/home/min/.gitconfig': Permission denied
warning: unable to access '/home/min/.gitconfig': Permission denied
fatal: unable to read config file '/home/min/.gitconfig': Permission denied
PERMISSION FUCKING DENIED
STEP2
ls -la /home/min
this shows the list of directory /home/min
...but then I could finally see where da .gitconfig file is.
-rwx--x--x 1 root root 98 Mar 9 17:10 .gitconfig
oddly it was owned by user root and group root, let's fix it out
and rest of files in /home/min, chown was 711
STEP3
chmod 755 /home/min
sudo chown /home/min/.gitconfig min:min
$shdo chown USERNAME:GROUPNAME FILENAME.EXTENSION
chmod 644 /home/min/.gitconfig
git config --global -l --show-origin
result
warning: unable to access '/home/min/.gitconfig': Permission denied
warning: unable to access '/home/min/.gitconfig': Permission denied
fatal: unable to read config file '/home/min/.gitconfig': Permission denied
PERMISSION FUCKING DENIED
STEP2
ls -la /home/min
this shows the list of directory /home/min
...but then I could finally see where da .gitconfig file is.
-rwx--x--x 1 root root 98 Mar 9 17:10 .gitconfig
oddly it was owned by user root and group root, let's fix it out
and rest of files in /home/min, chown was 711
STEP3
chmod 755 /home/min
sudo chown /home/min/.gitconfig min:min
$shdo chown USERNAME:GROUPNAME FILENAME.EXTENSION
chmod 644 /home/min/.gitconfig
PERFECTO
댓글
댓글 쓰기