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

后端 未结 9 2122
刺人心
刺人心 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:31

    Set HOME var in 'User variable for ' (Control Panel\All Control Panel Items\System\ => Advanced system settings\Advanced\Env variables)

    It resolved my issue.

    0 讨论(0)
  • 2021-02-03 23:33

    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
      
    0 讨论(0)
  • 2021-02-03 23:36

    May be this will help some one who is on windows 10.

    Assuming if you have network drive and you are facing the above error

    Step 1: Hit windows key and type Environment Variables

    Step 2: In the Advanced > Under startup and recovery > environment variables > Under 'variables section` Step 3: Specify your path like below.

    This will definitely work even for source tree or actual git problem. Thanks

    0 讨论(0)
提交回复
热议问题