How do I set a custom home directory for Cygwin?

Add to nsswitch.conf:

db_home: /cygdrive/c/tools/shell/home

How do I set a custom home directory for «Git for Windows»?