Git for Windows doesn't know %USERPROFILE%
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