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

后端 未结 9 1128
慢半拍i
慢半拍i 2021-02-03 22:34

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:25

    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.

提交回复
热议问题