Git for Windows - custom home directory

If it is required to change home directory ~/home, for example to store SSH keys in other location.

  • Download Git for Windows.
  • Install it.
  • Navigate to installation directory. For example 'd:\Software\Installed\Git\'
  • Open file './etc/profile' .
  • Add first line like this:
    # HOME="path-to-home-dir"

Posted in Git on Aug 03, 2017