Git for Windows doesn't know %USERPROFILE%
I have the same issue like Git for Windows doesn't execute my .bashrc file and tried to make the same steps. But my Git Bash (2.5.0, 64bit on Windows 7, 64bit) doesn't know my %USERPROFILE%
.
pitgrap@xxx MINGW64 /
$ pwd
/
pitgrap@xxx MINGW64 /
$ cd ~
bash: cd: /%USERPROFILE%: No such file or directory
If I run Git Bash as Administror, it works. :( But I don't want to run it everytime as Administrator. Any ideas?
The new Git-for-Windows is using a %HOME%
enviroment variable. It was set on my machine to HOME=%USERPROFILE%
. You can't use another variable here. Remove it or change it to a real path.
See also https://github.com/git-for-windows/git/issues/313
链接地址: http://www.djcxy.com/p/87576.html