Git 2.24.0 gives permission denied as it looks in system wide in /root/etc/gitconfig


I am using the latest git  2.24.0 installed by sys admin in shared directory /gpfs/software/git/2.24.0/root/bin

I have cloned a git repo but the git status returns the following error

fatal unable to access ‘/root/etc/gitconfig’

My question is how can i change the location of git config so that it points to --global and not --system location

i can not even run git config as i get the same error 

This is on centos 6.X

Any help would be much appreciated

Hi @amjadhpc,

Thanks for being here! Please contact the administrators for your GitHub Enterprise appliance, who will be able to assist you with your enquiry and possibly change this configuration or offer other alternatives.

1 Like