Git warning: unable to access 'P:\/.gitconfig': Invalid argument

前端 未结 14 1836
情书的邮戳
情书的邮戳 2021-02-05 02:07

I am just testing git. I ran the following command:

git config user.email \"test@mail.com\"

I now get this when git status and oth

14条回答
  •  温柔的废话
    2021-02-05 02:23

    I was facing this issue when loading a solution in Visual Studio 2017 (v15.1) running as an Administrator. And my local git repo was located in C:\Code\

    To work around the problem,

    1. I added an Environment Variable (under User variable) HOME with value C:\
    2. Restarted Visual Studio (again as an admin) - this time Git was able to load successfully loading my branch & source control association correctly.

提交回复
热议问题