Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add note about %PROGRAMDATA%\Git\config to git-config.txt #470

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Documentation/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ is used to store the configuration for that repository, and
`$HOME/.gitconfig` is used to store a per-user configuration as
fallback values for the `.git/config` file. The file `/etc/gitconfig`
can be used to store a system-wide default configuration. On Windows,
configuration can also be stored in `C:\ProgramData\Git\config`; This
configuration can also be stored in `%PROGRAMDATA%\Git\config`; This
file will be used also by libgit2-based software.

The configuration variables are used by both the Git plumbing
Expand Down
7 changes: 4 additions & 3 deletions Documentation/git-config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,10 @@ $GIT_DIR/config::
Repository specific configuration file.

On Windows, as there is no central `/etc/` directory, there is yet another
config file, intended to contain settings for *all* Git-related software
running on the machine. Consequently, this config file takes an even lower
precedence than the `$(prefix)/etc/gitconfig` file.
config file (located at `%PROGRAMDATA%\Git\config`), intended to contain
settings for *all* Git-related software running on the machine. Consequently,
this config file takes an even lower precedence than the
`$(prefix)/etc/gitconfig` file.

If no further options are given, all reading options will read all of these
files that are available. If the global or the system-wide configuration
Expand Down