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

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

    Make sure, in a command line window:

    • HOME is indeed not set: type set HOME, which would return its value if any
    • the issue persists with the latest msysgit distribution (1.9.0): unzip that archive anywhere, and call git with its full path:

      c/mydir/PortableGit-1.9.0-preview20140217/bin/git.exe --global -l
      

提交回复
热议问题