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

Set the HOME environment variable:

2023-05-28--07-10-45

stackoverflow.com/a/32233667

How do I set a custom home directory for Cygwin?