Skip to content

Commit 3e8a93e

Browse files
committed
Merge pull request #373 from YueLinHo/GfW2_sys_cfg
Further explain the real "/etc/gitconfig" file path when using Git for Windows 2.x
2 parents 816f908 + f9f87a5 commit 3e8a93e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

book/01-introduction/sections/first-time-setup.asc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Each level overrides values in the previous level, so values in `.git/config` tr
1818

1919
On Windows systems, Git looks for the `.gitconfig` file in the `$HOME` directory (`C:\Users\$USER` for most people).
2020
It also still looks for `/etc/gitconfig`, although it's relative to the MSys root, which is wherever you decide to install Git on your Windows system when you run the installer.
21+
However, if you are using Git for Windows 2.x, it is `C:\Doucuments and Settings\All Users\Application Data\Git\config` on Windows XP, and it is `C:\ProgramData\Git\config` on Windows Vista and newer.
2122

2223
==== Your Identity
2324

0 commit comments

Comments
 (0)