I am using Git bash on Windows 10, here is my solution:
env
; then click Edit environment variables for your account
(control panel)New
button~/
to be in git bashOpen a git bash session and test it by typing: pwd
and double check by doing cd ~/ && pwd