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

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

    I experienced a similar issue when not connected to my work network via VPN. Running the following from a command window worked for me:

    net use H: /delete
    

    This command actually deleted the H drive. If you actually use the mapped drive that is causing the issue, then this way could cause you other problems that would only be solved by remapping the drive (net use H:, followed by the mapped drive path). As a note, I did delete the HOME% variables (using "set HOME=" from the command line), but it did work until the command above was run.

提交回复
热议问题