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

后端 未结 9 990
慢半拍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:19

    net delete is not a must.

    First check HOME setting, then change HOME and HOMEDRIVE to a existing dir.

    c:\git\selenium-automation>set HOME
    HOME=U:\
    HOMEDRIVE=U:
    HOMEPATH=\
    HOMESHARE=\\XX
    

    then change HOME and HOMEDRIVE by

    set HOME=c:\tmp
    set HOMEDRIVE=C:
    

    c:\git\selenium-automation>set HOME

    HOME=c:\tmp
    HOMEDRIVE=c:
    HOMEPATH=\
    HOMESHARE=\\XX
    

提交回复
热议问题