]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/git-config.txt
config: read (but not write) from $XDG_CONFIG_HOME/git/config file
[thirdparty/git.git] / Documentation / git-config.txt
index d9463cb3874181456138d4ca54da4e3540bbeb4f..09675cba4a9c415dfd01d77c140f37eff2b711d7 100644 (file)
@@ -99,8 +99,8 @@ OPTIONS
        For writing options: write to global ~/.gitconfig file rather than
        the repository .git/config.
 +
-For reading options: read only from global ~/.gitconfig rather than
-from all available files.
+For reading options: read only from global ~/.gitconfig and from
+$XDG_CONFIG_HOME/git/config rather than from all available files.
 +
 See also <<FILES>>.
 
@@ -194,7 +194,7 @@ See also <<FILES>>.
 FILES
 -----
 
-If not set explicitly with '--file', there are three files where
+If not set explicitly with '--file', there are four files where
 'git config' will search for configuration options:
 
 $GIT_DIR/config::
@@ -204,6 +204,14 @@ $GIT_DIR/config::
        User-specific configuration file. Also called "global"
        configuration file.
 
+$XDG_CONFIG_HOME/git/config::
+       Second user-specific configuration file. If $XDG_CONFIG_HOME is not set
+       or empty, $HOME/.config/git/config will be used. Any single-valued
+       variable set in this file will be overwritten by whatever is in
+       ~/.gitconfig.  It is a good idea not to create this file if
+       you sometimes use older versions of Git, as support for this
+       file was added fairly recently.
+
 $(prefix)/etc/gitconfig::
        System-wide configuration file.