fatal: unable to access 'H:\/.config/git/config': Invalid argument [Git on Windows 7]

后端 未结 9 2117
刺人心
刺人心 2021-02-03 23:07

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?<

9条回答
  •  北荒
    北荒 (楼主)
    2021-02-03 23:30

    If you'll check your GIT installation path /git/etc/profile you'll see HOME variable set as:
    HOME="$HOMEDRIVE$HOMEPATH"

    For this I created HOME variable in my Environment variables and it started working.

提交回复
热议问题