Add to nsswitch.conf:
nsswitch.conf
db_home: /cygdrive/c/tools/shell/home
How do I set a custom home directory for «Git for Windows»?