Skip to content

Commit 889a26b

Browse files
committed
Merge pull request #1548 from alejandro5042/master
Document how $HOME is set on Windows
2 parents 15ed500 + 7c582d1 commit 889a26b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Documentation/git.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,14 @@ Environment Variables
372372
---------------------
373373
Various Git commands use the following environment variables:
374374

375+
System
376+
~~~~~~
377+
`HOME`::
378+
Specifies the path to the user's home directory. On Windows, if
379+
unset, Git will set a process environment variable equal to:
380+
`$HOMEDRIVE$HOMEPATH` if both `$HOMEDRIVE` and `$HOMEPATH` exist;
381+
otherwise `$USERPROFILE` if `$USERPROFILE` exists.
382+
375383
The Git Repository
376384
~~~~~~~~~~~~~~~~~~
377385
These environment variables apply to 'all' core Git commands. Nb: it

0 commit comments

Comments
 (0)