training-manual
training-manual copied to clipboard
Create documentation for changing `$HOME` path on Windows
Windows users that have a $HOME
path that points to a network drive location will experience difficulties using Git and Git Bash. Some of these difficulties include:
-
Very slow Git commands
This can happen when Git/Git Bash is installed on the network drive or when running commands from a network drive location.
-
Permissions errors
Sometimes these network drives are read-only, so commands like
git config
will return aPERMISSION DENIED
error.
The following should fix these problems:
-
Open a Command Prompt window (Open the Start menu, type
cmd
, and press return) -
Run the following command:
setx HOME "%USERPROFILE%"
-
Press return. You should see
SUCCESS: Specified value was saved.
-
Close the Command Prompt window
-
Open Git Bash or restart it if it was already open