Git and Home Directories

If you’re on an AD bound, Windows machine, your home property may be pointing to your network home drive.  This presents all sorts of issues, not the least of which is slow performance since the virtual machine will essentially be running across the network.  To fix this, we can force the HOME variable to point to your local workstation:

  1. For Windows 8+, right click on the windows button in the lower left hand corner and select “System”
  2. For Windows 7/ XP, right click on the My Computer icon and select Properties.
  3. On the left, click”Advanced system settings”
  4. Click on the button “Environment Vairables…”
  5. In the top half section (user variables for <YOUR USERNAME>), click the button “New”
  6. Variable Name should be “Home”, without quotes
  7. Variable value should be the path to your local home directory (i.e. C:\Users\jgonyea)

You’ll need to log out and back in in order to have the changes fully apply.  Open a Git bash window and cd to “~” without quotes.  If you list the files, you should be looking at the ones on your local machine vs. the ones on your home directory.

Author: Jeremy Gonyea

A minimalist lifestyle with lots of technology added for good measure.

Leave a Reply

Your email address will not be published. Required fields are marked *