git-bash $PATH cannot parse windows directory with space
I am having similar problem.
After some struggle, i put this on the first line in my C:\Program Files\Git\etc\profile
:
export HOME=`cygpath -u "\`cygpath -d "$HOMEDRIVE$HOMEPATH"\`"`
and type command echo $HOME
in bash will come out /c/Users/NAMEXX~1
, no more space parsing problem for my $HOME
or ~/
!