fatal: unable to access ‘X:/.config/git/config’: Invalid argument

I got this error when opening a git repository:

fatal: unable to access ‘X:/.config/git/config’: Invalid argument

Firstly, i don’t have access of the X:/ . It is normal the git cann’t access.

Actually, the Git config file is located under user path when Git cann’t find the ‘HOME’ path in the system environement variable.

So, it is easy to solve this error, add the a path which you have access to ‘HOME’ environement variable. Then restart Git.

There’s no error!

Reference linkhttps://www.cnblogs.com/hongdada/p/9807833.html

News Reporter

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.