Git warning: unable to access ‘P:\/.gitconfig’: Invalid argument

I just encountered this error.
Executing set HOMEPATH in the command line gave this output:

HOMEPATH=\

Simply deleting this environment variable via set HOMEPATH= fixed the problem.

Leave a Comment