Skip to content

Commit 54b82a1

Browse files
committed
Merge pull request #428 from tacker66/git-for-windows
Give more details on Windows system-level config file.
2 parents 98c409c + 53959b9 commit 54b82a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ 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:\Documents and Settings\All Users\Application Data\Git\config` on Windows XP, and it is `C:\ProgramData\Git\config` on Windows Vista and newer.
21+
If you are using Git for Windows 2.x or later, there is also a system-level config file at
22+
`C:\Documents and Settings\All Users\Application Data\Git\config` on Windows XP, and in `C:\ProgramData\Git\config` on Windows Vista and newer.
23+
This config file can only be changed by `git config -f <file>` as an admin.
2224

2325
==== Your Identity
2426

0 commit comments

Comments
 (0)