Setting up git / github on mac: error while reading usr / local / etc / gitconfig
I installed git with
git config --global user.name myuser
git config --global user.email my@email.com
when i try to push my new repo via github for mac i get this error:
fatal: Unable to access '/ usr / local / etc / gitconfig': permission denied (128)
I read the github documentation and followed their instructions but got nothing.
Could you please fix this?
+3
source to share
1 answer
git config --global
should write to$HOME/gitconfig
, your global config.
Double check $HOME
when you enter this command, because if /usr/local/etc/gitconfig
more is a system config file, more likely owned by root.
0
source to share