I am getting this error for every git command I try to run and haven't found anywhere something similar. I have found stuff like "permission denied" and other problems to access the git configurations but nothing related to this "Is a directory" warning. I don't even know if it is related to the fatal error I am getting, but it is all the information I currently have.
user@computer:~/folder$ git status
warning: unable to access '/home/user/.gitconfig': Is a directory
warning: unable to access '/home/user/.gitconfig': Is a directory
fatal: unknown error occurred while reading the configuration files
.gitconfig
is a global configuration file of git
tool.
Like this, your name, email, some tools... https://gist.github.com/gokure/3488458
Not sure how you created your .gitconfig
directory, but to be safe, rename it to .gitconfig_backup_dir
, then git
should then run flawlessly, cause git will not find $HOME/.gitconfig
but will work without it flawlessly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With