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
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,
If you are using "Git Bash" (MINGW64) on Windows:
Enter:
export HOME=/c
To verify:
echo $HOME
This worked for me on windows 10.
My source code is in C:\workspace and I added an environment variable **HOME to C:**
I experienced a similar issue when not connected to my work network via VPN. Deleting the all the HOME% variables did not work. Deleting the network drive it was trying to access did work. Running the following from a command window worked for me:
net use H: /delete
As a note, I did delete the HOME% variables, but it did work until the command above was run.
It works for me to clear the HOME Variable "nearly" to Daniels solution:
set HOME=
To recheck you have to echo it like this:
echo %HOME%
For the PowerShell users out there:
Remove-Item Env:\HOMEPATH
Thank you @Daniel Hilgarth for the answer