I get this error when opening a git repository:
fatal: unable to access \'H:/.config/git/config\': Invalid argument
Where in git is this path being pulled from?<
As some people are saying this seems to be an issue with HomeDrive and HomePath when using network drives.
For me this was solved by running my git commands as admin.