Git Bash not remembering the home I set

Viewed 116

I want my home directory to be c:\USERS\TONY so I did this command HOME=$USERPROFILE and when i echo it and it gives me the wanted result. However, when I shut down my computer and come back the next day it goes back to what it was before. How do i set it permanently?

1 Answers

You can add that HOME variable as a USER environment variable in your Windows settings

That way, any git bash session will consider that folder as your HOME.

But a Git for Windows does already that for USERPROFILE: it already is $HOME.

Related