@@ -273,17 +273,17 @@ <h2>NAME</h2>
273273< h2 > SYNOPSIS</ h2 >
274274< div class ="sectionbody ">
275275< div class ="verseblock ">
276- < div class ="content "> < em > git-config</ em > [--system | --global ] [type] [-z|--null] name [value [value_regex]]
277- < em > git-config</ em > [--system | --global ] [type] --add name value
278- < em > git-config</ em > [--system | --global ] [type] --replace-all name [value [value_regex]]
279- < em > git-config</ em > [--system | --global ] [type] [-z|--null] --get name [value_regex]
280- < em > git-config</ em > [--system | --global ] [type] [-z|--null] --get-all name [value_regex]
281- < em > git-config</ em > [--system | --global ] [type] [-z|--null] --get-regexp name_regex [value_regex]
282- < em > git-config</ em > [--system | --global ] --unset name [value_regex]
283- < em > git-config</ em > [--system | --global ] --unset-all name [value_regex]
284- < em > git-config</ em > [--system | --global ] --rename-section old_name new_name
285- < em > git-config</ em > [--system | --global ] --remove-section name
286- < em > git-config</ em > [--system | --global ] [-z|--null] -l | --list</ div > </ div >
276+ < div class ="content "> < em > git-config</ em > [<file-option> ] [type] [-z|--null] name [value [value_regex]]
277+ < em > git-config</ em > [<file-option> ] [type] --add name value
278+ < em > git-config</ em > [<file-option> ] [type] --replace-all name [value [value_regex]]
279+ < em > git-config</ em > [<file-option> ] [type] [-z|--null] --get name [value_regex]
280+ < em > git-config</ em > [<file-option> ] [type] [-z|--null] --get-all name [value_regex]
281+ < em > git-config</ em > [<file-option> ] [type] [-z|--null] --get-regexp name_regex [value_regex]
282+ < em > git-config</ em > [<file-option> ] --unset name [value_regex]
283+ < em > git-config</ em > [<file-option> ] --unset-all name [value_regex]
284+ < em > git-config</ em > [<file-option> ] --rename-section old_name new_name
285+ < em > git-config</ em > [<file-option> ] --remove-section name
286+ < em > git-config</ em > [<file-option> ] [-z|--null] -l | --list</ div > </ div >
287287</ div >
288288< h2 > DESCRIPTION</ h2 >
289289< div class ="sectionbody ">
@@ -301,16 +301,21 @@ <h2>DESCRIPTION</h2>
301301convert the value to the canonical form (simple decimal number for int,
302302a "true" or "false" string for bool). If no type specifier is passed,
303303no checks or transformations are performed on the value.</ p >
304+ < p > The file-option can be one of < em > --system</ em > , < em > --global</ em > or < em > --file</ em >
305+ which specify where the values will be read from or written to.
306+ The default is to assume the config file of the current repository,
307+ .git/config unless defined otherwise with GIT_DIR and GIT_CONFIG
308+ (see < a href ="#FILES "> [FILES]</ a > ).</ p >
304309< p > This command will fail if:</ p >
305310< ol >
306311< li >
307312< p >
308- The .git/ config file is invalid,
313+ The config file is invalid,
309314</ p >
310315</ li >
311316< li >
312317< p >
313- Can not write to .git/ config,
318+ Can not write to the config file ,
314319</ p >
315320</ li >
316321< li >
@@ -414,6 +419,14 @@ <h2>OPTIONS</h2>
414419< p > See also < a href ="#FILES "> [FILES]</ a > .</ p >
415420</ dd >
416421< dt >
422+ -f config-file, --file config-file
423+ </ dt >
424+ < dd >
425+ < p >
426+ Use the given config file instead of the one specified by GIT_CONFIG.
427+ </ p >
428+ </ dd >
429+ < dt >
417430--remove-section
418431</ dt >
419432< dd >
@@ -489,8 +502,8 @@ <h2>OPTIONS</h2>
489502</ div >
490503< h2 > < a id ="FILES "> </ a > FILES</ h2 >
491504< div class ="sectionbody ">
492- < p > There are three files where git-config will search for configuration
493- options:</ p >
505+ < p > If not set explicitely with < em > --file </ em > , there are three files where
506+ git-config will search for configuration options:</ p >
494507< div class ="literalblock ">
495508< div class ="title "> git/config::</ div >
496509< div class ="content ">
@@ -1872,7 +1885,7 @@ <h2>GIT</h2>
18721885</ div >
18731886< div id ="footer ">
18741887< div id ="footer-text ">
1875- Last updated 27-Jul -2007 07:25:18 UTC
1888+ Last updated 01-Aug -2007 08:42:09 UTC
18761889</ div >
18771890</ div >
18781891</ body >
0 commit comments