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!