2 <html xmlns=
"http://www.w3.org/1999/xhtml" lang=
"en">
4 <meta charset=
"UTF-8"/>
5 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge"/>
6 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0"/>
7 <meta name=
"generator" content=
"Asciidoctor 2.0.20"/>
8 <title>git-config(
1)
</title>
9 <link rel=
"stylesheet" href=
"https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700"/>
11 /*! Asciidoctor default stylesheet | MIT License | https://asciidoctor.org */
12 /* Uncomment the following line when using as a custom stylesheet */
13 /* @import
"https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700"; */
14 html{font-family:sans-serif;-webkit-text-size-adjust:
100%}
16 a:focus{outline:thin dotted}
17 a:active,a:hover{outline:
0}
18 h1{font-size:
2em;margin:
.67em
0}
19 b,strong{font-weight:bold}
21 abbr[title]{cursor:help;border-bottom:
1px dotted #dddddf;text-decoration:none}
22 dfn{font-style:italic}
24 mark{background:#ff0;color:#
000}
25 code,kbd,pre,samp{font-family:monospace;font-size:
1em}
26 pre{white-space:pre-wrap}
27 q{quotes:
"\201C" "\201D" "\2018" "\2019"}
29 sub,sup{font-size:
75%;line-height:
0;position:relative;vertical-align:baseline}
33 svg:not(:root){overflow:hidden}
35 audio,video{display:inline-block}
36 audio:not([controls]){display:none;height:
0}
37 fieldset{border:
1px solid silver;margin:
0 2px;padding:
.35em
.625em
.75em}
38 legend{border:
0;padding:
0}
39 button,input,select,textarea{font-family:inherit;font-size:
100%;margin:
0}
40 button,input{line-height:normal}
41 button,select{text-transform:none}
42 button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}
43 button[disabled],html input[disabled]{cursor:default}
44 input[type=checkbox],input[type=radio]{padding:
0}
45 button::-moz-focus-inner,input::-moz-focus-inner{border:
0;padding:
0}
46 textarea{overflow:auto;vertical-align:top}
47 table{border-collapse:collapse;border-spacing:
0}
48 *,::before,::after{box-sizing:border-box}
49 html,body{font-size:
100%}
50 body{background:#fff;color:rgba(
0,
0,
0,
.8);padding:
0;margin:
0;font-family:
"Noto Serif",
"DejaVu Serif",serif;line-height:
1;position:relative;cursor:auto;-moz-tab-size:
4;-o-tab-size:
4;tab-size:
4;word-wrap:anywhere;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}
51 a:hover{cursor:pointer}
52 img,object,embed{max-width:
100%;height:auto}
53 object,embed{height:
100%}
54 img{-ms-interpolation-mode:bicubic}
55 .left{float:left!important}
56 .right{float:right!important}
57 .text-left{text-align:left!important}
58 .text-right{text-align:right!important}
59 .text-center{text-align:center!important}
60 .text-justify{text-align:justify!important}
62 img,object,svg{display:inline-block;vertical-align:middle}
63 textarea{height:auto;min-height:
50px}
65 .subheader,.admonitionblock td.content
>.title,.audioblock
>.title,.exampleblock
>.title,.imageblock
>.title,.listingblock
>.title,.literalblock
>.title,.stemblock
>.title,.openblock
>.title,.paragraph
>.title,.quoteblock
>.title,table.tableblock
>.title,.verseblock
>.title,.videoblock
>.title,.dlist
>.title,.olist
>.title,.ulist
>.title,.qlist
>.title,.hdlist
>.title{line-height:
1.45;color:#
7a2518;font-weight:
400;margin-top:
0;margin-bottom:
.25em}
66 div,dl,dt,dd,ul,ol,li,h1,h2,h3,#toctitle,.sidebarblock
>.content
>.title,h4,h5,h6,pre,form,p,blockquote,th,td{margin:
0;padding:
0}
67 a{color:#
2156a5;text-decoration:underline;line-height:inherit}
68 a:hover,a:focus{color:#
1d4b8f}
70 p{line-height:
1.6;margin-bottom:
1.25em;text-rendering:optimizeLegibility}
71 p aside{font-size:
.875em;line-height:
1.35;font-style:italic}
72 h1,h2,h3,#toctitle,.sidebarblock
>.content
>.title,h4,h5,h6{font-family:
"Open Sans",
"DejaVu Sans",sans-serif;font-weight:
300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:
1em;margin-bottom:
.5em;line-height:
1.0125em}
73 h1 small,h2 small,h3 small,#toctitle small,.sidebarblock
>.content
>.title small,h4 small,h5 small,h6 small{font-size:
60%;color:#e99b8f;line-height:
0}
75 h2{font-size:
1.6875em}
76 h3,#toctitle,.sidebarblock
>.content
>.title{font-size:
1.375em}
77 h4,h5{font-size:
1.125em}
79 hr{border:solid #dddddf;border-width:
1px
0 0;clear:both;margin:
1.25em
0 1.1875em}
80 em,i{font-style:italic;line-height:inherit}
81 strong,b{font-weight:bold;line-height:inherit}
82 small{font-size:
60%;line-height:inherit}
83 code{font-family:
"Droid Sans Mono",
"DejaVu Sans Mono",monospace;font-weight:
400;color:rgba(
0,
0,
0,
.9)}
84 ul,ol,dl{line-height:
1.6;margin-bottom:
1.25em;list-style-position:outside;font-family:inherit}
85 ul,ol{margin-left:
1.5em}
86 ul li ul,ul li ol{margin-left:
1.25em;margin-bottom:
0}
87 ul.circle{list-style-type:circle}
88 ul.disc{list-style-type:disc}
89 ul.square{list-style-type:square}
90 ul.circle ul:not([class]),ul.disc ul:not([class]),ul.square ul:not([class]){list-style:inherit}
91 ol li ul,ol li ol{margin-left:
1.25em;margin-bottom:
0}
92 dl dt{margin-bottom:
.3125em;font-weight:bold}
93 dl dd{margin-bottom:
1.25em}
94 blockquote{margin:
0 0 1.25em;padding:
.5625em
1.25em
0 1.1875em;border-left:
1px solid #ddd}
95 blockquote,blockquote p{line-height:
1.6;color:rgba(
0,
0,
0,
.85)}
96 @media screen and (min-width:
768px){h1,h2,h3,#toctitle,.sidebarblock
>.content
>.title,h4,h5,h6{line-height:
1.2}
98 h2{font-size:
2.3125em}
99 h3,#toctitle,.sidebarblock
>.content
>.title{font-size:
1.6875em}
100 h4{font-size:
1.4375em}}
101 table{background:#fff;margin-bottom:
1.25em;border:
1px solid #dedede;word-wrap:normal}
102 table thead,table tfoot{background:#f7f8f7}
103 table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:
.5em
.625em
.625em;font-size:inherit;color:rgba(
0,
0,
0,
.8);text-align:left}
104 table tr th,table tr td{padding:
.5625em
.625em;font-size:inherit;color:rgba(
0,
0,
0,
.8)}
105 table tr.even,table tr.alt{background:#f8f8f7}
106 table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{line-height:
1.6}
107 h1,h2,h3,#toctitle,.sidebarblock
>.content
>.title,h4,h5,h6{line-height:
1.2;word-spacing:-
.05em}
108 h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock
>.content
>.title strong,h4 strong,h5 strong,h6 strong{font-weight:
400}
109 .center{margin-left:auto;margin-right:auto}
111 .clearfix::before,.clearfix::after,.float-group::before,.float-group::after{content:
" ";display:table}
112 .clearfix::after,.float-group::after{clear:both}
113 :not(pre).nobreak{word-wrap:normal}
114 :not(pre).nowrap{white-space:nowrap}
115 :not(pre).pre-wrap{white-space:pre-wrap}
116 :not(pre):not([class^=L])
>code{font-size:
.9375em;font-style:normal!important;letter-spacing:
0;padding:
.1em
.5ex;word-spacing:-
.15em;background:#f7f7f8;border-radius:
4px;line-height:
1.45;text-rendering:optimizeSpeed}
117 pre{color:rgba(
0,
0,
0,
.9);font-family:
"Droid Sans Mono",
"DejaVu Sans Mono",monospace;line-height:
1.45;text-rendering:optimizeSpeed}
118 pre code,pre pre{color:inherit;font-size:inherit;line-height:inherit}
119 pre
>code{display:block}
120 pre.nowrap,pre.nowrap pre{white-space:pre;word-wrap:normal}
121 em em{font-style:normal}
122 strong strong{font-weight:
400}
123 .keyseq{color:rgba(
51,
51,
51,
.8)}
124 kbd{font-family:
"Droid Sans Mono",
"DejaVu Sans Mono",monospace;display:inline-block;color:rgba(
0,
0,
0,
.8);font-size:
.65em;line-height:
1.45;background:#f7f7f7;border:
1px solid #ccc;border-radius:
3px;box-shadow:
0 1px
0 rgba(
0,
0,
0,
.2),inset
0 0 0 .1em #fff;margin:
0 .15em;padding:
.2em
.5em;vertical-align:middle;position:relative;top:-
.1em;white-space:nowrap}
125 .keyseq kbd:first-child{margin-left:
0}
126 .keyseq kbd:last-child{margin-right:
0}
127 .menuseq,.menuref{color:#
000}
128 .menuseq b:not(.caret),.menuref{font-weight:inherit}
129 .menuseq{word-spacing:-
.02em}
130 .menuseq b.caret{font-size:
1.25em;line-height:
.8}
131 .menuseq i.caret{font-weight:bold;text-align:center;width:
.45em}
132 b.button::before,b.button::after{position:relative;top:-
1px;font-weight:
400}
133 b.button::before{content:
"[";padding:
0 3px
0 2px}
134 b.button::after{content:
"]";padding:
0 2px
0 3px}
135 p a
>code:hover{color:rgba(
0,
0,
0,
.9)}
136 #header,#content,#footnotes,#footer{width:
100%;margin:
0 auto;max-width:
62.5em;*zoom:
1;position:relative;padding-left:
.9375em;padding-right:
.9375em}
137 #header::before,#header::after,#content::before,#content::after,#footnotes::before,#footnotes::after,#footer::before,#footer::after{content:
" ";display:table}
138 #header::after,#content::after,#footnotes::after,#footer::after{clear:both}
139 #content{margin-top:
1.25em}
140 #content::before{content:none}
141 #header
>h1:first-child{color:rgba(
0,
0,
0,
.85);margin-top:
2.25rem;margin-bottom:
0}
142 #header
>h1:first-child+#toc{margin-top:
8px;border-top:
1px solid #dddddf}
143 #header
>h1:only-child,body.toc2 #header
>h1:nth-last-child(
2){border-bottom:
1px solid #dddddf;padding-bottom:
8px}
144 #header .details{border-bottom:
1px solid #dddddf;line-height:
1.45;padding-top:
.25em;padding-bottom:
.25em;padding-left:
.25em;color:rgba(
0,
0,
0,
.6);display:flex;flex-flow:row wrap}
145 #header .details span:first-child{margin-left:-
.125em}
146 #header .details span.email a{color:rgba(
0,
0,
0,
.85)}
147 #header .details br{display:none}
148 #header .details br+span::before{content:
"\00a0\2013\00a0"}
149 #header .details br+span.author::before{content:
"\00a0\22c5\00a0";color:rgba(
0,
0,
0,
.85)}
150 #header .details br+span#revremark::before{content:
"\00a0|\00a0"}
151 #header #revnumber{text-transform:capitalize}
152 #header #revnumber::after{content:
"\00a0"}
153 #content
>h1:first-child:not([class]){color:rgba(
0,
0,
0,
.85);border-bottom:
1px solid #dddddf;padding-bottom:
8px;margin-top:
0;padding-top:
1rem;margin-bottom:
1.25rem}
154 #toc{border-bottom:
1px solid #e7e7e9;padding-bottom:
.5em}
155 #toc
>ul{margin-left:
.125em}
156 #toc ul.sectlevel0
>li
>a{font-style:italic}
157 #toc ul.sectlevel0 ul.sectlevel1{margin:
.5em
0}
158 #toc ul{font-family:
"Open Sans",
"DejaVu Sans",sans-serif;list-style-type:none}
159 #toc li{line-height:
1.3334;margin-top:
.3334em}
160 #toc a{text-decoration:none}
161 #toc a:active{text-decoration:underline}
162 #toctitle{color:#
7a2518;font-size:
1.2em}
163 @media screen and (min-width:
768px){#toctitle{font-size:
1.375em}
164 body.toc2{padding-left:
15em;padding-right:
0}
165 #toc.toc2{margin-top:
0!important;background:#f8f8f7;position:fixed;width:
15em;left:
0;top:
0;border-right:
1px solid #e7e7e9;border-top-width:
0!important;border-bottom-width:
0!important;z-index:
1000;padding:
1.25em
1em;height:
100%;overflow:auto}
166 #toc.toc2 #toctitle{margin-top:
0;margin-bottom:
.8rem;font-size:
1.2em}
167 #toc.toc2
>ul{font-size:
.9em;margin-bottom:
0}
168 #toc.toc2 ul ul{margin-left:
0;padding-left:
1em}
169 #toc.toc2 ul.sectlevel0 ul.sectlevel1{padding-left:
0;margin-top:
.5em;margin-bottom:
.5em}
170 body.toc2.toc-right{padding-left:
0;padding-right:
15em}
171 body.toc2.toc-right #toc.toc2{border-right-width:
0;border-left:
1px solid #e7e7e9;left:auto;right:
0}}
172 @media screen and (min-width:
1280px){body.toc2{padding-left:
20em;padding-right:
0}
173 #toc.toc2{width:
20em}
174 #toc.toc2 #toctitle{font-size:
1.375em}
175 #toc.toc2
>ul{font-size:
.95em}
176 #toc.toc2 ul ul{padding-left:
1.25em}
177 body.toc2.toc-right{padding-left:
0;padding-right:
20em}}
178 #content #toc{border:
1px solid #e0e0dc;margin-bottom:
1.25em;padding:
1.25em;background:#f8f8f7;border-radius:
4px}
179 #content #toc
>:first-child{margin-top:
0}
180 #content #toc
>:last-child{margin-bottom:
0}
181 #footer{max-width:none;background:rgba(
0,
0,
0,
.8);padding:
1.25em}
182 #footer-text{color:hsla(
0,
0%,
100%,
.8);line-height:
1.44}
183 #content{margin-bottom:
.625em}
184 .sect1{padding-bottom:
.625em}
185 @media screen and (min-width:
768px){#content{margin-bottom:
1.25em}
186 .sect1{padding-bottom:
1.25em}}
187 .sect1:last-child{padding-bottom:
0}
188 .sect1+.sect1{border-top:
1px solid #e7e7e9}
189 #content h1
>a.anchor,h2
>a.anchor,h3
>a.anchor,#toctitle
>a.anchor,.sidebarblock
>.content
>.title
>a.anchor,h4
>a.anchor,h5
>a.anchor,h6
>a.anchor{position:absolute;z-index:
1001;width:
1.5ex;margin-left:-
1.5ex;display:block;text-decoration:none!important;visibility:hidden;text-align:center;font-weight:
400}
190 #content h1
>a.anchor::before,h2
>a.anchor::before,h3
>a.anchor::before,#toctitle
>a.anchor::before,.sidebarblock
>.content
>.title
>a.anchor::before,h4
>a.anchor::before,h5
>a.anchor::before,h6
>a.anchor::before{content:
"\00A7";font-size:
.85em;display:block;padding-top:
.1em}
191 #content h1:hover
>a.anchor,#content h1
>a.anchor:hover,h2:hover
>a.anchor,h2
>a.anchor:hover,h3:hover
>a.anchor,#toctitle:hover
>a.anchor,.sidebarblock
>.content
>.title:hover
>a.anchor,h3
>a.anchor:hover,#toctitle
>a.anchor:hover,.sidebarblock
>.content
>.title
>a.anchor:hover,h4:hover
>a.anchor,h4
>a.anchor:hover,h5:hover
>a.anchor,h5
>a.anchor:hover,h6:hover
>a.anchor,h6
>a.anchor:hover{visibility:visible}
192 #content h1
>a.link,h2
>a.link,h3
>a.link,#toctitle
>a.link,.sidebarblock
>.content
>.title
>a.link,h4
>a.link,h5
>a.link,h6
>a.link{color:#ba3925;text-decoration:none}
193 #content h1
>a.link:hover,h2
>a.link:hover,h3
>a.link:hover,#toctitle
>a.link:hover,.sidebarblock
>.content
>.title
>a.link:hover,h4
>a.link:hover,h5
>a.link:hover,h6
>a.link:hover{color:#a53221}
194 details,.audioblock,.imageblock,.literalblock,.listingblock,.stemblock,.videoblock{margin-bottom:
1.25em}
195 details{margin-left:
1.25rem}
196 details
>summary{cursor:pointer;display:block;position:relative;line-height:
1.6;margin-bottom:
.625rem;outline:none;-webkit-tap-highlight-color:transparent}
197 details
>summary::-webkit-details-marker{display:none}
198 details
>summary::before{content:
"";border:solid transparent;border-left:solid;border-width:
.3em
0 .3em
.5em;position:absolute;top:
.5em;left:-
1.25rem;transform:translateX(
15%)}
199 details[open]
>summary::before{border:solid transparent;border-top:solid;border-width:
.5em
.3em
0;transform:translateY(
15%)}
200 details
>summary::after{content:
"";width:
1.25rem;height:
1em;position:absolute;top:
.3em;left:-
1.25rem}
201 .admonitionblock td.content
>.title,.audioblock
>.title,.exampleblock
>.title,.imageblock
>.title,.listingblock
>.title,.literalblock
>.title,.stemblock
>.title,.openblock
>.title,.paragraph
>.title,.quoteblock
>.title,table.tableblock
>.title,.verseblock
>.title,.videoblock
>.title,.dlist
>.title,.olist
>.title,.ulist
>.title,.qlist
>.title,.hdlist
>.title{text-rendering:optimizeLegibility;text-align:left;font-family:
"Noto Serif",
"DejaVu Serif",serif;font-size:
1rem;font-style:italic}
202 table.tableblock.fit-content
>caption.title{white-space:nowrap;width:
0}
203 .paragraph.lead
>p,#preamble
>.sectionbody
>[class=paragraph]:first-of-type p{font-size:
1.21875em;line-height:
1.6;color:rgba(
0,
0,
0,
.85)}
204 .admonitionblock
>table{border-collapse:separate;border:
0;background:none;width:
100%}
205 .admonitionblock
>table td.icon{text-align:center;width:
80px}
206 .admonitionblock
>table td.icon img{max-width:none}
207 .admonitionblock
>table td.icon .title{font-weight:bold;font-family:
"Open Sans",
"DejaVu Sans",sans-serif;text-transform:uppercase}
208 .admonitionblock
>table td.content{padding-left:
1.125em;padding-right:
1.25em;border-left:
1px solid #dddddf;color:rgba(
0,
0,
0,
.6);word-wrap:anywhere}
209 .admonitionblock
>table td.content
>:last-child
>:last-child{margin-bottom:
0}
210 .exampleblock
>.content{border:
1px solid #e6e6e6;margin-bottom:
1.25em;padding:
1.25em;background:#fff;border-radius:
4px}
211 .sidebarblock{border:
1px solid #dbdbd6;margin-bottom:
1.25em;padding:
1.25em;background:#f3f3f2;border-radius:
4px}
212 .sidebarblock
>.content
>.title{color:#
7a2518;margin-top:
0;text-align:center}
213 .exampleblock
>.content
>:first-child,.sidebarblock
>.content
>:first-child{margin-top:
0}
214 .exampleblock
>.content
>:last-child,.exampleblock
>.content
>:last-child
>:last-child,.exampleblock
>.content .olist
>ol
>li:last-child
>:last-child,.exampleblock
>.content .ulist
>ul
>li:last-child
>:last-child,.exampleblock
>.content .qlist
>ol
>li:last-child
>:last-child,.sidebarblock
>.content
>:last-child,.sidebarblock
>.content
>:last-child
>:last-child,.sidebarblock
>.content .olist
>ol
>li:last-child
>:last-child,.sidebarblock
>.content .ulist
>ul
>li:last-child
>:last-child,.sidebarblock
>.content .qlist
>ol
>li:last-child
>:last-child{margin-bottom:
0}
215 .literalblock pre,.listingblock
>.content
>pre{border-radius:
4px;overflow-x:auto;padding:
1em;font-size:
.8125em}
216 @media screen and (min-width:
768px){.literalblock pre,.listingblock
>.content
>pre{font-size:
.90625em}}
217 @media screen and (min-width:
1280px){.literalblock pre,.listingblock
>.content
>pre{font-size:
1em}}
218 .literalblock pre,.listingblock
>.content
>pre:not(.highlight),.listingblock
>.content
>pre[class=highlight],.listingblock
>.content
>pre[class^=
"highlight "]{background:#f7f7f8}
219 .literalblock.output pre{color:#f7f7f8;background:rgba(
0,
0,
0,
.9)}
220 .listingblock
>.content{position:relative}
221 .listingblock code[data-lang]::before{display:none;content:attr(data-lang);position:absolute;font-size:
.75em;top:
.425rem;right:
.5rem;line-height:
1;text-transform:uppercase;color:inherit;opacity:
.5}
222 .listingblock:hover code[data-lang]::before{display:block}
223 .listingblock.terminal pre .command::before{content:attr(data-prompt);padding-right:
.5em;color:inherit;opacity:
.5}
224 .listingblock.terminal pre .command:not([data-prompt])::before{content:
"$"}
225 .listingblock pre.highlightjs{padding:
0}
226 .listingblock pre.highlightjs
>code{padding:
1em;border-radius:
4px}
227 .listingblock pre.prettyprint{border-width:
0}
228 .prettyprint{background:#f7f7f8}
229 pre.prettyprint .linenums{line-height:
1.45;margin-left:
2em}
230 pre.prettyprint li{background:none;list-style-type:inherit;padding-left:
0}
231 pre.prettyprint li code[data-lang]::before{opacity:
1}
232 pre.prettyprint li:not(:first-child) code[data-lang]::before{display:none}
233 table.linenotable{border-collapse:separate;border:
0;margin-bottom:
0;background:none}
234 table.linenotable td[class]{color:inherit;vertical-align:top;padding:
0;line-height:inherit;white-space:normal}
235 table.linenotable td.code{padding-left:
.75em}
236 table.linenotable td.linenos,pre.pygments .linenos{border-right:
1px solid;opacity:
.35;padding-right:
.5em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
237 pre.pygments span.linenos{display:inline-block;margin-right:
.75em}
238 .quoteblock{margin:
0 1em
1.25em
1.5em;display:table}
239 .quoteblock:not(.excerpt)
>.title{margin-left:-
1.5em;margin-bottom:
.75em}
240 .quoteblock blockquote,.quoteblock p{color:rgba(
0,
0,
0,
.85);font-size:
1.15rem;line-height:
1.75;word-spacing:
.1em;letter-spacing:
0;font-style:italic;text-align:justify}
241 .quoteblock blockquote{margin:
0;padding:
0;border:
0}
242 .quoteblock blockquote::before{content:
"\201c";float:left;font-size:
2.75em;font-weight:bold;line-height:
.6em;margin-left:-
.6em;color:#
7a2518;text-shadow:
0 1px
2px rgba(
0,
0,
0,
.1)}
243 .quoteblock blockquote
>.paragraph:last-child p{margin-bottom:
0}
244 .quoteblock .attribution{margin-top:
.75em;margin-right:
.5ex;text-align:right}
245 .verseblock{margin:
0 1em
1.25em}
246 .verseblock pre{font-family:
"Open Sans",
"DejaVu Sans",sans-serif;font-size:
1.15rem;color:rgba(
0,
0,
0,
.85);font-weight:
300;text-rendering:optimizeLegibility}
247 .verseblock pre strong{font-weight:
400}
248 .verseblock .attribution{margin-top:
1.25rem;margin-left:
.5ex}
249 .quoteblock .attribution,.verseblock .attribution{font-size:
.9375em;line-height:
1.45;font-style:italic}
250 .quoteblock .attribution br,.verseblock .attribution br{display:none}
251 .quoteblock .attribution cite,.verseblock .attribution cite{display:block;letter-spacing:-
.025em;color:rgba(
0,
0,
0,
.6)}
252 .quoteblock.abstract blockquote::before,.quoteblock.excerpt blockquote::before,.quoteblock .quoteblock blockquote::before{display:none}
253 .quoteblock.abstract blockquote,.quoteblock.abstract p,.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{line-height:
1.6;word-spacing:
0}
254 .quoteblock.abstract{margin:
0 1em
1.25em;display:block}
255 .quoteblock.abstract
>.title{margin:
0 0 .375em;font-size:
1.15em;text-align:center}
256 .quoteblock.excerpt
>blockquote,.quoteblock .quoteblock{padding:
0 0 .25em
1em;border-left:
.25em solid #dddddf}
257 .quoteblock.excerpt,.quoteblock .quoteblock{margin-left:
0}
258 .quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{color:inherit;font-size:
1.0625rem}
259 .quoteblock.excerpt .attribution,.quoteblock .quoteblock .attribution{color:inherit;font-size:
.85rem;text-align:left;margin-right:
0}
260 p.tableblock:last-child{margin-bottom:
0}
261 td.tableblock
>.content{margin-bottom:
1.25em;word-wrap:anywhere}
262 td.tableblock
>.content
>:last-child{margin-bottom:-
1.25em}
263 table.tableblock,th.tableblock,td.tableblock{border:
0 solid #dedede}
264 table.grid-all
>*
>tr
>*{border-width:
1px}
265 table.grid-cols
>*
>tr
>*{border-width:
0 1px}
266 table.grid-rows
>*
>tr
>*{border-width:
1px
0}
267 table.frame-all{border-width:
1px}
268 table.frame-ends{border-width:
1px
0}
269 table.frame-sides{border-width:
0 1px}
270 table.frame-none
>colgroup+*
>:first-child
>*,table.frame-sides
>colgroup+*
>:first-child
>*{border-top-width:
0}
271 table.frame-none
>:last-child
>:last-child
>*,table.frame-sides
>:last-child
>:last-child
>*{border-bottom-width:
0}
272 table.frame-none
>*
>tr
>:first-child,table.frame-ends
>*
>tr
>:first-child{border-left-width:
0}
273 table.frame-none
>*
>tr
>:last-child,table.frame-ends
>*
>tr
>:last-child{border-right-width:
0}
274 table.stripes-all
>*
>tr,table.stripes-odd
>*
>tr:nth-of-type(odd),table.stripes-even
>*
>tr:nth-of-type(even),table.stripes-hover
>*
>tr:hover{background:#f8f8f7}
275 th.halign-left,td.halign-left{text-align:left}
276 th.halign-right,td.halign-right{text-align:right}
277 th.halign-center,td.halign-center{text-align:center}
278 th.valign-top,td.valign-top{vertical-align:top}
279 th.valign-bottom,td.valign-bottom{vertical-align:bottom}
280 th.valign-middle,td.valign-middle{vertical-align:middle}
281 table thead th,table tfoot th{font-weight:bold}
282 tbody tr th{background:#f7f8f7}
283 tbody tr th,tbody tr th p,tfoot tr th,tfoot tr th p{color:rgba(
0,
0,
0,
.8);font-weight:bold}
284 p.tableblock
>code:only-child{background:none;padding:
0}
285 p.tableblock{font-size:
1em}
286 ol{margin-left:
1.75em}
287 ul li ol{margin-left:
1.5em}
288 dl dd{margin-left:
1.125em}
289 dl dd:last-child,dl dd:last-child
>:last-child{margin-bottom:
0}
290 li p,ul dd,ol dd,.olist .olist,.ulist .ulist,.ulist .olist,.olist .ulist{margin-bottom:
.625em}
291 ul.checklist,ul.none,ol.none,ul.no-bullet,ol.no-bullet,ol.unnumbered,ul.unstyled,ol.unstyled{list-style-type:none}
292 ul.no-bullet,ol.no-bullet,ol.unnumbered{margin-left:
.625em}
293 ul.unstyled,ol.unstyled{margin-left:
0}
294 li
>p:empty:only-child::before{content:
"";display:inline-block}
295 ul.checklist
>li
>p:first-child{margin-left:-
1em}
296 ul.checklist
>li
>p:first-child
>.fa-square-o:first-child,ul.checklist
>li
>p:first-child
>.fa-check-square-o:first-child{width:
1.25em;font-size:
.8em;position:relative;bottom:
.125em}
297 ul.checklist
>li
>p:first-child
>input[type=checkbox]:first-child{margin-right:
.25em}
298 ul.inline{display:flex;flex-flow:row wrap;list-style:none;margin:
0 0 .625em -
1.25em}
299 ul.inline
>li{margin-left:
1.25em}
300 .unstyled dl dt{font-weight:
400;font-style:normal}
301 ol.arabic{list-style-type:decimal}
302 ol.decimal{list-style-type:decimal-leading-zero}
303 ol.loweralpha{list-style-type:lower-alpha}
304 ol.upperalpha{list-style-type:upper-alpha}
305 ol.lowerroman{list-style-type:lower-roman}
306 ol.upperroman{list-style-type:upper-roman}
307 ol.lowergreek{list-style-type:lower-greek}
308 .hdlist
>table,.colist
>table{border:
0;background:none}
309 .hdlist
>table
>tbody
>tr,.colist
>table
>tbody
>tr{background:none}
310 td.hdlist1,td.hdlist2{vertical-align:top;padding:
0 .625em}
311 td.hdlist1{font-weight:bold;padding-bottom:
1.25em}
312 td.hdlist2{word-wrap:anywhere}
313 .literalblock+.colist,.listingblock+.colist{margin-top:-
.5em}
314 .colist td:not([class]):first-child{padding:
.4em
.75em
0;line-height:
1;vertical-align:top}
315 .colist td:not([class]):first-child img{max-width:none}
316 .colist td:not([class]):last-child{padding:
.25em
0}
317 .thumb,.th{line-height:
0;display:inline-block;border:
4px solid #fff;box-shadow:
0 0 0 1px #ddd}
318 .imageblock.left{margin:
.25em
.625em
1.25em
0}
319 .imageblock.right{margin:
.25em
0 1.25em
.625em}
320 .imageblock
>.title{margin-bottom:
0}
321 .imageblock.thumb,.imageblock.th{border-width:
6px}
322 .imageblock.thumb
>.title,.imageblock.th
>.title{padding:
0 .125em}
323 .image.left,.image.right{margin-top:
.25em;margin-bottom:
.25em;display:inline-block;line-height:
0}
324 .image.left{margin-right:
.625em}
325 .image.right{margin-left:
.625em}
326 a.image{text-decoration:none;display:inline-block}
327 a.image object{pointer-events:none}
328 sup.footnote,sup.footnoteref{font-size:
.875em;position:static;vertical-align:super}
329 sup.footnote a,sup.footnoteref a{text-decoration:none}
330 sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline}
331 #footnotes{padding-top:
.75em;padding-bottom:
.75em;margin-bottom:
.625em}
332 #footnotes hr{width:
20%;min-width:
6.25em;margin:-
.25em
0 .75em;border-width:
1px
0 0}
333 #footnotes .footnote{padding:
0 .375em
0 .225em;line-height:
1.3334;font-size:
.875em;margin-left:
1.2em;margin-bottom:
.2em}
334 #footnotes .footnote a:first-of-type{font-weight:bold;text-decoration:none;margin-left:-
1.05em}
335 #footnotes .footnote:last-of-type{margin-bottom:
0}
336 #content #footnotes{margin-top:-
.625em;margin-bottom:
0;padding:
.75em
0}
337 div.unbreakable{page-break-inside:avoid}
338 .big{font-size:larger}
339 .small{font-size:smaller}
340 .underline{text-decoration:underline}
341 .overline{text-decoration:overline}
342 .line-through{text-decoration:line-through}
344 .aqua-background{background:#
00fafa}
346 .black-background{background:#
000}
348 .blue-background{background:#
0000fa}
349 .fuchsia{color:#bf00bf}
350 .fuchsia-background{background:#fa00fa}
352 .gray-background{background:#
7d7d7d}
353 .green{color:#
006000}
354 .green-background{background:#
007d00}
356 .lime-background{background:#
00fa00}
357 .maroon{color:#
600000}
358 .maroon-background{background:#
7d0000}
360 .navy-background{background:#
00007d}
361 .olive{color:#
606000}
362 .olive-background{background:#
7d7d00}
363 .purple{color:#
600060}
364 .purple-background{background:#
7d007d}
366 .red-background{background:#fa0000}
367 .silver{color:#
909090}
368 .silver-background{background:#bcbcbc}
370 .teal-background{background:#
007d7d}
371 .white{color:#bfbfbf}
372 .white-background{background:#fafafa}
373 .yellow{color:#bfbf00}
374 .yellow-background{background:#fafa00}
375 span.icon
>.fa{cursor:default}
376 a span.icon
>.fa{cursor:inherit}
377 .admonitionblock td.icon [class^=
"fa icon-"]{font-size:
2.5em;text-shadow:
1px
1px
2px rgba(
0,
0,
0,
.5);cursor:default}
378 .admonitionblock td.icon .icon-note::before{content:
"\f05a";color:#
19407c}
379 .admonitionblock td.icon .icon-tip::before{content:
"\f0eb";text-shadow:
1px
1px
2px rgba(
155,
155,
0,
.8);color:#
111}
380 .admonitionblock td.icon .icon-warning::before{content:
"\f071";color:#bf6900}
381 .admonitionblock td.icon .icon-caution::before{content:
"\f06d";color:#bf3400}
382 .admonitionblock td.icon .icon-important::before{content:
"\f06a";color:#bf0000}
383 .conum[data-value]{display:inline-block;color:#fff!important;background:rgba(
0,
0,
0,
.8);border-radius:
50%;text-align:center;font-size:
.75em;width:
1.67em;height:
1.67em;line-height:
1.67em;font-family:
"Open Sans",
"DejaVu Sans",sans-serif;font-style:normal;font-weight:bold}
384 .conum[data-value] *{color:#fff!important}
385 .conum[data-value]+b{display:none}
386 .conum[data-value]::after{content:attr(data-value)}
387 pre .conum[data-value]{position:relative;top:-
.125em}
388 b.conum *{color:inherit!important}
389 .conum:not([data-value]):empty{display:none}
390 dt,th.tableblock,td.content,div.footnote{text-rendering:optimizeLegibility}
391 h1,h2,p,td.content,span.alt,summary{letter-spacing:-
.01em}
392 p strong,td.content strong,div.footnote strong{letter-spacing:-
.005em}
393 p,blockquote,dt,td.content,td.hdlist1,span.alt,summary{font-size:
1.0625rem}
394 p{margin-bottom:
1.25rem}
395 .sidebarblock p,.sidebarblock dt,.sidebarblock td.content,p.tableblock{font-size:
1em}
396 .exampleblock
>.content{background:#fffef7;border-color:#e0e0dc;box-shadow:
0 1px
4px #e0e0dc}
397 .print-only{display:none!important}
398 @page{margin:
1.25cm
.75cm}
399 @media print{*{box-shadow:none!important;text-shadow:none!important}
401 a{color:inherit!important;text-decoration:underline!important}
402 a.bare,a[href^=
"#"],a[href^=
"mailto:"]{text-decoration:none!important}
403 a[href^=
"http:"]:not(.bare)::after,a[href^=
"https:"]:not(.bare)::after{content:
"(" attr(href)
")";display:inline-block;font-size:
.875em;padding-left:
.25em}
404 abbr[title]{border-bottom:
1px dotted}
405 abbr[title]::after{content:
" (" attr(title)
")"}
406 pre,blockquote,tr,img,object,svg{page-break-inside:avoid}
407 thead{display:table-header-group}
409 p,blockquote,dt,td.content{font-size:
1em;orphans:
3;widows:
3}
410 h2,h3,#toctitle,.sidebarblock
>.content
>.title{page-break-after:avoid}
411 #header,#content,#footnotes,#footer{max-width:none}
412 #toc,.sidebarblock,.exampleblock
>.content{background:none!important}
413 #toc{border-bottom:
1px solid #dddddf!important;padding-bottom:
0!important}
414 body.book #header{text-align:center}
415 body.book #header
>h1:first-child{border:
0!important;margin:
2.5em
0 1em}
416 body.book #header .details{border:
0!important;display:block;padding:
0!important}
417 body.book #header .details span:first-child{margin-left:
0!important}
418 body.book #header .details br{display:block}
419 body.book #header .details br+span::before{content:none!important}
420 body.book #toc{border:
0!important;text-align:left!important;padding:
0!important;margin:
0!important}
421 body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1
>h2{page-break-before:always}
422 .listingblock code[data-lang]::before{display:block}
423 #footer{padding:
0 .9375em}
424 .hide-on-print{display:none!important}
425 .print-only{display:block!important}
426 .hide-for-print{display:none!important}
427 .show-for-print{display:inherit!important}}
428 @media amzn-kf8,print{#header
>h1:first-child{margin-top:
1.25rem}
429 .sect1{padding:
0!important}
430 .sect1+.sect1{border:
0}
431 #footer{background:none}
432 #footer-text{color:rgba(
0,
0,
0,
.6);font-size:
.9em}}
433 @media amzn-kf8{#header,#content,#footnotes,#footer{padding:
0}}
441 <body class=
"manpage">
443 <h1>git-config(
1) Manual Page
</h1>
444 <h2 id=
"_name">NAME
</h2>
445 <div class=
"sectionbody">
446 <p>git-config - Get and set repository or global options
</p>
451 <h2 id=
"_synopsis">SYNOPSIS
</h2>
452 <div class=
"sectionbody">
453 <div class=
"verseblock">
454 <pre class=
"content"><em>git config list
</em> [
<file-option
>] [
<display-option
>] [--includes]
455 <em>git config get
</em> [
<file-option
>] [
<display-option
>] [--includes] [--all] [--regexp] [--value=
<value
>] [--fixed-value] [--default=
<default
>]
<name
>
456 <em>git config set
</em> [
<file-option
>] [--type=
<type
>] [--all] [--value=
<value
>] [--fixed-value]
<name
> <value
>
457 <em>git config unset
</em> [
<file-option
>] [--all] [--value=
<value
>] [--fixed-value]
<name
>
458 <em>git config rename-section
</em> [
<file-option
>]
<old-name
> <new-name
>
459 <em>git config remove-section
</em> [
<file-option
>]
<name
>
460 <em>git config edit
</em> [
<file-option
>]
461 <em>git config
</em> [
<file-option
>] --get-colorbool
<name
> [
<stdout-is-tty
>]
</pre>
466 <h2 id=
"_description">DESCRIPTION
</h2>
467 <div class=
"sectionbody">
468 <div class=
"paragraph">
469 <p>You can query/set/replace/unset options with this command. The name is
470 actually the section and the key separated by a dot, and the value will be
473 <div class=
"paragraph">
474 <p>Multiple lines can be added to an option by using the
<code>--append
</code> option.
475 If you want to update or unset an option which can occur on multiple
476 lines, a
<code>value-pattern
</code> (which is an extended regular expression,
477 unless the
<code>--fixed-value
</code> option is given) needs to be given. Only the
478 existing values that match the pattern are updated or unset. If
479 you want to handle the lines that do
<strong>not
</strong> match the pattern, just
480 prepend a single exclamation mark in front (see also
<a href=
"#EXAMPLES">EXAMPLES
</a>),
481 but note that this only works when the
<code>--fixed-value
</code> option is not
484 <div class=
"paragraph">
485 <p>The
<code>--type=
</code><em><type
></em> option instructs
<em>git config
</em> to ensure that incoming and
486 outgoing values are canonicalize-able under the given
<type
>. If no
487 <code>--type=
</code><em><type
></em> is given, no canonicalization will be performed. Callers may
488 unset an existing
<code>--type
</code> specifier with
<code>--no-type
</code>.
</p>
490 <div class=
"paragraph">
491 <p>When reading, the values are read from the system, global and
492 repository local configuration files by default, and options
493 <code>--system
</code>,
<code>--global
</code>,
<code>--local
</code>,
<code>--worktree
</code> and
494 <code>--file
</code> <em><filename
></em> can be used to tell the command to read from only
495 that location (see
<a href=
"#FILES">FILES
</a>).
</p>
497 <div class=
"paragraph">
498 <p>When writing, the new value is written to the repository local
499 configuration file by default, and options
<code>--system
</code>,
<code>--global
</code>,
500 <code>--worktree
</code>,
<code>--file
</code> <em><filename
></em> can be used to tell the command to
501 write to that location (you can say
<code>--local
</code> but that is the
504 <div class=
"paragraph">
505 <p>This command will fail with non-zero status upon error. Some exit
511 <p>The section or key is invalid (ret=
1),
</p>
514 <p>no section or name was provided (ret=
2),
</p>
517 <p>the config file is invalid (ret=
3),
</p>
520 <p>the config file cannot be written (ret=
4),
</p>
523 <p>you try to unset an option which does not exist (ret=
5),
</p>
526 <p>you try to unset/set an option for which multiple lines match (ret=
5), or
</p>
529 <p>you try to use an invalid regexp (ret=
6).
</p>
533 <div class=
"paragraph">
534 <p>On success, the command returns the exit code
0.
</p>
536 <div class=
"paragraph">
537 <p>A list of all available configuration variables can be obtained using the
538 <code>git
</code> <code>help
</code> <code>--config
</code> command.
</p>
543 <h2 id=
"_commands">COMMANDS
</h2>
544 <div class=
"sectionbody">
547 <dt class=
"hdlist1">list
</dt>
549 <p>List all variables set in config file, along with their values.
</p>
551 <dt class=
"hdlist1">get
</dt>
553 <p>Emits the value of the specified key. If key is present multiple times
554 in the configuration, emits the last value. If
<code>--all
</code> is specified,
555 emits all values associated with key. Returns error code
1 if key is
558 <dt class=
"hdlist1">set
</dt>
560 <p>Set value for one or more config options. By default, this command
561 refuses to write multi-valued config options. Passing
<code>--all
</code> will
562 replace all multi-valued config options with the new value, whereas
563 <code>--value=
</code> will replace all config options whose values match the given
566 <dt class=
"hdlist1">unset
</dt>
568 <p>Unset value for one or more config options. By default, this command
569 refuses to unset multi-valued keys. Passing
<code>--all
</code> will unset all
570 multi-valued config options, whereas
<code>--value
</code> will unset all config
571 options whose values match the given pattern.
</p>
573 <dt class=
"hdlist1">rename-section
</dt>
575 <p>Rename the given section to a new name.
</p>
577 <dt class=
"hdlist1">remove-section
</dt>
579 <p>Remove the given section from the configuration file.
</p>
581 <dt class=
"hdlist1">edit
</dt>
583 <p>Opens an editor to modify the specified config file; either
584 <code>--system
</code>,
<code>--global
</code>,
<code>--local
</code> (default),
<code>--worktree
</code>, or
585 <code>--file
</code> <em><config-file
></em>.
</p>
592 <h2 id=
"OPTIONS">OPTIONS
</h2>
593 <div class=
"sectionbody">
596 <dt class=
"hdlist1">--replace-all
</dt>
598 <p>Default behavior is to replace at most one line. This replaces
599 all lines matching the key (and optionally the
<code>value-pattern
</code>).
</p>
601 <dt class=
"hdlist1">--append
</dt>
603 <p>Adds a new line to the option without altering any existing
604 values. This is the same as providing
<em>--value=^$
</em> in
<code>set
</code>.
</p>
606 <dt class=
"hdlist1">--comment
<message
></dt>
608 <p>Append a comment at the end of new or modified lines.
</p>
609 <div class=
"literalblock">
610 <div class=
"content">
611 <pre>If _
<message
>_ begins with one or more whitespaces followed
612 by
"#", it is used as-is. If it begins with
"#", a space is
613 prepended before it is used. Otherwise, a string
" # " (a
614 space followed by a hash followed by a space) is prepended
615 to it. And the resulting string is placed immediately after
616 the value defined for the variable. The _
<message
>_ must
617 not contain linefeed characters (no multi-line comments are
622 <dt class=
"hdlist1">--all
</dt>
624 <p>With
<code>get
</code>, return all values for a multi-valued key.
</p>
626 <dt class=
"hdlist1">--regexp
</dt>
628 <p>With
<code>get
</code>, interpret the name as a regular expression. Regular
629 expression matching is currently case-sensitive and done against a
630 canonicalized version of the key in which section and variable names
631 are lowercased, but subsection names are not.
</p>
633 <dt class=
"hdlist1">--url=
<URL
></dt>
635 <p>When given a two-part
<name
> as
<section
>.
<key
>, the value for
636 <section
>.
<URL
>.
<key
> whose
<URL
> part matches the best to the
637 given URL is returned (if no such key exists, the value for
638 <section
>.
<key
> is used as a fallback). When given just the
639 <section
> as name, do so for all the keys in the section and
640 list them. Returns error code
1 if no value is found.
</p>
642 <dt class=
"hdlist1">--global
</dt>
644 <p>For writing options: write to global
<code>~/.gitconfig
</code> file
645 rather than the repository .
<code>git/config
</code>, write to
646 <code>$XDG_CONFIG_HOME/git/config
</code> file if this file exists and the
647 <code>~/.gitconfig
</code> file doesn
’t.
</p>
648 <div class=
"paragraph">
649 <p>For reading options: read only from global
<code>~/.gitconfig
</code> and from
650 <code>$XDG_CONFIG_HOME/git/config
</code> rather than from all available files.
</p>
652 <div class=
"paragraph">
653 <p>See also
<a href=
"#FILES">FILES
</a>.
</p>
656 <dt class=
"hdlist1">--system
</dt>
658 <p>For writing options: write to system-wide
659 <code>$
</code>(
<code>prefix
</code>)
<code>/etc/gitconfig
</code> rather than the repository
660 .
<code>git/config
</code>.
</p>
661 <div class=
"paragraph">
662 <p>For reading options: read only from system-wide
<code>$
</code>(
<code>prefix
</code>)
<code>/etc/gitconfig
</code>
663 rather than from all available files.
</p>
665 <div class=
"paragraph">
666 <p>See also
<a href=
"#FILES">FILES
</a>.
</p>
669 <dt class=
"hdlist1">--local
</dt>
671 <p>For writing options: write to the repository .
<code>git/config
</code> file.
672 This is the default behavior.
</p>
673 <div class=
"paragraph">
674 <p>For reading options: read only from the repository .
<code>git/config
</code> rather than
675 from all available files.
</p>
677 <div class=
"paragraph">
678 <p>See also
<a href=
"#FILES">FILES
</a>.
</p>
681 <dt class=
"hdlist1">--worktree
</dt>
683 <p>Similar to
<code>--local
</code> except that
<code>$GIT_DIR/config.worktree
</code> is
684 read from or written to if
<code>extensions.worktreeConfig
</code> is
685 enabled. If not it
’s the same as
<code>--local
</code>. Note that
<code>$GIT_DIR
</code>
686 is equal to
<code>$GIT_COMMON_DIR
</code> for the main working tree, but is of
687 the form
<code>$GIT_DIR/worktrees/
</code><em><id
></em><code>/
</code> for other working trees. See
688 <a href=
"git-worktree.html">git-worktree(
1)
</a> to learn how to enable
689 <code>extensions.worktreeConfig
</code>.
</p>
691 <dt class=
"hdlist1">-f
<config-file
></dt>
692 <dt class=
"hdlist1">--file
<config-file
></dt>
694 <p>For writing options: write to the specified file rather than the
695 repository .
<code>git/config
</code>.
</p>
696 <div class=
"paragraph">
697 <p>For reading options: read only from the specified file rather than from all
700 <div class=
"paragraph">
701 <p>See also
<a href=
"#FILES">FILES
</a>.
</p>
704 <dt class=
"hdlist1">--blob
<blob
></dt>
706 <p>Similar to
<code>--file
</code> but use the given blob instead of a file. E.g.
707 you can use
<em>master:.gitmodules
</em> to read values from the file
708 <em>.gitmodules
</em> in the master branch. See
"SPECIFYING REVISIONS"
709 section in
<a href=
"gitrevisions.html">gitrevisions(
7)
</a> for a more complete list of
710 ways to spell blob names.
</p>
712 <dt class=
"hdlist1">--fixed-value
</dt>
714 <p>When used with the
<code>value-pattern
</code> argument, treat
<code>value-pattern
</code> as
715 an exact string instead of a regular expression. This will restrict
716 the name/value pairs that are matched to only those where the value
717 is exactly equal to the
<code>value-pattern
</code>.
</p>
719 <dt class=
"hdlist1">--type
<type
></dt>
721 <p><em>git config
</em> will ensure that any input or output is valid under the given
722 type constraint(s), and will canonicalize outgoing values in
<em><type
></em>'s
724 <div class=
"paragraph">
725 <p>Valid
<em><type
></em>'s include:
</p>
730 <p><em>bool
</em>: canonicalize values as either
"true" or
"false".
</p>
733 <p><em>int
</em>: canonicalize values as simple decimal numbers. An optional suffix of
734 <em>k
</em>,
<em>m
</em>, or
<em>g
</em> will cause the value to be multiplied by
1024,
1048576, or
735 1073741824 upon input.
</p>
738 <p><em>bool-or-int
</em>: canonicalize according to either
<em>bool
</em> or
<em>int
</em>, as described
742 <p><em>path
</em>: canonicalize by expanding a leading
<code>~
</code> to the value of
<code>$HOME
</code> and
743 <code>~user
</code> to the home directory for the specified user. This specifier has no
744 effect when setting the value (but you can use
<code>git
</code> <code>config
</code> <code>section.variable
</code>
745 <code>~/
</code> from the command line to let your shell do the expansion.)
</p>
748 <p><em>expiry-date
</em>: canonicalize by converting from a fixed or relative date-string
749 to a timestamp. This specifier has no effect when setting the value.
</p>
752 <p><em>color
</em>: When getting a value, canonicalize by converting to an ANSI color
753 escape sequence. When setting a value, a sanity-check is performed to ensure
754 that the given value is canonicalize-able as an ANSI color, but it is written
760 <dt class=
"hdlist1">--bool
</dt>
761 <dt class=
"hdlist1">--int
</dt>
762 <dt class=
"hdlist1">--bool-or-int
</dt>
763 <dt class=
"hdlist1">--path
</dt>
764 <dt class=
"hdlist1">--expiry-date
</dt>
766 <p>Historical options for selecting a type specifier. Prefer instead
<code>--type
</code>
769 <dt class=
"hdlist1">--no-type
</dt>
771 <p>Un-sets the previously set type specifier (if one was previously set). This
772 option requests that
<em>git config
</em> not canonicalize the retrieved variable.
773 <code>--no-type
</code> has no effect without
<code>--type=
</code><em><type
></em> or
<code>--
</code><em><type
></em>.
</p>
775 <dt class=
"hdlist1">-z
</dt>
776 <dt class=
"hdlist1">--null
</dt>
778 <p>For all options that output values and/or keys, always
779 end values with the null character (instead of a
780 newline). Use newline instead as a delimiter between
781 key and value. This allows for secure parsing of the
782 output without getting confused e.g. by values that
783 contain line breaks.
</p>
785 <dt class=
"hdlist1">--name-only
</dt>
787 <p>Output only the names of config variables for
<code>list
</code> or
788 <code>get
</code>.
</p>
790 <dt class=
"hdlist1">--show-origin
</dt>
792 <p>Augment the output of all queried config options with the
793 origin type (file, standard input, blob, command line) and
794 the actual origin (config file path, ref, or blob id if
797 <dt class=
"hdlist1">--show-scope
</dt>
799 <p>Similar to
<code>--show-origin
</code> in that it augments the output of
800 all queried config options with the scope of that value
801 (worktree, local, global, system, command).
</p>
803 <dt class=
"hdlist1">--get-colorbool
<name
> [
<stdout-is-tty
>]
</dt>
805 <p>Find the color setting for
<em><name
></em> (e.g.
<code>color.diff
</code>) and output
806 "true" or
"false".
<em><stdout-is-tty
></em> should be either
"true" or
807 "false", and is taken into account when configuration says
808 "auto". If
<em><stdout-is-tty
></em> is missing, then checks the standard
809 output of the command itself, and exits with status
0 if color
810 is to be used, or exits with status
1 otherwise.
811 When the color setting for
<code>name
</code> is undefined, the command uses
812 <code>color.ui
</code> as fallback.
</p>
814 <dt class=
"hdlist1">--[no-]includes
</dt>
816 <p>Respect
<code>include.
</code>* directives in config files when looking up
817 values. Defaults to
<code>off
</code> when a specific file is given (e.g.,
818 using
<code>--file
</code>,
<code>--global
</code>, etc) and
<code>on
</code> when searching all
821 <dt class=
"hdlist1">--default
<value
></dt>
823 <p>When using
<code>get
</code>, and the requested variable is not found, behave as if
824 <value
> were the value assigned to that variable.
</p>
831 <h2 id=
"_deprecated_modes">DEPRECATED MODES
</h2>
832 <div class=
"sectionbody">
833 <div class=
"paragraph">
834 <p>The following modes have been deprecated in favor of subcommands. It is
835 recommended to migrate to the new syntax.
</p>
839 <dt class=
"hdlist1"><em>git config
<name
></em></dt>
841 <p>Replaced by
<code>git
</code> <code>config
</code> <code>get
</code> <em><name
></em>.
</p>
843 <dt class=
"hdlist1"><em>git config
<name
> <value
> [
<value-pattern
>]
</em></dt>
845 <p>Replaced by
<code>git
</code> <code>config
</code> <code>set
</code> [
<code>--value=
</code><em><pattern
></em>]
<em><name
></em> <em><value
></em>.
</p>
847 <dt class=
"hdlist1">-l
</dt>
848 <dt class=
"hdlist1">--list
</dt>
850 <p>Replaced by
<code>git
</code> <code>config
</code> <code>list
</code>.
</p>
852 <dt class=
"hdlist1">--get
<name
> [
<value-pattern
>]
</dt>
854 <p>Replaced by
<code>git
</code> <code>config
</code> <code>get
</code> [
<code>--value=
</code><em><pattern
></em>]
<em><name
></em>.
</p>
856 <dt class=
"hdlist1">--get-all
<name
> [
<value-pattern
>]
</dt>
858 <p>Replaced by
<code>git
</code> <code>config
</code> <code>get
</code> [
<code>--value=
</code><em><pattern
></em>]
<code>--all
</code> <em><name
></em>.
</p>
860 <dt class=
"hdlist1">--get-regexp
<name-regexp
></dt>
862 <p>Replaced by
<code>git
</code> <code>config
</code> <code>get
</code> <code>--all
</code> <code>--show-names
</code> <code>--regexp
</code> <em><name-regexp
></em>.
</p>
864 <dt class=
"hdlist1">--get-urlmatch
<name
> <URL
></dt>
866 <p>Replaced by
<code>git
</code> <code>config
</code> <code>get
</code> <code>--all
</code> <code>--show-names
</code> <code>--url=
</code><em><URL
></em> <em><name
></em>.
</p>
868 <dt class=
"hdlist1">--get-color
<name
> [
<default
>]
</dt>
870 <p>Replaced by
<code>git
</code> <code>config
</code> <code>get
</code> <code>--type=color
</code> [
<code>--default=
</code><em><default
></em>]
<em><name
></em>.
</p>
872 <dt class=
"hdlist1">--add
<name
> <value
></dt>
874 <p>Replaced by
<code>git
</code> <code>config
</code> <code>set
</code> <code>--append
</code> <em><name
></em> <em><value
></em>.
</p>
876 <dt class=
"hdlist1">--unset
<name
> [
<value-pattern
>]
</dt>
878 <p>Replaced by
<code>git
</code> <code>config
</code> <code>unset
</code> [
<code>--value=
</code><em><pattern
></em>]
<em><name
></em>.
</p>
880 <dt class=
"hdlist1">--unset-all
<name
> [
<value-pattern
>]
</dt>
882 <p>Replaced by
<code>git
</code> <code>config
</code> <code>unset
</code> [
<code>--value=
</code><em><pattern
></em>]
<code>--all
</code> <em><name
></em>.
</p>
884 <dt class=
"hdlist1">--rename-section
<old-name
> <new-name
></dt>
886 <p>Replaced by
<code>git
</code> <code>config
</code> <code>rename-section
</code> <em><old-name
></em> <em><new-name
></em>.
</p>
888 <dt class=
"hdlist1">--remove-section
<name
></dt>
890 <p>Replaced by
<code>git
</code> <code>config
</code> <code>remove-section
</code> <em><name
></em>.
</p>
892 <dt class=
"hdlist1">-e
</dt>
893 <dt class=
"hdlist1">--edit
</dt>
895 <p>Replaced by
<code>git
</code> <code>config
</code> <code>edit
</code>.
</p>
902 <h2 id=
"_configuration">CONFIGURATION
</h2>
903 <div class=
"sectionbody">
904 <div class=
"paragraph">
905 <p><code>pager.config
</code> is only respected when listing configuration, i.e., when
906 using
<code>list
</code> or
<code>get
</code> which may return multiple results. The default is to use
912 <h2 id=
"FILES">FILES
</h2>
913 <div class=
"sectionbody">
914 <div class=
"paragraph">
915 <p>By default,
<em>git config
</em> will read configuration options from multiple
920 <dt class=
"hdlist1">$(prefix)/etc/gitconfig
</dt>
922 <p>System-wide configuration file.
</p>
924 <dt class=
"hdlist1">$XDG_CONFIG_HOME/git/config
</dt>
925 <dt class=
"hdlist1">~/.gitconfig
</dt>
927 <p>User-specific configuration files. When the XDG_CONFIG_HOME environment
928 variable is not set or empty, $HOME/.config/ is used as
929 $XDG_CONFIG_HOME.
</p>
930 <div class=
"paragraph">
931 <p>These are also called
"global" configuration files. If both files exist, both
932 files are read in the order given above.
</p>
935 <dt class=
"hdlist1">$GIT_DIR/config
</dt>
937 <p>Repository specific configuration file.
</p>
939 <dt class=
"hdlist1">$GIT_DIR/config.worktree
</dt>
941 <p>This is optional and is only searched when
942 <code>extensions.worktreeConfig
</code> is present in $GIT_DIR/config.
</p>
946 <div class=
"paragraph">
947 <p>You may also provide additional configuration parameters when running any
948 git command by using the
<code>-c
</code> option. See
<a href=
"git.html">git(
1)
</a> for details.
</p>
950 <div class=
"paragraph">
951 <p>Options will be read from all of these files that are available. If the
952 global or the system-wide configuration files are missing or unreadable they
953 will be ignored. If the repository configuration file is missing or unreadable,
954 <em>git config
</em> will exit with a non-zero error code. An error message is produced
955 if the file is unreadable, but not if it is missing.
</p>
957 <div class=
"paragraph">
958 <p>The files are read in the order given above, with last value found taking
959 precedence over values read earlier. When multiple values are taken then all
960 values of a key from all files will be used.
</p>
962 <div class=
"paragraph">
963 <p>By default, options are only written to the repository specific
964 configuration file. Note that this also affects options like
<code>set
</code>
965 and
<code>unset
</code>.
<strong><em>git config
</em> will only ever change one file at a time
</strong>.
</p>
967 <div class=
"paragraph">
968 <p>You can limit which configuration sources are read from or written to by
969 specifying the path of a file with the
<code>--file
</code> option, or by specifying a
970 configuration scope with
<code>--system
</code>,
<code>--global
</code>,
<code>--local
</code>, or
<code>--worktree
</code>.
971 For more, see
<a href=
"#OPTIONS">OPTIONS
</a> above.
</p>
976 <h2 id=
"SCOPES">SCOPES
</h2>
977 <div class=
"sectionbody">
978 <div class=
"paragraph">
979 <p>Each configuration source falls within a configuration scope. The scopes
984 <dt class=
"hdlist1">system
</dt>
986 <p>$(prefix)/etc/gitconfig
</p>
988 <dt class=
"hdlist1">global
</dt>
990 <p>$XDG_CONFIG_HOME/git/config
</p>
991 <div class=
"paragraph">
995 <dt class=
"hdlist1">local
</dt>
997 <p>$GIT_DIR/config
</p>
999 <dt class=
"hdlist1">worktree
</dt>
1001 <p>$GIT_DIR/config.worktree
</p>
1003 <dt class=
"hdlist1">command
</dt>
1005 <p>GIT_CONFIG_{COUNT,KEY,VALUE} environment variables (see
<a href=
"#ENVIRONMENT">ENVIRONMENT
</a>
1007 <div class=
"paragraph">
1008 <p>the
<code>-c
</code> option
</p>
1013 <div class=
"paragraph">
1014 <p>With the exception of
<em>command
</em>, each scope corresponds to a command line
1015 option:
<code>--system
</code>,
<code>--global
</code>,
<code>--local
</code>,
<code>--worktree
</code>.
</p>
1017 <div class=
"paragraph">
1018 <p>When reading options, specifying a scope will only read options from the
1019 files within that scope. When writing options, specifying a scope will write
1020 to the files within that scope (instead of the repository specific
1021 configuration file). See
<a href=
"#OPTIONS">OPTIONS
</a> above for a complete description.
</p>
1023 <div class=
"paragraph">
1024 <p>Most configuration options are respected regardless of the scope it is
1025 defined in, but some options are only respected in certain scopes. See the
1026 respective option
’s documentation for the full details.
</p>
1029 <h3 id=
"_protected_configuration">Protected configuration
</h3>
1030 <div class=
"paragraph">
1031 <p>Protected configuration refers to the
<em>system
</em>,
<em>global
</em>, and
<em>command
</em> scopes.
1032 For security reasons, certain options are only respected when they are
1033 specified in protected configuration, and ignored otherwise.
</p>
1035 <div class=
"paragraph">
1036 <p>Git treats these scopes as if they are controlled by the user or a trusted
1037 administrator. This is because an attacker who controls these scopes can do
1038 substantial harm without using Git, so it is assumed that the user
’s environment
1039 protects these scopes against attackers.
</p>
1045 <h2 id=
"ENVIRONMENT">ENVIRONMENT
</h2>
1046 <div class=
"sectionbody">
1049 <dt class=
"hdlist1">GIT_CONFIG_GLOBAL
</dt>
1050 <dt class=
"hdlist1">GIT_CONFIG_SYSTEM
</dt>
1052 <p>Take the configuration from the given files instead from global or
1053 system-level configuration. See
<a href=
"git.html">git(
1)
</a> for details.
</p>
1055 <dt class=
"hdlist1">GIT_CONFIG_NOSYSTEM
</dt>
1057 <p>Whether to skip reading settings from the system-wide
1058 $(prefix)/etc/gitconfig file. See
<a href=
"git.html">git(
1)
</a> for details.
</p>
1062 <div class=
"paragraph">
1063 <p>See also
<a href=
"#FILES">FILES
</a>.
</p>
1067 <dt class=
"hdlist1">GIT_CONFIG_COUNT
</dt>
1068 <dt class=
"hdlist1">GIT_CONFIG_KEY_
<n
></dt>
1069 <dt class=
"hdlist1">GIT_CONFIG_VALUE_
<n
></dt>
1071 <p>If GIT_CONFIG_COUNT is set to a positive number, all environment pairs
1072 GIT_CONFIG_KEY_
<n
> and GIT_CONFIG_VALUE_
<n
> up to that number will be
1073 added to the process
’s runtime configuration. The config pairs are
1074 zero-indexed. Any missing key or value is treated as an error. An empty
1075 GIT_CONFIG_COUNT is treated the same as GIT_CONFIG_COUNT=
0, namely no
1076 pairs are processed. These environment variables will override values
1077 in configuration files, but will be overridden by any explicit options
1078 passed via
<code>git
</code> <code>-c
</code>.
</p>
1079 <div class=
"paragraph">
1080 <p>This is useful for cases where you want to spawn multiple git commands
1081 with a common configuration but cannot depend on a configuration file,
1082 for example when writing scripts.
</p>
1085 <dt class=
"hdlist1">GIT_CONFIG
</dt>
1087 <p>If no
<code>--file
</code> option is provided to
<code>git
</code> <code>config
</code>, use the file
1088 given by
<code>GIT_CONFIG
</code> as if it were provided via
<code>--file
</code>. This
1089 variable has no effect on other Git commands, and is mostly for
1090 historical compatibility; there is generally no reason to use it
1091 instead of the
<code>--file
</code> option.
</p>
1098 <h2 id=
"EXAMPLES">EXAMPLES
</h2>
1099 <div class=
"sectionbody">
1100 <div class=
"paragraph">
1101 <p>Given a .git/config like this:
</p>
1103 <div class=
"listingblock">
1104 <div class=
"content">
1106 # This is the config file, and
1107 # a '#' or ';' character indicates
1113 ; Don't trust file modes
1116 ; Our diff algorithm
1118 external = /usr/local/bin/diff-wrapper
1123 gitproxy=proxy-command for kernel.org
1124 gitproxy=default-proxy ; for all the rest
1129 [http
"https://weak.example.com"]
1131 cookieFile = /tmp/cookie.txt
</pre>
1134 <div class=
"paragraph">
1135 <p>you can set the filemode to true with
</p>
1137 <div class=
"listingblock">
1138 <div class=
"content">
1139 <pre>% git config set core.filemode true
</pre>
1142 <div class=
"paragraph">
1143 <p>The hypothetical proxy command entries actually have a postfix to discern
1144 what URL they apply to. Here is how to change the entry for kernel.org
1147 <div class=
"listingblock">
1148 <div class=
"content">
1149 <pre>% git config set --value='for kernel.org$' core.gitproxy '
"ssh" for kernel.org'
</pre>
1152 <div class=
"paragraph">
1153 <p>This makes sure that only the key/value pair for kernel.org is replaced.
</p>
1155 <div class=
"paragraph">
1156 <p>To delete the entry for renames, do
</p>
1158 <div class=
"listingblock">
1159 <div class=
"content">
1160 <pre>% git config unset diff.renames
</pre>
1163 <div class=
"paragraph">
1164 <p>If you want to delete an entry for a multivar (like core.gitproxy above),
1165 you have to provide a regex matching the value of exactly one line.
</p>
1167 <div class=
"paragraph">
1168 <p>To query the value for a given key, do
</p>
1170 <div class=
"listingblock">
1171 <div class=
"content">
1172 <pre>% git config get core.filemode
</pre>
1175 <div class=
"paragraph">
1176 <p>or, to query a multivar:
</p>
1178 <div class=
"listingblock">
1179 <div class=
"content">
1180 <pre>% git config get
--value=
"for kernel.org$" core.gitproxy
</pre>
1183 <div class=
"paragraph">
1184 <p>If you want to know all the values for a multivar, do:
</p>
1186 <div class=
"listingblock">
1187 <div class=
"content">
1188 <pre>% git config get --all --show-names core.gitproxy
</pre>
1191 <div class=
"paragraph">
1192 <p>If you like to live dangerously, you can replace
<strong>all
</strong> core.gitproxy by a
1195 <div class=
"listingblock">
1196 <div class=
"content">
1197 <pre>% git config set --all core.gitproxy ssh
</pre>
1200 <div class=
"paragraph">
1201 <p>However, if you really only want to replace the line for the default proxy,
1202 i.e. the one without a
"for …​" postfix, do something like this:
</p>
1204 <div class=
"listingblock">
1205 <div class=
"content">
1206 <pre>% git config set --value='! for ' core.gitproxy ssh
</pre>
1209 <div class=
"paragraph">
1210 <p>To actually match only values with an exclamation mark, you have to
</p>
1212 <div class=
"listingblock">
1213 <div class=
"content">
1214 <pre>% git config set --value='[!]' section.key value
</pre>
1217 <div class=
"paragraph">
1218 <p>To add a new proxy, without altering any of the existing ones, use
</p>
1220 <div class=
"listingblock">
1221 <div class=
"content">
1222 <pre>% git config set --append core.gitproxy '
"proxy-command" for example.com'
</pre>
1225 <div class=
"paragraph">
1226 <p>An example to use customized color from the configuration in your
1229 <div class=
"listingblock">
1230 <div class=
"content">
1232 WS=$(git config get --type=color
--default=
"blue reverse" color.diff.whitespace)
1233 RESET=$(git config get --type=color
--default=
"reset" "")
1234 echo
"${WS}your whitespace color or blue reverse${RESET}"</pre>
1237 <div class=
"paragraph">
1238 <p>For URLs in
<code>https://weak.example.com
</code>,
<code>http.sslVerify
</code> is set to
1239 false, while it is set to
<code>true
</code> for all others:
</p>
1241 <div class=
"listingblock">
1242 <div class=
"content">
1243 <pre>% git config get --type=bool --url=https://good.example.com http.sslverify
1245 % git config get --type=bool --url=https://weak.example.com http.sslverify
1247 % git config get --url=https://weak.example.com http
1248 http.cookieFile /tmp/cookie.txt
1249 http.sslverify false
</pre>
1255 <h2 id=
"_configuration_file">CONFIGURATION FILE
</h2>
1256 <div class=
"sectionbody">
1257 <div class=
"paragraph">
1258 <p>The Git configuration file contains a number of variables that affect
1259 the Git commands' behavior. The files .
<code>git/config
</code> and optionally
1260 <code>config.worktree
</code> (see the
"CONFIGURATION FILE" section of
1261 <a href=
"git-worktree.html">git-worktree(
1)
</a>) in each repository are used to store the
1262 configuration for that repository, and
<code>$HOME/.gitconfig
</code> is used to
1263 store a per-user configuration as fallback values for the .
<code>git/config
</code>
1264 file. The file
<code>/etc/gitconfig
</code> can be used to store a system-wide
1265 default configuration.
</p>
1267 <div class=
"paragraph">
1268 <p>The configuration variables are used by both the Git plumbing
1269 and the porcelain commands. The variables are divided into sections, wherein
1270 the fully qualified variable name of the variable itself is the last
1271 dot-separated segment and the section name is everything before the last
1272 dot. The variable names are case-insensitive, allow only alphanumeric
1273 characters and
<code>-
</code>, and must start with an alphabetic character. Some
1274 variables may appear multiple times; we say then that the variable is
1278 <h3 id=
"_syntax">Syntax
</h3>
1279 <div class=
"paragraph">
1280 <p>The syntax is fairly flexible and permissive. Whitespace characters,
1281 which in this context are the space character (SP) and the horizontal
1282 tabulation (HT), are mostly ignored. The
<em>#
</em> and
<em>;
</em> characters begin
1283 comments to the end of line. Blank lines are ignored.
</p>
1285 <div class=
"paragraph">
1286 <p>The file consists of sections and variables. A section begins with
1287 the name of the section in square brackets and continues until the next
1288 section begins. Section names are case-insensitive. Only alphanumeric
1289 characters,
<code>-
</code> and . are allowed in section names. Each variable
1290 must belong to some section, which means that there must be a section
1291 header before the first setting of a variable.
</p>
1293 <div class=
"paragraph">
1294 <p>Sections can be further divided into subsections. To begin a subsection
1295 put its name in double quotes, separated by space from the section name,
1296 in the section header, like in the example below:
</p>
1298 <div class=
"listingblock">
1299 <div class=
"content">
1300 <pre> [section
"subsection"]
</pre>
1303 <div class=
"paragraph">
1304 <p>Subsection names are case sensitive and can contain any characters except
1305 newline and the null byte. Doublequote
" and backslash can be included
1306 by escaping them as \" and \\, respectively. Backslashes preceding
1307 other characters are dropped when reading; for example, \t is read as
1308 <code>t
</code> and \
0 is read as
<code>0</code>. Section headers cannot span multiple lines.
1309 Variables may belong directly to a section or to a given subsection. You
1310 can have [
<code>section
</code>] if you have [
<code>section
</code> "subsection"], but you don
’t
1313 <div class=
"paragraph">
1314 <p>There is also a deprecated [
<code>section.subsection
</code>] syntax. With this
1315 syntax, the subsection name is converted to lower-case and is also
1316 compared case sensitively. These subsection names follow the same
1317 restrictions as section names.
</p>
1319 <div class=
"paragraph">
1320 <p>All the other lines (and the remainder of the line after the section
1321 header) are recognized as setting variables, in the form
1322 <em>name = value
</em> (or just
<em>name
</em>, which is a short-hand to say that
1323 the variable is the boolean
"true").
1324 The variable names are case-insensitive, allow only alphanumeric characters
1325 and
<code>-
</code>, and must start with an alphabetic character.
</p>
1327 <div class=
"paragraph">
1328 <p>Whitespace characters surrounding
<code>name
</code>,
<code>=
</code> and
<code>value
</code> are discarded.
1329 Internal whitespace characters within
<em>value
</em> are retained verbatim.
1330 Comments starting with either # or ; and extending to the end of line
1331 are discarded. A line that defines a value can be continued to the next
1332 line by ending it with a backslash (\); the backslash and the end-of-line
1333 characters are discarded.
</p>
1335 <div class=
"paragraph">
1336 <p>If
<code>value
</code> needs to contain leading or trailing whitespace characters,
1337 it must be enclosed in double quotation marks (
"). Inside double quotation
1338 marks, double quote (") and backslash (\) characters must be escaped:
1339 use \
" for " and \\ for \.
</p>
1341 <div class=
"paragraph">
1342 <p>The following escape sequences (beside \
" and \\) are recognized:
1343 \n for newline character (NL), \t for horizontal tabulation (HT, TAB)
1344 and \b for backspace (BS). Other char escape sequences (including octal
1345 escape sequences) are invalid.</p>
1349 <h3 id="_includes
">Includes</h3>
1350 <div class="paragraph
">
1351 <p>The <code>include</code> and <code>includeIf</code> sections allow you to include config
1352 directives from another source. These sections behave identically to
1353 each other with the exception that <code>includeIf</code> sections may be ignored
1354 if their condition does not evaluate to true; see "Conditional includes
"
1357 <div class="paragraph
">
1358 <p>You can include a config file from another by setting the special
1359 <code>include.path</code> (or <code>includeIf.</code>*.<code>path</code>) variable to the name of the file
1360 to be included. The variable takes a pathname as its value, and is
1361 subject to tilde expansion. These variables can be given multiple times.</p>
1363 <div class="paragraph
">
1364 <p>The contents of the included file are inserted immediately, as if they
1365 had been found at the location of the include directive. If the value of the
1366 variable is a relative path, the path is considered to
1367 be relative to the configuration file in which the include directive
1368 was found. See below for examples.</p>
1372 <h3 id="_conditional_includes
">Conditional includes</h3>
1373 <div class="paragraph
">
1374 <p>You can conditionally include a config file from another by setting an
1375 <code>includeIf.</code><em><condition></em><code>.path</code> variable to the name of the file to be
1378 <div class="paragraph
">
1379 <p>The condition starts with a keyword followed by a colon and some data
1380 whose format and meaning depends on the keyword. Supported keywords
1385 <dt class="hdlist1
"><code>gitdir</code></dt>
1387 <p>The data that follows the keyword <code>gitdir:</code> is used as a glob
1388 pattern. If the location of the .git directory matches the
1389 pattern, the include condition is met.</p>
1390 <div class="paragraph
">
1391 <p>The .git location may be auto-discovered, or come from <code>$GIT_DIR</code>
1392 environment variable. If the repository is auto-discovered via a .git
1393 file (e.g. from submodules, or a linked worktree), the .git location
1394 would be the final location where the .git directory is, not where the
1397 <div class="paragraph
">
1398 <p>The pattern can contain standard globbing wildcards and two additional
1399 ones, **/ and <code>/</code>**, that can match multiple path components. Please
1400 refer to <a href="gitignore.html
">gitignore(5)</a> for details. For convenience:</p>
1405 <p>If the pattern starts with <code>~/</code>, <code>~</code> will be substituted with the
1406 content of the environment variable <code>HOME</code>.</p>
1409 <p>If the pattern starts with .<code>/</code>, it is replaced with the directory
1410 containing the current config file.</p>
1413 <p>If the pattern does not start with either <code>~/</code>, .<code>/</code> or <code>/</code>, **/
1414 will be automatically prepended. For example, the pattern <code>foo/bar</code>
1415 becomes **/foo/bar and would match <code>/any/path/to/foo/bar</code>.</p>
1418 <p>If the pattern ends with <code>/</code>, ** will be automatically added. For
1419 example, the pattern <code>foo/</code> becomes <code>foo/</code>**. In other words, it
1420 matches "foo
" and everything inside, recursively.</p>
1425 <dt class="hdlist1
"><code>gitdir/i</code></dt>
1427 <p>This is the same as <code>gitdir</code> except that matching is done
1428 case-insensitively (e.g. on case-insensitive file systems)</p>
1430 <dt class="hdlist1
"><code>onbranch</code></dt>
1432 <p>The data that follows the keyword <code>onbranch:</code> is taken to be a
1433 pattern with standard globbing wildcards and two additional
1434 ones, **/ and <code>/</code>**, that can match multiple path components.
1435 If we are in a worktree where the name of the branch that is
1436 currently checked out matches the pattern, the include condition
1438 <div class="paragraph
">
1439 <p>If the pattern ends with <code>/</code>, ** will be automatically added. For
1440 example, the pattern <code>foo/</code> becomes <code>foo/</code>**. In other words, it matches
1441 all branches that begin with <code>foo/</code>. This is useful if your branches are
1442 organized hierarchically and you would like to apply a configuration to
1443 all the branches in that hierarchy.</p>
1446 <dt class="hdlist1
"><code>hasconfig:remote.</code>*.<code>url:</code></dt>
1448 <p>The data that follows this keyword is taken to
1449 be a pattern with standard globbing wildcards and two
1450 additional ones, **/ and <code>/</code>**, that can match multiple
1451 components. The first time this keyword is seen, the rest of
1452 the config files will be scanned for remote URLs (without
1453 applying any values). If there exists at least one remote URL
1454 that matches this pattern, the include condition is met.</p>
1455 <div class="paragraph
">
1456 <p>Files included by this option (directly or indirectly) are not allowed
1457 to contain remote URLs.</p>
1459 <div class="paragraph
">
1460 <p>Note that unlike other includeIf conditions, resolving this condition
1461 relies on information that is not yet known at the point of reading the
1462 condition. A typical use case is this option being present as a
1463 system-level or global-level config, and the remote URL being in a
1464 local-level config; hence the need to scan ahead when resolving this
1465 condition. In order to avoid the chicken-and-egg problem in which
1466 potentially-included files can affect whether such files are potentially
1467 included, Git breaks the cycle by prohibiting these files from affecting
1468 the resolution of these conditions (thus, prohibiting them from
1469 declaring remote URLs).</p>
1471 <div class="paragraph
">
1472 <p>As for the naming of this keyword, it is for forwards compatibility with
1473 a naming scheme that supports more variable-based include conditions,
1474 but currently Git only supports the exact keyword described above.</p>
1479 <div class="paragraph
">
1480 <p>A few more notes on matching via <code>gitdir</code> and <code>gitdir/i</code>:</p>
1485 <p>Symlinks in <code>$GIT_DIR</code> are not resolved before matching.</p>
1488 <p>Both the symlink & realpath versions of paths will be matched
1489 outside of <code>$GIT_DIR</code>. E.g. if ~/git is a symlink to
1490 /mnt/storage/git, both <code>gitdir:~/git</code> and <code>gitdir:/mnt/storage/git</code>
1492 <div class="paragraph
">
1493 <p>This was not the case in the initial release of this feature in
1494 v2.13.0, which only matched the realpath version. Configuration that
1495 wants to be compatible with the initial release of this feature needs
1496 to either specify only the realpath version, or both versions.</p>
1500 <p>Note that "../
" is not special and will match literally, which is
1501 unlikely what you want.</p>
1507 <h3 id="_example
">Example</h3>
1508 <div class="listingblock
">
1509 <div class="content
">
1510 <pre># Core variables
1512 ; Don't trust file modes
1515 # Our diff algorithm
1517 external = /usr/local/bin/diff-wrapper
1522 merge = refs/heads/devel
1526 gitProxy="ssh
" for "kernel.org
"
1527 gitProxy=default-proxy ; for the rest
1530 path = /path/to/foo.inc ; include by absolute path
1531 path = foo.inc ; find "foo.inc
" relative to the current file
1532 path = ~/foo.inc ; find "foo.inc
" in your `$HOME` directory
1534 ; include if $GIT_DIR is /path/to/foo/.git
1535 [includeIf "gitdir:/path/to/foo/.git
"]
1536 path = /path/to/foo.inc
1538 ; include for all repositories inside /path/to/group
1539 [includeIf "gitdir:/path/to/group/
"]
1540 path = /path/to/foo.inc
1542 ; include for all repositories inside $HOME/to/group
1543 [includeIf "gitdir:~/to/group/
"]
1544 path = /path/to/foo.inc
1546 ; relative paths are always relative to the including
1547 ; file (if the condition is true); their location is not
1548 ; affected by the condition
1549 [includeIf "gitdir:/path/to/group/
"]
1552 ; include only if we are in a worktree where foo-branch is
1553 ; currently checked out
1554 [includeIf "onbranch:foo-branch
"]
1557 ; include only if a remote with the given URL exists (note
1558 ; that such a URL may be provided later in a file or in a
1559 ; file read after this file is read, as seen in this example)
1560 [includeIf "hasconfig:remote.*.url:https://example.com/**
"]
1563 url = https://example.com/git</pre>
1568 <h3 id="_values
">Values</h3>
1569 <div class="paragraph
">
1570 <p>Values of many variables are treated as a simple string, but there
1571 are variables that take values of specific types and there are rules
1572 as to how to spell them.</p>
1576 <dt class="hdlist1
">boolean</dt>
1578 <p>When a variable is said to take a boolean value, many
1579 synonyms are accepted for <em>true</em> and <em>false</em>; these are all
1580 case-insensitive.</p>
1583 <dt class="hdlist1
">true</dt>
1585 <p>Boolean true literals are <code>yes</code>, <code>on</code>, <code>true</code>,
1586 and <code>1</code>. Also, a variable defined without <code>=</code> <em><value></em>
1587 is taken as true.</p>
1589 <dt class="hdlist1
">false</dt>
1591 <p>Boolean false literals are <code>no</code>, <code>off</code>, <code>false</code>,
1592 <code>0</code> and the empty string.</p>
1593 <div class="paragraph
">
1594 <p>When converting a value to its canonical form using the <code>--type=bool</code> type
1595 specifier, <em>git config</em> will ensure that the output is "true
" or
1596 "false
" (spelled in lowercase).</p>
1602 <dt class="hdlist1
">integer</dt>
1604 <p>The value for many variables that specify various sizes can
1605 be suffixed with <code>k</code>, <code>M</code>,…​ to mean "scale the number by
1606 1024", "by
1024x1024
", etc.</p>
1608 <dt class="hdlist1
">color</dt>
1610 <p>The value for a variable that takes a color is a list of
1611 colors (at most two, one for foreground and one for background)
1612 and attributes (as many as you want), separated by spaces.</p>
1613 <div class="paragraph
">
1614 <p>The basic colors accepted are <code>normal</code>, <code>black</code>, <code>red</code>, <code>green</code>,
1615 <code>yellow</code>, <code>blue</code>, <code>magenta</code>, <code>cyan</code>, <code>white</code> and <code>default</code>. The first
1616 color given is the foreground; the second is the background. All the
1617 basic colors except <code>normal</code> and <code>default</code> have a bright variant that can
1618 be specified by prefixing the color with <code>bright</code>, like <code>brightred</code>.</p>
1620 <div class="paragraph
">
1621 <p>The color <code>normal</code> makes no change to the color. It is the same as an
1622 empty string, but can be used as the foreground color when specifying a
1623 background color alone (for example, "normal red
").</p>
1625 <div class="paragraph
">
1626 <p>The color <code>default</code> explicitly resets the color to the terminal default,
1627 for example to specify a cleared background. Although it varies between
1628 terminals, this is usually not the same as setting to "white black
".</p>
1630 <div class="paragraph
">
1631 <p>Colors may also be given as numbers between 0 and 255; these use ANSI
1632 256-color mode (but note that not all terminals may support this). If
1633 your terminal supports it, you may also specify 24-bit RGB values as
1634 hex, like #ff0ab3, or 12-bit RGB values like #f1b, which is
1635 equivalent to the 24-bit color #ff11bb.</p>
1637 <div class="paragraph
">
1638 <p>The accepted attributes are <code>bold</code>, <code>dim</code>, <code>ul</code>, <code>blink</code>, <code>reverse</code>,
1639 <code>italic</code>, and <code>strike</code> (for crossed-out or "strikethrough
" letters).
1640 The position of any attributes with respect to the colors
1641 (before, after, or in between), doesn’t matter. Specific attributes may
1642 be turned off by prefixing them with <code>no</code> or <code>no-</code> (e.g., <code>noreverse</code>,
1643 <code>no-ul</code>, etc).</p>
1645 <div class="paragraph
">
1646 <p>The pseudo-attribute <code>reset</code> resets all colors and attributes before
1647 applying the specified coloring. For example, <code>reset</code> <code>green</code> will result
1648 in a green foreground and default background without any active
1651 <div class="paragraph
">
1652 <p>An empty color string produces no color effect at all. This can be used
1653 to avoid coloring specific elements without disabling color entirely.</p>
1655 <div class="paragraph
">
1656 <p>For git’s pre-defined color slots, the attributes are meant to be reset
1657 at the beginning of each item in the colored output. So setting
1658 <code>color.decorate.branch</code> to <code>black</code> will paint that branch name in a
1659 plain <code>black</code>, even if the previous thing on the same output line (e.g.
1660 opening parenthesis before the list of branch names in <code>log</code> <code>--decorate</code>
1661 output) is set to be painted with <code>bold</code> or some other attribute.
1662 However, custom log formats may do more complicated and layered
1663 coloring, and the negated forms may be useful there.</p>
1666 <dt class="hdlist1
">pathname</dt>
1668 <p>A variable that takes a pathname value can be given a
1669 string that begins with "<code>~/
</code>" or "<code>~user/
</code>", and the usual
1670 tilde expansion happens to such a string: <code>~/</code>
1671 is expanded to the value of <code>$HOME</code>, and <code>~user/</code> to the
1672 specified user’s home directory.</p>
1673 <div class="paragraph
">
1674 <p>If a path starts with %(<code>prefix</code>)<code>/</code>, the remainder is interpreted as a
1675 path relative to Git’s "runtime prefix
", i.e. relative to the location
1676 where Git itself was installed. For example, %(<code>prefix</code>)<code>/bin/</code> refers to
1677 the directory in which the Git executable itself lives. If Git was
1678 compiled without runtime prefix support, the compiled-in prefix will be
1679 substituted instead. In the unlikely event that a literal path needs to
1680 be specified that should <em>not</em> be expanded, it needs to be prefixed by
1681 .<code>/</code>, like so: .<code>/</code>%(<code>prefix</code>)<code>/bin</code>.</p>
1688 <h3 id="_variables
">Variables</h3>
1689 <div class="paragraph
">
1690 <p>Note that this list is non-comprehensive and not necessarily complete.
1691 For command-specific variables, you will find a more detailed description
1692 in the appropriate manual page.</p>
1694 <div class="paragraph
">
1695 <p>Other git-related tools may and do use their own variables. When
1696 inventing new variables for use in your own tool, make sure their
1697 names do not conflict with those that are used by Git itself and
1698 other popular tools, and describe them in your documentation.</p>
1702 <dt class="hdlist1
"><code>add.ignoreErrors</code></dt>
1703 <dt class="hdlist1
"><code>add.ignore-errors</code> (deprecated)</dt>
1705 <p>Tells <code>git</code> <code>add</code> to continue adding files when some files cannot be
1706 added due to indexing errors.
1707 Equivalent to the <code>--ignore-errors</code> option of <a href="git-add.html
">git-add(1)</a>.
1708 <code>add.ignore-errors</code> is deprecated, as it does not follow the usual
1709 naming convention for configuration variables.</p>
1711 <dt class="hdlist1
">advice.*</dt>
1713 <p>These variables control various optional help messages designed to
1714 aid new users. When left unconfigured, Git will give the message
1715 alongside instructions on how to squelch it. You can tell Git
1716 that you have understood the issue and no longer need a specific
1717 help message by setting the corresponding variable to <code>false</code>.</p>
1718 <div class="paragraph
">
1719 <p>As they are intended to help human users, these messages are output to
1720 the standard error. When tools that run Git as a subprocess find them
1721 disruptive, they can set <code>GIT_ADVICE=0</code> in the environment to squelch
1722 all advice messages.</p>
1724 <div class="openblock
">
1725 <div class="content
">
1728 <dt class="hdlist1
">addEmbeddedRepo</dt>
1730 <p>Shown when the user accidentally adds one
1731 git repo inside of another.</p>
1733 <dt class="hdlist1
">addEmptyPathspec</dt>
1735 <p>Shown when the user runs <code>git</code> <code>add</code> without providing
1736 the pathspec parameter.</p>
1738 <dt class="hdlist1
">addIgnoredFile</dt>
1740 <p>Shown when the user attempts to add an ignored file to
1743 <dt class="hdlist1
">amWorkDir</dt>
1745 <p>Shown when <a href="git-am.html
">git-am(1)</a> fails to apply a patch
1746 file, to tell the user the location of the file.</p>
1748 <dt class="hdlist1
">ambiguousFetchRefspec</dt>
1750 <p>Shown when a fetch refspec for multiple remotes maps to
1751 the same remote-tracking branch namespace and causes branch
1752 tracking set-up to fail.</p>
1754 <dt class="hdlist1
">checkoutAmbiguousRemoteBranchName</dt>
1756 <p>Shown when the argument to
1757 <a href="git-checkout.html
">git-checkout(1)</a> and <a href="git-switch.html
">git-switch(1)</a>
1758 ambiguously resolves to a
1759 remote tracking branch on more than one remote in
1760 situations where an unambiguous argument would have
1761 otherwise caused a remote-tracking branch to be
1762 checked out. See the <code>checkout.defaultRemote</code>
1763 configuration variable for how to set a given remote
1764 to be used by default in some situations where this
1765 advice would be printed.</p>
1767 <dt class="hdlist1
">commitBeforeMerge</dt>
1769 <p>Shown when <a href="git-merge.html
">git-merge(1)</a> refuses to
1770 merge to avoid overwriting local changes.</p>
1772 <dt class="hdlist1
">detachedHead</dt>
1774 <p>Shown when the user uses
1775 <a href="git-switch.html
">git-switch(1)</a> or <a href="git-checkout.html
">git-checkout(1)</a>
1776 to move to the detached HEAD state, to tell the user how
1777 to create a local branch after the fact.</p>
1779 <dt class="hdlist1
">diverging</dt>
1781 <p>Shown when a fast-forward is not possible.</p>
1783 <dt class="hdlist1
">fetchShowForcedUpdates</dt>
1785 <p>Shown when <a href="git-fetch.html
">git-fetch(1)</a> takes a long time
1786 to calculate forced updates after ref updates, or to warn
1787 that the check is disabled.</p>
1789 <dt class="hdlist1
">forceDeleteBranch</dt>
1791 <p>Shown when the user tries to delete a not fully merged
1792 branch without the force option set.</p>
1794 <dt class="hdlist1
">ignoredHook</dt>
1796 <p>Shown when a hook is ignored because the hook is not
1797 set as executable.</p>
1799 <dt class="hdlist1
">implicitIdentity</dt>
1801 <p>Shown when the user’s information is guessed from the
1802 system username and domain name, to tell the user how to
1803 set their identity configuration.</p>
1805 <dt class="hdlist1
">mergeConflict</dt>
1807 <p>Shown when various commands stop because of conflicts.</p>
1809 <dt class="hdlist1
">nestedTag</dt>
1811 <p>Shown when a user attempts to recursively tag a tag object.</p>
1813 <dt class="hdlist1
">pushAlreadyExists</dt>
1815 <p>Shown when <a href="git-push.html
">git-push(1)</a> rejects an update that
1816 does not qualify for fast-forwarding (e.g., a tag.)</p>
1818 <dt class="hdlist1
">pushFetchFirst</dt>
1820 <p>Shown when <a href="git-push.html
">git-push(1)</a> rejects an update that
1821 tries to overwrite a remote ref that points at an
1822 object we do not have.</p>
1824 <dt class="hdlist1
">pushNeedsForce</dt>
1826 <p>Shown when <a href="git-push.html
">git-push(1)</a> rejects an update that
1827 tries to overwrite a remote ref that points at an
1828 object that is not a commit-ish, or make the remote
1829 ref point at an object that is not a commit-ish.</p>
1831 <dt class="hdlist1
">pushNonFFCurrent</dt>
1833 <p>Shown when <a href="git-push.html
">git-push(1)</a> fails due to a
1834 non-fast-forward update to the current branch.</p>
1836 <dt class="hdlist1
">pushNonFFMatching</dt>
1838 <p>Shown when the user ran <a href="git-push.html
">git-push(1)</a> and pushed
1839 "matching refs
" explicitly (i.e. used <code>:</code>, or
1840 specified a refspec that isn’t the current branch) and
1841 it resulted in a non-fast-forward error.</p>
1843 <dt class="hdlist1
">pushRefNeedsUpdate</dt>
1845 <p>Shown when <a href="git-push.html
">git-push(1)</a> rejects a forced update of
1846 a branch when its remote-tracking ref has updates that we
1847 do not have locally.</p>
1849 <dt class="hdlist1
">pushUnqualifiedRefname</dt>
1851 <p>Shown when <a href="git-push.html
">git-push(1)</a> gives up trying to
1852 guess based on the source and destination refs what
1853 remote ref namespace the source belongs in, but where
1854 we can still suggest that the user push to either
1855 <code>refs/heads/</code>* or <code>refs/tags/</code>* based on the type of the
1858 <dt class="hdlist1
">pushUpdateRejected</dt>
1860 <p>Set this variable to <code>false</code> if you want to disable
1861 <code>pushNonFFCurrent</code>, <code>pushNonFFMatching</code>, <code>pushAlreadyExists</code>,
1862 <code>pushFetchFirst</code>, <code>pushNeedsForce</code>, and <code>pushRefNeedsUpdate</code>
1865 <dt class="hdlist1
">rebaseTodoError</dt>
1867 <p>Shown when there is an error after editing the rebase todo list.</p>
1869 <dt class="hdlist1
">refSyntax</dt>
1871 <p>Shown when the user provides an illegal ref name, to
1872 tell the user about the ref syntax documentation.</p>
1874 <dt class="hdlist1
">resetNoRefresh</dt>
1876 <p>Shown when <a href="git-reset.html
">git-reset(1)</a> takes more than 2
1877 seconds to refresh the index after reset, to tell the user
1878 that they can use the <code>--no-refresh</code> option.</p>
1880 <dt class="hdlist1
">resolveConflict</dt>
1882 <p>Shown by various commands when conflicts
1883 prevent the operation from being performed.</p>
1885 <dt class="hdlist1
">rmHints</dt>
1887 <p>Shown on failure in the output of <a href="git-rm.html
">git-rm(1)</a>, to
1888 give directions on how to proceed from the current state.</p>
1890 <dt class="hdlist1
">sequencerInUse</dt>
1892 <p>Shown when a sequencer command is already in progress.</p>
1894 <dt class="hdlist1
">skippedCherryPicks</dt>
1896 <p>Shown when <a href="git-rebase.html
">git-rebase(1)</a> skips a commit that has already
1897 been cherry-picked onto the upstream branch.</p>
1899 <dt class="hdlist1
">sparseIndexExpanded</dt>
1901 <p>Shown when a sparse index is expanded to a full index, which is likely
1902 due to an unexpected set of files existing outside of the
1903 sparse-checkout.</p>
1905 <dt class="hdlist1
">statusAheadBehind</dt>
1907 <p>Shown when <a href="git-status.html
">git-status(1)</a> computes the ahead/behind
1908 counts for a local ref compared to its remote tracking ref,
1909 and that calculation takes longer than expected. Will not
1910 appear if <code>status.aheadBehind</code> is false or the option
1911 <code>--no-ahead-behind</code> is given.</p>
1913 <dt class="hdlist1
">statusHints</dt>
1915 <p>Show directions on how to proceed from the current
1916 state in the output of <a href="git-status.html
">git-status(1)</a>, in
1917 the template shown when writing commit messages in
1918 <a href="git-commit.html
">git-commit(1)</a>, and in the help message shown
1919 by <a href="git-switch.html
">git-switch(1)</a> or
1920 <a href="git-checkout.html
">git-checkout(1)</a> when switching branches.</p>
1922 <dt class="hdlist1
">statusUoption</dt>
1924 <p>Shown when <a href="git-status.html
">git-status(1)</a> takes more than 2
1925 seconds to enumerate untracked files, to tell the user that
1926 they can use the <code>-u</code> option.</p>
1928 <dt class="hdlist1
">submoduleAlternateErrorStrategyDie</dt>
1930 <p>Shown when a submodule.alternateErrorStrategy option
1931 configured to "die
" causes a fatal error.</p>
1933 <dt class="hdlist1
">submoduleMergeConflict</dt>
1935 <p>Advice shown when a non-trivial submodule merge conflict is
1938 <dt class="hdlist1
">submodulesNotUpdated</dt>
1940 <p>Shown when a user runs a submodule command that fails
1941 because <code>git</code> <code>submodule</code> <code>update</code> <code>--init</code> was not run.</p>
1943 <dt class="hdlist1
">suggestDetachingHead</dt>
1945 <p>Shown when <a href="git-switch.html
">git-switch(1)</a> refuses to detach HEAD
1946 without the explicit <code>--detach</code> option.</p>
1948 <dt class="hdlist1
">updateSparsePath</dt>
1950 <p>Shown when either <a href="git-add.html
">git-add(1)</a> or <a href="git-rm.html
">git-rm(1)</a>
1951 is asked to update index entries outside the current sparse
1954 <dt class="hdlist1
">waitingForEditor</dt>
1956 <p>Shown when Git is waiting for editor input. Relevant
1957 when e.g. the editor is not launched inside the terminal.</p>
1959 <dt class="hdlist1
">worktreeAddOrphan</dt>
1961 <p>Shown when the user tries to create a worktree from an
1962 invalid reference, to tell the user how to create a new unborn
1970 <dt class="hdlist1
">alias.*</dt>
1972 <p>Command aliases for the <a href="git.html
">git(1)</a> command wrapper - e.g.
1973 after defining <code>alias.last</code> <code>=</code> <code>cat-file</code> <code>commit</code> <code>HEAD</code>, the invocation
1974 <code>git</code> <code>last</code> is equivalent to <code>git</code> <code>cat-file</code> <code>commit</code> <code>HEAD</code>. To avoid
1975 confusion and troubles with script usage, aliases that
1976 hide existing Git commands are ignored. Arguments are split by
1977 spaces, the usual shell quoting and escaping are supported.
1978 A quote pair or a backslash can be used to quote them.</p>
1979 <div class="paragraph
">
1980 <p>Note that the first word of an alias does not necessarily have to be a
1981 command. It can be a command-line option that will be passed into the
1982 invocation of <code>git</code>. In particular, this is useful when used with <code>-c</code>
1983 to pass in one-time configurations or <code>-p</code> to force pagination. For example,
1984 <code>loud-rebase</code> <code>=</code> <code>-c</code> <code>commit.verbose=true</code> <code>rebase</code> can be defined such that
1985 running <code>git</code> <code>loud-rebase</code> would be equivalent to
1986 <code>git</code> <code>-c</code> <code>commit.verbose=true</code> <code>rebase</code>. Also, <code>ps</code> <code>=</code> <code>-p</code> <code>status</code> would be a
1987 helpful alias since <code>git</code> <code>ps</code> would paginate the output of <code>git</code> <code>status</code>
1988 where the original command does not.</p>
1990 <div class="paragraph
">
1991 <p>If the alias expansion is prefixed with an exclamation point,
1992 it will be treated as a shell command. For example, defining
1993 <code>alias.new</code> <code>=</code> !gitk <code>--all</code> <code>--not</code> <code>ORIG_HEAD</code>, the invocation
1994 <code>git</code> <code>new</code> is equivalent to running the shell command
1995 <code>gitk</code> <code>--all</code> <code>--not</code> <code>ORIG_HEAD</code>. Note:</p>
2000 <p>Shell commands will be executed from the top-level directory of a
2001 repository, which may not necessarily be the current directory.</p>
2004 <p><code>GIT_PREFIX</code> is set as returned by running <code>git</code> <code>rev-parse</code> <code>--show-prefix</code>
2005 from the original current directory. See <a href="git-rev-parse.html
">git-rev-parse(1)</a>.</p>
2008 <p>Shell command aliases always receive any extra arguments provided to
2009 the Git command-line as positional arguments.</p>
2013 <p>Care should be taken if your shell alias is a "one-liner
" script
2014 with multiple commands (e.g. in a pipeline), references multiple
2015 arguments, or is otherwise not able to handle positional arguments
2016 added at the end. For example: <code>alias.cmd</code> <code>=</code> "!echo
<code>$
1</code> |
<code>grep
</code> <code>$
2</code>"
2017 called as <code>git</code> <code>cmd</code> <code>1</code> <code>2</code> will be executed as <em>echo $1 | grep $2
2018 1 2</em>, which is not what you want.</p>
2021 <p>A convenient way to deal with this is to write your script
2022 operations in an inline function that is then called with any
2023 arguments from the command-line. For example `alias.cmd = "!c() {
2024 echo $
1 | grep $
2 ; }; c
" will correctly execute the prior example.</p>
2027 <p>Setting <code>GIT_TRACE=1</code> can help you debug the command being run for
2036 <dt class="hdlist1
">am.keepcr</dt>
2038 <p>If true, git-am will call git-mailsplit for patches in mbox format
2039 with parameter <code>--keep-cr</code>. In this case git-mailsplit will
2040 not remove \r from lines ending with \r\n. Can be overridden
2041 by giving <code>--no-keep-cr</code> from the command line.
2042 See <a href="git-am.html
">git-am(1)</a>, <a href="git-mailsplit.html
">git-mailsplit(1)</a>.</p>
2044 <dt class="hdlist1
">am.threeWay</dt>
2046 <p>By default, <code>git</code> <code>am</code> will fail if the patch does not apply cleanly. When
2047 set to true, this setting tells <code>git</code> <code>am</code> to fall back on 3-way merge if
2048 the patch records the identity of blobs it is supposed to apply to and
2049 we have those blobs available locally (equivalent to giving the <code>--3way</code>
2050 option from the command line). Defaults to <code>false</code>.
2051 See <a href="git-am.html
">git-am(1)</a>.</p>
2053 <dt class="hdlist1
">apply.ignoreWhitespace</dt>
2055 <p>When set to <em>change</em>, tells <em>git apply</em> to ignore changes in
2056 whitespace, in the same way as the <code>--ignore-space-change</code>
2058 When set to one of: no, none, never, false, it tells <em>git apply</em> to
2059 respect all whitespace differences.
2060 See <a href="git-apply.html
">git-apply(1)</a>.</p>
2062 <dt class="hdlist1
">apply.whitespace</dt>
2064 <p>Tells <em>git apply</em> how to handle whitespace, in the same way
2065 as the <code>--whitespace</code> option. See <a href="git-apply.html
">git-apply(1)</a>.</p>
2067 <dt class="hdlist1
">attr.tree</dt>
2069 <p>A reference to a tree in the repository from which to read attributes,
2070 instead of the .<code>gitattributes</code> file in the working tree. If the value
2071 does not resolve to a valid tree object, an empty tree is used instead.
2072 When the <code>GIT_ATTR_SOURCE</code> environment variable or <code>--attr-source</code>
2073 command line option are used, this configuration variable has no effect.</p>
2077 <div class="admonitionblock note
">
2081 <div class="title
">Note</div>
2083 <td class="content
">
2084 The configuration options in <code>bitmapPseudoMerge.</code>* are considered
2085 EXPERIMENTAL and may be subject to change or be removed entirely in the
2086 future. For more information about the pseudo-merge bitmap feature, see
2087 the "Pseudo-merge bitmaps
" section of <a href="gitpacking.html
">gitpacking(7)</a>.
2094 <dt class="hdlist1
">bitmapPseudoMerge.<name>.pattern</dt>
2096 <p>Regular expression used to match reference names. Commits
2097 pointed to by references matching this pattern (and meeting
2098 the below criteria, like <code>bitmapPseudoMerge.</code><em><name></em><code>.sampleRate</code>
2099 and <code>bitmapPseudoMerge.</code><em><name></em><code>.threshold</code>) will be considered
2100 for inclusion in a pseudo-merge bitmap.</p>
2101 <div class="paragraph
">
2102 <p>Commits are grouped into pseudo-merge groups based on whether or not
2103 any reference(s) that point at a given commit match the pattern, which
2104 is an extended regular expression.</p>
2106 <div class="paragraph
">
2107 <p>Within a pseudo-merge group, commits may be further grouped into
2108 sub-groups based on the capture groups in the pattern. These
2109 sub-groupings are formed from the regular expressions by concatenating
2110 any capture groups from the regular expression, with a <em>-</em> dash in
2113 <div class="paragraph
">
2114 <p>For example, if the pattern is <code>refs/tags/</code>, then all tags (provided
2115 they meet the below criteria) will be considered candidates for the
2116 same pseudo-merge group. However, if the pattern is instead
2117 <code>refs/remotes/</code>([<code>0-9</code>])<code>+/tags/</code>, then tags from different remotes will
2118 be grouped into separate pseudo-merge groups, based on the remote
2122 <dt class="hdlist1
">bitmapPseudoMerge.<name>.decay</dt>
2124 <p>Determines the rate at which consecutive pseudo-merge bitmap
2125 groups decrease in size. Must be non-negative. This parameter
2126 can be thought of as <code>k</code> in the function <code>f</code>(<code>n</code>) <code>=</code> <code>C</code> * <code>n^-k</code>,
2127 where <code>f</code>(<code>n</code>) is the size of the `n`th group.</p>
2128 <div class="paragraph
">
2129 <p>Setting the decay rate equal to <code>0</code> will cause all groups to be the
2130 same size. Setting the decay rate equal to <code>1</code> will cause the <code>n</code>`th
2131 <code>group</code> <code>to</code> <code>be</code> `1/n the size of the initial group. Higher values of the
2132 decay rate cause consecutive groups to shrink at an increasing rate.
2133 The default is <code>1</code>.</p>
2135 <div class="paragraph
">
2136 <p>If all groups are the same size, it is possible that groups containing
2137 newer commits will be able to be used less often than earlier groups,
2138 since it is more likely that the references pointing at newer commits
2139 will be updated more often than a reference pointing at an old commit.</p>
2142 <dt class="hdlist1
">bitmapPseudoMerge.<name>.sampleRate</dt>
2144 <p>Determines the proportion of non-bitmapped commits (among
2145 reference tips) which are selected for inclusion in an
2146 unstable pseudo-merge bitmap. Must be between <code>0</code> and <code>1</code>
2147 (inclusive). The default is <code>1</code>.</p>
2149 <dt class="hdlist1
">bitmapPseudoMerge.<name>.threshold</dt>
2151 <p>Determines the minimum age of non-bitmapped commits (among
2152 reference tips, as above) which are candidates for inclusion
2153 in an unstable pseudo-merge bitmap. The default is
2154 <code>1.week.ago</code>.</p>
2156 <dt class="hdlist1
">bitmapPseudoMerge.<name>.maxMerges</dt>
2158 <p>Determines the maximum number of pseudo-merge commits among
2159 which commits may be distributed.</p>
2160 <div class="paragraph
">
2161 <p>For pseudo-merge groups whose pattern does not contain any capture
2162 groups, this setting is applied for all commits matching the regular
2163 expression. For patterns that have one or more capture groups, this
2164 setting is applied for each distinct capture group.</p>
2166 <div class="paragraph
">
2167 <p>For example, if your capture group is <code>refs/tags/</code>, then this setting
2168 will distribute all tags into a maximum of <code>maxMerges</code> pseudo-merge
2169 commits. However, if your capture group is, say,
2170 <code>refs/remotes/</code>([<code>0-9</code>]<code>+</code>)<code>/tags/</code>, then this setting will be applied to
2171 each remote’s set of tags individually.</p>
2173 <div class="paragraph
">
2174 <p>Must be non-negative. The default value is 64.</p>
2177 <dt class="hdlist1
">bitmapPseudoMerge.<name>.stableThreshold</dt>
2179 <p>Determines the minimum age of commits (among reference tips,
2180 as above, however stable commits are still considered
2181 candidates even when they have been covered by a bitmap) which
2182 are candidates for a stable a pseudo-merge bitmap. The default
2183 is <code>1.month.ago</code>.</p>
2184 <div class="paragraph
">
2185 <p>Setting this threshold to a smaller value (e.g., 1.week.ago) will cause
2186 more stable groups to be generated (which impose a one-time generation
2187 cost) but those groups will likely become stale over time. Using a
2188 larger value incurs the opposite penalty (fewer stable groups which are
2192 <dt class="hdlist1
">bitmapPseudoMerge.<name>.stableSize</dt>
2194 <p>Determines the size (in number of commits) of a stable
2195 psuedo-merge bitmap. The default is <code>512</code>.</p>
2197 <dt class="hdlist1
">blame.blankBoundary</dt>
2199 <p>Show blank commit object name for boundary commits in
2200 <a href="git-blame.html
">git-blame(1)</a>. This option defaults to false.</p>
2202 <dt class="hdlist1
">blame.coloring</dt>
2204 <p>This determines the coloring scheme to be applied to blame
2205 output. It can be <em>repeatedLines</em>, <em>highlightRecent</em>,
2206 or <em>none</em> which is the default.</p>
2208 <dt class="hdlist1
">blame.date</dt>
2210 <p>Specifies the format used to output dates in <a href="git-blame.html
">git-blame(1)</a>.
2211 If unset the iso format is used. For supported values,
2212 see the discussion of the <code>--date</code> option at <a href="git-log.html
">git-log(1)</a>.</p>
2214 <dt class="hdlist1
">blame.showEmail</dt>
2216 <p>Show the author email instead of author name in <a href="git-blame.html
">git-blame(1)</a>.
2217 This option defaults to false.</p>
2219 <dt class="hdlist1
">blame.showRoot</dt>
2221 <p>Do not treat root commits as boundaries in <a href="git-blame.html
">git-blame(1)</a>.
2222 This option defaults to false.</p>
2224 <dt class="hdlist1
">blame.ignoreRevsFile</dt>
2226 <p>Ignore revisions listed in the file, one unabbreviated object name per
2227 line, in <a href="git-blame.html
">git-blame(1)</a>. Whitespace and comments beginning with
2228 # are ignored. This option may be repeated multiple times. Empty
2229 file names will reset the list of ignored revisions. This option will
2230 be handled before the command line option <code>--ignore-revs-file</code>.</p>
2232 <dt class="hdlist1
">blame.markUnblamableLines</dt>
2234 <p>Mark lines that were changed by an ignored revision that we could not
2235 attribute to another commit with a <em>*</em> in the output of
2236 <a href="git-blame.html
">git-blame(1)</a>.</p>
2238 <dt class="hdlist1
">blame.markIgnoredLines</dt>
2240 <p>Mark lines that were changed by an ignored revision that we attributed to
2241 another commit with a <em>?</em> in the output of <a href="git-blame.html
">git-blame(1)</a>.</p>
2243 <dt class="hdlist1
">branch.autoSetupMerge</dt>
2245 <p>Tells <em>git branch</em>, <em>git switch</em> and <em>git checkout</em> to set up new branches
2246 so that <a href="git-pull.html
">git-pull(1)</a> will appropriately merge from the
2247 starting point branch. Note that even if this option is not set,
2248 this behavior can be chosen per-branch using the <code>--track</code>
2249 and <code>--no-track</code> options. The valid settings are: <code>false</code> — no
2250 automatic setup is done; <code>true</code> — automatic setup is done when the
2251 starting point is a remote-tracking branch; <code>always</code> — automatic setup is done when the starting point is either a
2252 local branch or remote-tracking branch; <code>inherit</code> — if the starting point
2253 has a tracking configuration, it is copied to the new
2254 branch; <code>simple</code> — automatic setup is done only when the starting point
2255 is a remote-tracking branch and the new branch has the same name as the
2256 remote branch. This option defaults to true.</p>
2258 <dt class="hdlist1
">branch.autoSetupRebase</dt>
2260 <p>When a new branch is created with <em>git branch</em>, <em>git switch</em> or <em>git checkout</em>
2261 that tracks another branch, this variable tells Git to set
2262 up pull to rebase instead of merge (see "branch.
<name
>.rebase
").
2263 When <code>never</code>, rebase is never automatically set to true.
2264 When <code>local</code>, rebase is set to true for tracked branches of
2265 other local branches.
2266 When <code>remote</code>, rebase is set to true for tracked branches of
2267 remote-tracking branches.
2268 When <code>always</code>, rebase will be set to true for all tracking
2270 See "branch.autoSetupMerge
" for details on how to set up a
2271 branch to track another branch.
2272 This option defaults to never.</p>
2274 <dt class="hdlist1
">branch.sort</dt>
2276 <p>This variable controls the sort ordering of branches when displayed by
2277 <a href="git-branch.html
">git-branch(1)</a>. Without the "--sort=
<value
>" option provided, the
2278 value of this variable will be used as the default.
2279 See <a href="git-for-each-ref.html
">git-for-each-ref(1)</a> field names for valid values.</p>
2281 <dt class="hdlist1
">branch.<name>.remote</dt>
2283 <p>When on branch <name>, it tells <em>git fetch</em> and <em>git push</em>
2284 which remote to fetch from or push to. The remote to push to
2285 may be overridden with <code>remote.pushDefault</code> (for all branches).
2286 The remote to push to, for the current branch, may be further
2287 overridden by <code>branch.</code><em><name></em><code>.pushRemote</code>. If no remote is
2288 configured, or if you are not on any branch and there is more than
2289 one remote defined in the repository, it defaults to <code>origin</code> for
2290 fetching and <code>remote.pushDefault</code> for pushing.
2291 Additionally, . (a period) is the current local repository
2292 (a dot-repository), see <code>branch.</code><em><name></em><code>.merge</code>'s final note below.</p>
2294 <dt class="hdlist1
">branch.<name>.pushRemote</dt>
2296 <p>When on branch <name>, it overrides <code>branch.</code><em><name></em><code>.remote</code> for
2297 pushing. It also overrides <code>remote.pushDefault</code> for pushing
2298 from branch <name>. When you pull from one place (e.g. your
2299 upstream) and push to another place (e.g. your own publishing
2300 repository), you would want to set <code>remote.pushDefault</code> to
2301 specify the remote to push to for all branches, and use this
2302 option to override it for a specific branch.</p>
2304 <dt class="hdlist1
">branch.<name>.merge</dt>
2306 <p>Defines, together with branch.<name>.remote, the upstream branch
2307 for the given branch. It tells <em>git fetch</em>/<em>git pull</em>/<em>git rebase</em> which
2308 branch to merge and can also affect <em>git push</em> (see push.default).
2309 When in branch <name>, it tells <em>git fetch</em> the default
2310 refspec to be marked for merging in FETCH_HEAD. The value is
2311 handled like the remote part of a refspec, and must match a
2312 ref which is fetched from the remote given by
2313 "branch.
<name
>.remote
".
2314 The merge information is used by <em>git pull</em> (which first calls
2315 <em>git fetch</em>) to lookup the default branch for merging. Without
2316 this option, <em>git pull</em> defaults to merge the first refspec fetched.
2317 Specify multiple values to get an octopus merge.
2318 If you wish to setup <em>git pull</em> so that it merges into <name> from
2319 another branch in the local repository, you can point
2320 branch.<name>.merge to the desired branch, and use the relative path
2321 setting . (a period) for branch.<name>.remote.</p>
2323 <dt class="hdlist1
">branch.<name>.mergeOptions</dt>
2325 <p>Sets default options for merging into branch <name>. The syntax and
2326 supported options are the same as those of <a href="git-merge.html
">git-merge(1)</a>, but
2327 option values containing whitespace characters are currently not
2330 <dt class="hdlist1
">branch.<name>.rebase</dt>
2332 <p>When true, rebase the branch <name> on top of the fetched branch,
2333 instead of merging the default branch from the default remote when
2334 "git pull
" is run. See "pull.rebase
" for doing this in a non
2335 branch-specific manner.</p>
2336 <div class="paragraph
">
2337 <p>When <code>merges</code> (or just <em>m</em>), pass the <code>--rebase-merges</code> option to <em>git rebase</em>
2338 so that the local merge commits are included in the rebase (see
2339 <a href="git-rebase.html
">git-rebase(1)</a> for details).</p>
2341 <div class="paragraph
">
2342 <p>When the value is <code>interactive</code> (or just <em>i</em>), the rebase is run in interactive
2345 <div class="paragraph
">
2346 <p><strong>NOTE</strong>: this is a possibly dangerous operation; do <strong>not</strong> use
2347 it unless you understand the implications (see <a href="git-rebase.html
">git-rebase(1)</a>
2351 <dt class="hdlist1
">branch.<name>.description</dt>
2353 <p>Branch description, can be edited with
2354 <code>git</code> <code>branch</code> <code>--edit-description</code>. Branch description is
2355 automatically added to the format-patch cover letter or
2356 request-pull summary.</p>
2358 <dt class="hdlist1
">browser.<tool>.cmd</dt>
2360 <p>Specify the command to invoke the specified browser. The
2361 specified command is evaluated in shell with the URLs passed
2362 as arguments. (See <a href="git-web
--browse.html
">git-web--browse(1)</a>.)</p>
2364 <dt class="hdlist1
">browser.<tool>.path</dt>
2366 <p>Override the path for the given tool that may be used to
2367 browse HTML help (see <code>-w</code> option in <a href="git-help.html
">git-help(1)</a>) or a
2368 working repository in gitweb (see <a href="git-instaweb.html
">git-instaweb(1)</a>).</p>
2370 <dt class="hdlist1
">bundle.*</dt>
2372 <p>The <code>bundle.</code>* keys may appear in a bundle list file found via the
2373 <code>git</code> <code>clone</code> <code>--bundle-uri</code> option. These keys currently have no effect
2374 if placed in a repository config file, though this will change in the
2375 future. See <a href="technical/bundle-uri.html
">the bundle URI design
2376 document</a> for more details.</p>
2378 <dt class="hdlist1
">bundle.version</dt>
2380 <p>This integer value advertises the version of the bundle list format
2381 used by the bundle list. Currently, the only accepted value is <code>1</code>.</p>
2383 <dt class="hdlist1
">bundle.mode</dt>
2385 <p>This string value should be either <code>all</code> or <code>any</code>. This value describes
2386 whether all of the advertised bundles are required to unbundle a
2387 complete understanding of the bundled information (<code>all</code>) or if any one
2388 of the listed bundle URIs is sufficient (<code>any</code>).</p>
2390 <dt class="hdlist1
">bundle.heuristic</dt>
2392 <p>If this string-valued key exists, then the bundle list is designed to
2393 work well with incremental <code>git</code> <code>fetch</code> commands. The heuristic signals
2394 that there are additional keys available for each bundle that help
2395 determine which subset of bundles the client should download. The
2396 only value currently understood is <code>creationToken</code>.</p>
2398 <dt class="hdlist1
">bundle.<id>.*</dt>
2400 <p>The <code>bundle.</code><em><id></em>.* keys are used to describe a single item in the
2401 bundle list, grouped under <em><id></em> for identification purposes.</p>
2403 <dt class="hdlist1
">bundle.<id>.uri</dt>
2405 <p>This string value defines the URI by which Git can reach the contents
2406 of this <em><id></em>. This URI may be a bundle file or another bundle list.</p>
2408 <dt class="hdlist1
">checkout.defaultRemote</dt>
2410 <p>When you run <code>git</code> <code>checkout</code> <em><something></em>
2411 or <code>git</code> <code>switch</code> <em><something></em> and only have one
2412 remote, it may implicitly fall back on checking out and
2413 tracking e.g. <code>origin/</code><em><something></em>. This stops working as soon
2414 as you have more than one remote with a <em><something></em>
2415 reference. This setting allows for setting the name of a
2416 preferred remote that should always win when it comes to
2417 disambiguation. The typical use-case is to set this to
2418 <code>origin</code>.</p>
2419 <div class="paragraph
">
2420 <p>Currently this is used by <a href="git-switch.html
">git-switch(1)</a> and
2421 <a href="git-checkout.html
">git-checkout(1)</a> when <code>git</code> <code>checkout</code> <em><something></em>
2422 or <code>git</code> <code>switch</code> <em><something></em>
2423 will checkout the <em><something></em> branch on another remote,
2424 and by <a href="git-worktree.html
">git-worktree(1)</a> when <code>git</code> <code>worktree</code> <code>add</code> refers to a
2425 remote branch. This setting might be used for other checkout-like
2426 commands or functionality in the future.</p>
2429 <dt class="hdlist1
">checkout.guess</dt>
2431 <p>Provides the default value for the <code>--guess</code> or <code>--no-guess</code>
2432 option in <code>git</code> <code>checkout</code> and <code>git</code> <code>switch</code>. See
2433 <a href="git-switch.html
">git-switch(1)</a> and <a href="git-checkout.html
">git-checkout(1)</a>.</p>
2435 <dt class="hdlist1
">checkout.workers</dt>
2437 <p>The number of parallel workers to use when updating the working tree.
2438 The default is one, i.e. sequential execution. If set to a value less
2439 than one, Git will use as many workers as the number of logical cores
2440 available. This setting and <code>checkout.thresholdForParallelism</code> affect
2441 all commands that perform checkout. E.g. checkout, clone, reset,
2442 sparse-checkout, etc.</p>
2443 <div class="paragraph
">
2444 <p>Note: Parallel checkout usually delivers better performance for repositories
2445 located on SSDs or over NFS. For repositories on spinning disks and/or machines
2446 with a small number of cores, the default sequential checkout often performs
2447 better. The size and compression level of a repository might also influence how
2448 well the parallel version performs.</p>
2451 <dt class="hdlist1
">checkout.thresholdForParallelism</dt>
2453 <p>When running parallel checkout with a small number of files, the cost
2454 of subprocess spawning and inter-process communication might outweigh
2455 the parallelization gains. This setting allows you to define the minimum
2456 number of files for which parallel checkout should be attempted. The
2459 <dt class="hdlist1
">clean.requireForce</dt>
2461 <p>A boolean to make git-clean refuse to delete files unless -f
2462 is given. Defaults to true.</p>
2464 <dt class="hdlist1
"><code>clone.defaultRemoteName</code></dt>
2466 <p>The name of the remote to create when cloning a repository. Defaults to
2467 <code>origin</code>.
2468 It can be overridden by passing the <code>--origin</code> command-line
2469 option to <a href="git-clone.html
">git-clone(1)</a>.</p>
2471 <dt class="hdlist1
"><code>clone.rejectShallow</code></dt>
2473 <p>Reject cloning a repository if it is a shallow one; this can be overridden by
2474 passing the <code>--reject-shallow</code> option on the command line.
2475 See <a href="git-clone.html
">git-clone(1)</a>.</p>
2477 <dt class="hdlist1
"><code>clone.filterSubmodules</code></dt>
2479 <p>If a partial clone filter is provided (see <code>--filter</code> in
2480 <a href="git-rev-list.html
">git-rev-list(1)</a>) and <code>--recurse-submodules</code> is used, also apply
2481 the filter to submodules.</p>
2483 <dt class="hdlist1
">color.advice</dt>
2485 <p>A boolean to enable/disable color in hints (e.g. when a push
2486 failed, see <code>advice.</code>* for a list). May be set to <code>always</code>,
2487 <code>false</code> (or <code>never</code>) or <code>auto</code> (or <code>true</code>), in which case colors
2488 are used only when the error output goes to a terminal. If
2489 unset, then the value of <code>color.ui</code> is used (<code>auto</code> by default).</p>
2491 <dt class="hdlist1
">color.advice.hint</dt>
2493 <p>Use customized color for hints.</p>
2495 <dt class="hdlist1
">color.blame.highlightRecent</dt>
2497 <p>Specify the line annotation color for <code>git</code> <code>blame</code> <code>--color-by-age</code>
2498 depending upon the age of the line.</p>
2499 <div class="paragraph
">
2500 <p>This setting should be set to a comma-separated list of color and
2501 date settings, starting and ending with a color, the dates should be
2502 set from oldest to newest. The metadata will be colored with the
2503 specified colors if the line was introduced before the given
2504 timestamp, overwriting older timestamped colors.</p>
2506 <div class="paragraph
">
2507 <p>Instead of an absolute timestamp relative timestamps work as well,
2508 e.g. <code>2.weeks.ago</code> is valid to address anything older than 2 weeks.</p>
2510 <div class="paragraph
">
2511 <p>It defaults to <code>blue,12</code> <code>month</code> <code>ago,white,1</code> <code>month</code> <code>ago,red</code>, which
2512 colors everything older than one year blue, recent changes between
2513 one month and one year old are kept white, and lines introduced
2514 within the last month are colored red.</p>
2517 <dt class="hdlist1
">color.blame.repeatedLines</dt>
2519 <p>Use the specified color to colorize line annotations for
2520 <code>git</code> <code>blame</code> <code>--color-lines</code>, if they come from the same commit as the
2521 preceding line. Defaults to cyan.</p>
2523 <dt class="hdlist1
">color.branch</dt>
2525 <p>A boolean to enable/disable color in the output of
2526 <a href="git-branch.html
">git-branch(1)</a>. May be set to <code>always</code>,
2527 <code>false</code> (or <code>never</code>) or <code>auto</code> (or <code>true</code>), in which case colors are used
2528 only when the output is to a terminal. If unset, then the
2529 value of <code>color.ui</code> is used (<code>auto</code> by default).</p>
2531 <dt class="hdlist1
">color.branch.<slot></dt>
2533 <p>Use customized color for branch coloration. <em><slot></em> is one of
2534 <code>current</code> (the current branch), <code>local</code> (a local branch),
2535 <code>remote</code> (a remote-tracking branch in refs/remotes/),
2536 <code>upstream</code> (upstream tracking branch), <code>plain</code> (other
2539 <dt class="hdlist1
">color.diff</dt>
2541 <p>Whether to use ANSI escape sequences to add color to patches.
2542 If this is set to <code>always</code>, <a href="git-diff.html
">git-diff(1)</a>,
2543 <a href="git-log.html
">git-log(1)</a>, and <a href="git-show.html
">git-show(1)</a> will use color
2544 for all patches. If it is set to <code>true</code> or <code>auto</code>, those
2545 commands will only use color when output is to the terminal.
2546 If unset, then the value of <code>color.ui</code> is used (<code>auto</code> by
2548 <div class="paragraph
">
2549 <p>This does not affect <a href="git-format-patch.html
">git-format-patch(1)</a> or the
2550 <em>git-diff-*</em> plumbing commands. Can be overridden on the
2551 command line with the <code>--color</code>[<code>=</code><em><when></em>] option.</p>
2554 <dt class="hdlist1
">color.diff.<slot></dt>
2556 <p>Use customized color for diff colorization. <em><slot></em> specifies
2557 which part of the patch to use the specified color, and is one
2558 of <code>context</code> (context text - <code>plain</code> is a historical synonym),
2559 <code>meta</code> (metainformation), <code>frag</code>
2560 (hunk header), <em>func</em> (function in hunk header), <code>old</code> (removed lines),
2561 <code>new</code> (added lines), <code>commit</code> (commit headers), <code>whitespace</code>
2562 (highlighting whitespace errors), <code>oldMoved</code> (deleted lines),
2563 <code>newMoved</code> (added lines), <code>oldMovedDimmed</code>, <code>oldMovedAlternative</code>,
2564 <code>oldMovedAlternativeDimmed</code>, <code>newMovedDimmed</code>, <code>newMovedAlternative</code>
2565 <code>newMovedAlternativeDimmed</code> (See the <em><mode></em>
2566 setting of <em>--color-moved</em> in <a href="git-diff.html
">git-diff(1)</a> for details),
2567 <code>contextDimmed</code>, <code>oldDimmed</code>, <code>newDimmed</code>, <code>contextBold</code>,
2568 <code>oldBold</code>, and <code>newBold</code> (see <a href="git-range-diff.html
">git-range-diff(1)</a> for details).</p>
2570 <dt class="hdlist1
">color.decorate.<slot></dt>
2572 <p>Use customized color for <em>git log --decorate</em> output. <em><slot></em> is one
2573 of <code>branch</code>, <code>remoteBranch</code>, <code>tag</code>, <code>stash</code> or <code>HEAD</code> for local
2574 branches, remote-tracking branches, tags, stash and HEAD, respectively
2575 and <code>grafted</code> for grafted commits.</p>
2577 <dt class="hdlist1
">color.grep</dt>
2579 <p>When set to <code>always</code>, always highlight matches. When <code>false</code> (or
2580 <code>never</code>), never. When set to <code>true</code> or <code>auto</code>, use color only
2581 when the output is written to the terminal. If unset, then the
2582 value of <code>color.ui</code> is used (<code>auto</code> by default).</p>
2584 <dt class="hdlist1
">color.grep.<slot></dt>
2586 <p>Use customized color for grep colorization. <em><slot></em> specifies which
2587 part of the line to use the specified color, and is one of</p>
2588 <div class="openblock
">
2589 <div class="content
">
2592 <dt class="hdlist1
"><code>context</code></dt>
2594 <p>non-matching text in context lines (when using <code>-A</code>, <code>-B</code>, or <code>-C</code>)</p>
2596 <dt class="hdlist1
"><code>filename</code></dt>
2598 <p>filename prefix (when not using <code>-h</code>)</p>
2600 <dt class="hdlist1
"><code>function</code></dt>
2602 <p>function name lines (when using <code>-p</code>)</p>
2604 <dt class="hdlist1
"><code>lineNumber</code></dt>
2606 <p>line number prefix (when using <code>-n</code>)</p>
2608 <dt class="hdlist1
"><code>column</code></dt>
2610 <p>column number prefix (when using <code>--column</code>)</p>
2612 <dt class="hdlist1
"><code>match</code></dt>
2614 <p>matching text (same as setting <code>matchContext</code> and <code>matchSelected</code>)</p>
2616 <dt class="hdlist1
"><code>matchContext</code></dt>
2618 <p>matching text in context lines</p>
2620 <dt class="hdlist1
"><code>matchSelected</code></dt>
2622 <p>matching text in selected lines. Also, used to customize the following
2623 <a href="git-log.html
">git-log(1)</a> subcommands: <code>--grep</code>, <code>--author</code>, and <code>--committer</code>.</p>
2625 <dt class="hdlist1
"><code>selected</code></dt>
2627 <p>non-matching text in selected lines. Also, used to customize the
2628 following <a href="git-log.html
">git-log(1)</a> subcommands: <code>--grep</code>, <code>--author</code> and
2629 <code>--committer</code>.</p>
2631 <dt class="hdlist1
"><code>separator</code></dt>
2633 <p>separators between fields on a line (<code>:</code>, <code>-</code>, and <code>=</code>)
2634 and between hunks (<code>--</code>)</p>
2641 <dt class="hdlist1
">color.interactive</dt>
2643 <p>When set to <code>always</code>, always use colors for interactive prompts
2644 and displays (such as those used by "git-add --interactive
" and
2645 "git-clean --interactive
"). When false (or <code>never</code>), never.
2646 When set to <code>true</code> or <code>auto</code>, use colors only when the output is
2647 to the terminal. If unset, then the value of <code>color.ui</code> is
2648 used (<code>auto</code> by default).</p>
2650 <dt class="hdlist1
">color.interactive.<slot></dt>
2652 <p>Use customized color for <em>git add --interactive</em> and <em>git clean
2653 --interactive</em> output. <em><slot></em> may be <code>prompt</code>, <code>header</code>, <code>help</code>
2654 or <code>error</code>, for four distinct types of normal output from
2655 interactive commands.</p>
2657 <dt class="hdlist1
">color.pager</dt>
2659 <p>A boolean to specify whether <code>auto</code> color modes should colorize
2660 output going to the pager. Defaults to true; set this to false
2661 if your pager does not understand ANSI color codes.</p>
2663 <dt class="hdlist1
">color.push</dt>
2665 <p>A boolean to enable/disable color in push errors. May be set to
2666 <code>always</code>, <code>false</code> (or <code>never</code>) or <code>auto</code> (or <code>true</code>), in which
2667 case colors are used only when the error output goes to a terminal.
2668 If unset, then the value of <code>color.ui</code> is used (<code>auto</code> by default).</p>
2670 <dt class="hdlist1
">color.push.error</dt>
2672 <p>Use customized color for push errors.</p>
2674 <dt class="hdlist1
">color.remote</dt>
2676 <p>If set, keywords at the start of the line are highlighted. The
2677 keywords are "error
", "warning
", "hint
" and "success
", and are
2678 matched case-insensitively. May be set to <code>always</code>, <code>false</code> (or
2679 <code>never</code>) or <code>auto</code> (or <code>true</code>). If unset, then the value of
2680 <code>color.ui</code> is used (<code>auto</code> by default).</p>
2682 <dt class="hdlist1
">color.remote.<slot></dt>
2684 <p>Use customized color for each remote keyword. <em><slot></em> may be
2685 <code>hint</code>, <code>warning</code>, <code>success</code> or <code>error</code> which match the
2686 corresponding keyword.</p>
2688 <dt class="hdlist1
">color.showBranch</dt>
2690 <p>A boolean to enable/disable color in the output of
2691 <a href="git-show-branch.html
">git-show-branch(1)</a>. May be set to <code>always</code>,
2692 <code>false</code> (or <code>never</code>) or <code>auto</code> (or <code>true</code>), in which case colors are used
2693 only when the output is to a terminal. If unset, then the
2694 value of <code>color.ui</code> is used (<code>auto</code> by default).</p>
2696 <dt class="hdlist1
">color.status</dt>
2698 <p>A boolean to enable/disable color in the output of
2699 <a href="git-status.html
">git-status(1)</a>. May be set to <code>always</code>,
2700 <code>false</code> (or <code>never</code>) or <code>auto</code> (or <code>true</code>), in which case colors are used
2701 only when the output is to a terminal. If unset, then the
2702 value of <code>color.ui</code> is used (<code>auto</code> by default).</p>
2704 <dt class="hdlist1
">color.status.<slot></dt>
2706 <p>Use customized color for status colorization. <em><slot></em> is
2707 one of <code>header</code> (the header text of the status message),
2708 <code>added</code> or <code>updated</code> (files which are added but not committed),
2709 <code>changed</code> (files which are changed but not added in the index),
2710 <code>untracked</code> (files which are not tracked by Git),
2711 <code>branch</code> (the current branch),
2712 <code>nobranch</code> (the color the <em>no branch</em> warning is shown in, defaulting
2714 <code>localBranch</code> or <code>remoteBranch</code> (the local and remote branch names,
2715 respectively, when branch and tracking information is displayed in the
2716 status short-format), or
2717 <code>unmerged</code> (files which have unmerged changes).</p>
2719 <dt class="hdlist1
">color.transport</dt>
2721 <p>A boolean to enable/disable color when pushes are rejected. May be
2722 set to <code>always</code>, <code>false</code> (or <code>never</code>) or <code>auto</code> (or <code>true</code>), in which
2723 case colors are used only when the error output goes to a terminal.
2724 If unset, then the value of <code>color.ui</code> is used (<code>auto</code> by default).</p>
2726 <dt class="hdlist1
">color.transport.rejected</dt>
2728 <p>Use customized color when a push was rejected.</p>
2730 <dt class="hdlist1
">color.ui</dt>
2732 <p>This variable determines the default value for variables such
2733 as <code>color.diff</code> and <code>color.grep</code> that control the use of color
2734 per command family. Its scope will expand as more commands learn
2735 configuration to set a default for the <code>--color</code> option. Set it
2736 to <code>false</code> or <code>never</code> if you prefer Git commands not to use
2737 color unless enabled explicitly with some other configuration
2738 or the <code>--color</code> option. Set it to <code>always</code> if you want all
2739 output not intended for machine consumption to use color, to
2740 <code>true</code> or <code>auto</code> (this is the default since Git 1.8.4) if you
2741 want such output to use color when written to the terminal.</p>
2743 <dt class="hdlist1
">column.ui</dt>
2745 <p>Specify whether supported commands should output in columns.
2746 This variable consists of a list of tokens separated by spaces
2748 <div class="paragraph
">
2749 <p>These options control when the feature should be enabled
2750 (defaults to <em>never</em>):</p>
2752 <div class="openblock
">
2753 <div class="content
">
2756 <dt class="hdlist1
"><code>always</code></dt>
2758 <p>always show in columns</p>
2760 <dt class="hdlist1
"><code>never</code></dt>
2762 <p>never show in columns</p>
2764 <dt class="hdlist1
"><code>auto</code></dt>
2766 <p>show in columns if the output is to the terminal</p>
2772 <div class="paragraph
">
2773 <p>These options control layout (defaults to <em>column</em>). Setting any
2774 of these implies <em>always</em> if none of <em>always</em>, <em>never</em>, or <em>auto</em> are
2777 <div class="openblock
">
2778 <div class="content
">
2781 <dt class="hdlist1
"><code>column</code></dt>
2783 <p>fill columns before rows</p>
2785 <dt class="hdlist1
"><code>row</code></dt>
2787 <p>fill rows before columns</p>
2789 <dt class="hdlist1
"><code>plain</code></dt>
2791 <p>show in one column</p>
2797 <div class="paragraph
">
2798 <p>Finally, these options can be combined with a layout option (defaults
2799 to <em>nodense</em>):</p>
2801 <div class="openblock
">
2802 <div class="content
">
2805 <dt class="hdlist1
"><code>dense</code></dt>
2807 <p>make unequal size columns to utilize more space</p>
2809 <dt class="hdlist1
"><code>nodense</code></dt>
2811 <p>make equal size columns</p>
2818 <dt class="hdlist1
">column.branch</dt>
2820 <p>Specify whether to output branch listing in <code>git</code> <code>branch</code> in columns.
2821 See <code>column.ui</code> for details.</p>
2823 <dt class="hdlist1
">column.clean</dt>
2825 <p>Specify the layout when listing items in <code>git</code> <code>clean</code> <code>-i</code>, which always
2826 shows files and directories in columns. See <code>column.ui</code> for details.</p>
2828 <dt class="hdlist1
">column.status</dt>
2830 <p>Specify whether to output untracked files in <code>git</code> <code>status</code> in columns.
2831 See <code>column.ui</code> for details.</p>
2833 <dt class="hdlist1
">column.tag</dt>
2835 <p>Specify whether to output tag listings in <code>git</code> <code>tag</code> in columns.
2836 See <code>column.ui</code> for details.</p>
2838 <dt class="hdlist1
">commit.cleanup</dt>
2840 <p>This setting overrides the default of the <code>--cleanup</code> option in
2841 <code>git</code> <code>commit</code>. See <a href="git-commit.html
">git-commit(1)</a> for details. Changing the
2842 default can be useful when you always want to keep lines that begin
2843 with the comment character # in your log message, in which case you
2844 would do <code>git</code> <code>config</code> <code>commit.cleanup</code> <code>whitespace</code> (note that you will
2845 have to remove the help lines that begin with # in the commit log
2846 template yourself, if you do this).</p>
2848 <dt class="hdlist1
">commit.gpgSign</dt>
2850 <p>A boolean to specify whether all commits should be GPG signed.
2851 Use of this option when doing operations such as rebase can
2852 result in a large number of commits being signed. It may be
2853 convenient to use an agent to avoid typing your GPG passphrase
2856 <dt class="hdlist1
">commit.status</dt>
2858 <p>A boolean to enable/disable inclusion of status information in the
2859 commit message template when using an editor to prepare the commit
2860 message. Defaults to true.</p>
2862 <dt class="hdlist1
">commit.template</dt>
2864 <p>Specify the pathname of a file to use as the template for
2865 new commit messages.</p>
2867 <dt class="hdlist1
">commit.verbose</dt>
2869 <p>A boolean or int to specify the level of verbosity with <code>git</code> <code>commit</code>.
2870 See <a href="git-commit.html
">git-commit(1)</a>.</p>
2872 <dt class="hdlist1
">commitGraph.generationVersion</dt>
2874 <p>Specifies the type of generation number version to use when writing
2875 or reading the commit-graph file. If version 1 is specified, then
2876 the corrected commit dates will not be written or read. Defaults to
2879 <dt class="hdlist1
">commitGraph.maxNewFilters</dt>
2881 <p>Specifies the default value for the <code>--max-new-filters</code> option of <code>git</code>
2882 <code>commit-graph</code> <code>write</code> (c.f., <a href="git-commit-graph.html
">git-commit-graph(1)</a>).</p>
2884 <dt class="hdlist1
">commitGraph.readChangedPaths</dt>
2886 <p>Deprecated. Equivalent to commitGraph.changedPathsVersion=-1 if true, and
2887 commitGraph.changedPathsVersion=0 if false. (If commitGraph.changedPathVersion
2888 is also set, commitGraph.changedPathsVersion takes precedence.)</p>
2890 <dt class="hdlist1
">commitGraph.changedPathsVersion</dt>
2892 <p>Specifies the version of the changed-path Bloom filters that Git will read and
2893 write. May be -1, 0, 1, or 2. Note that values greater than 1 may be
2894 incompatible with older versions of Git which do not yet understand
2895 those versions. Use caution when operating in a mixed-version
2897 <div class="paragraph
">
2898 <p>Defaults to -1.</p>
2900 <div class="paragraph
">
2901 <p>If -1, Git will use the version of the changed-path Bloom filters in the
2902 repository, defaulting to 1 if there are none.</p>
2904 <div class="paragraph
">
2905 <p>If 0, Git will not read any Bloom filters, and will write version 1 Bloom
2906 filters when instructed to write.</p>
2908 <div class="paragraph
">
2909 <p>If 1, Git will only read version 1 Bloom filters, and will write version 1
2912 <div class="paragraph
">
2913 <p>If 2, Git will only read version 2 Bloom filters, and will write version 2
2916 <div class="paragraph
">
2917 <p>See <a href="git-commit-graph.html
">git-commit-graph(1)</a> for more information.</p>
2920 <dt class="hdlist1
">completion.commands</dt>
2922 <p>This is only used by git-completion.bash to add or remove
2923 commands from the list of completed commands. Normally only
2924 porcelain commands and a few select others are completed. You
2925 can add more commands, separated by space, in this
2926 variable. Prefixing the command with <em>-</em> will remove it from
2927 the existing list.</p>
2929 <dt class="hdlist1
">core.fileMode</dt>
2931 <p>Tells Git if the executable bit of files in the working tree
2932 is to be honored.</p>
2933 <div class="paragraph
">
2934 <p>Some filesystems lose the executable bit when a file that is
2935 marked as executable is checked out, or checks out a
2936 non-executable file with executable bit on.
2937 <a href="git-clone.html
">git-clone(1)</a> or <a href="git-init.html
">git-init(1)</a> probe the filesystem
2938 to see if it handles the executable bit correctly
2939 and this variable is automatically set as necessary.</p>
2941 <div class="paragraph
">
2942 <p>A repository, however, may be on a filesystem that handles
2943 the filemode correctly, and this variable is set to <em>true</em>
2944 when created, but later may be made accessible from another
2945 environment that loses the filemode (e.g. exporting ext4 via
2946 CIFS mount, visiting a Cygwin created repository with
2947 Git for Windows or Eclipse).
2948 In such a case it may be necessary to set this variable to <em>false</em>.
2949 See <a href="git-update-index.html
">git-update-index(1)</a>.</p>
2951 <div class="paragraph
">
2952 <p>The default is true (when core.filemode is not specified in the config file).</p>
2955 <dt class="hdlist1
">core.hideDotFiles</dt>
2957 <p>(Windows-only) If true, mark newly-created directories and files whose
2958 name starts with a dot as hidden. If <em>dotGitOnly</em>, only the .<code>git/</code>
2959 directory is hidden, but no other files starting with a dot. The
2960 default mode is <em>dotGitOnly</em>.</p>
2962 <dt class="hdlist1
">core.ignoreCase</dt>
2964 <p>Internal variable which enables various workarounds to enable
2965 Git to work better on filesystems that are not case sensitive,
2966 like APFS, HFS+, FAT, NTFS, etc. For example, if a directory listing
2967 finds "makefile
" when Git expects "Makefile
", Git will assume
2968 it is really the same file, and continue to remember it as
2970 <div class="paragraph
">
2971 <p>The default is false, except <a href="git-clone.html
">git-clone(1)</a> or <a href="git-init.html
">git-init(1)</a>
2972 will probe and set core.ignoreCase true if appropriate when the repository
2975 <div class="paragraph
">
2976 <p>Git relies on the proper configuration of this variable for your operating
2977 and file system. Modifying this value may result in unexpected behavior.</p>
2980 <dt class="hdlist1
">core.precomposeUnicode</dt>
2982 <p>This option is only used by Mac OS implementation of Git.
2983 When core.precomposeUnicode=true, Git reverts the unicode decomposition
2984 of filenames done by Mac OS. This is useful when sharing a repository
2985 between Mac OS and Linux or Windows.
2986 (Git for Windows 1.7.10 or higher is needed, or Git under cygwin 1.7).
2987 When false, file names are handled fully transparent by Git,
2988 which is backward compatible with older versions of Git.</p>
2990 <dt class="hdlist1
">core.protectHFS</dt>
2992 <p>If set to true, do not allow checkout of paths that would
2993 be considered equivalent to .<code>git</code> on an HFS+ filesystem.
2994 Defaults to <code>true</code> on Mac OS, and <code>false</code> elsewhere.</p>
2996 <dt class="hdlist1
">core.protectNTFS</dt>
2998 <p>If set to true, do not allow checkout of paths that would
2999 cause problems with the NTFS filesystem, e.g. conflict with
3001 Defaults to <code>true</code> on Windows, and <code>false</code> elsewhere.</p>
3003 <dt class="hdlist1
">core.fsmonitor</dt>
3005 <p>If set to true, enable the built-in file system monitor
3006 daemon for this working directory (<a href="git-fsmonitor
--daemon.html
">git-fsmonitor--daemon(1)</a>).</p>
3007 <div class="paragraph
">
3008 <p>Like hook-based file system monitors, the built-in file system monitor
3009 can speed up Git commands that need to refresh the Git index
3010 (e.g. <code>git</code> <code>status</code>) in a working directory with many files. The
3011 built-in monitor eliminates the need to install and maintain an
3012 external third-party tool.</p>
3014 <div class="paragraph
">
3015 <p>The built-in file system monitor is currently available only on a
3016 limited set of supported platforms. Currently, this includes Windows
3019 <div class="literalblock
">
3020 <div class="content
">
3021 <pre>Otherwise, this variable contains the pathname of the "fsmonitor
"
3025 <div class="paragraph
">
3026 <p>This hook command is used to identify all files that may have changed
3027 since the requested date/time. This information is used to speed up
3028 git by avoiding unnecessary scanning of files that have not changed.</p>
3030 <div class="paragraph
">
3031 <p>See the "fsmonitor-watchman
" section of <a href="githooks.html
">githooks(5)</a>.</p>
3033 <div class="paragraph
">
3034 <p>Note that if you concurrently use multiple versions of Git, such
3035 as one version on the command line and another version in an IDE
3036 tool, that the definition of <code>core.fsmonitor</code> was extended to
3037 allow boolean values in addition to hook pathnames. Git versions
3038 2.35.1 and prior will not understand the boolean values and will
3039 consider the "true
" or "false
" values as hook pathnames to be
3040 invoked. Git versions 2.26 thru 2.35.1 default to hook protocol
3041 V2 and will fall back to no fsmonitor (full scan). Git versions
3042 prior to 2.26 default to hook protocol V1 and will silently
3043 assume there were no changes to report (no scan), so status
3044 commands may report incomplete results. For this reason, it is
3045 best to upgrade all of your Git versions before using the built-in
3046 file system monitor.</p>
3049 <dt class="hdlist1
">core.fsmonitorHookVersion</dt>
3051 <p>Sets the protocol version to be used when invoking the
3052 "fsmonitor
" hook.</p>
3053 <div class="paragraph
">
3054 <p>There are currently versions 1 and 2. When this is not set,
3055 version 2 will be tried first and if it fails then version 1
3056 will be tried. Version 1 uses a timestamp as input to determine
3057 which files have changes since that time but some monitors
3058 like Watchman have race conditions when used with a timestamp.
3059 Version 2 uses an opaque string so that the monitor can return
3060 something that can be used to determine what files have changed
3061 without race conditions.</p>
3064 <dt class="hdlist1
">core.trustctime</dt>
3066 <p>If false, the ctime differences between the index and the
3067 working tree are ignored; useful when the inode change time
3068 is regularly modified by something outside Git (file system
3069 crawlers and some backup systems).
3070 See <a href="git-update-index.html
">git-update-index(1)</a>. True by default.</p>
3072 <dt class="hdlist1
">core.splitIndex</dt>
3074 <p>If true, the split-index feature of the index will be used.
3075 See <a href="git-update-index.html
">git-update-index(1)</a>. False by default.</p>
3077 <dt class="hdlist1
">core.untrackedCache</dt>
3079 <p>Determines what to do about the untracked cache feature of the
3080 index. It will be kept, if this variable is unset or set to
3081 <code>keep</code>. It will automatically be added if set to <code>true</code>. And
3082 it will automatically be removed, if set to <code>false</code>. Before
3083 setting it to <code>true</code>, you should check that mtime is working
3084 properly on your system.
3085 See <a href="git-update-index.html
">git-update-index(1)</a>. <code>keep</code> by default, unless
3086 <code>feature.manyFiles</code> is enabled which sets this setting to
3087 <code>true</code> by default.</p>
3089 <dt class="hdlist1
">core.checkStat</dt>
3091 <p>When missing or is set to <code>default</code>, many fields in the stat
3092 structure are checked to detect if a file has been modified
3093 since Git looked at it. When this configuration variable is
3094 set to <code>minimal</code>, sub-second part of mtime and ctime, the
3095 uid and gid of the owner of the file, the inode number (and
3096 the device number, if Git was compiled to use it), are
3097 excluded from the check among these fields, leaving only the
3098 whole-second part of mtime (and ctime, if <code>core.trustCtime</code>
3099 is set) and the filesize to be checked.</p>
3100 <div class="paragraph
">
3101 <p>There are implementations of Git that do not leave usable values in
3102 some fields (e.g. JGit); by excluding these fields from the
3103 comparison, the <code>minimal</code> mode may help interoperability when the
3104 same repository is used by these other systems at the same time.</p>
3107 <dt class="hdlist1
">core.quotePath</dt>
3109 <p>Commands that output paths (e.g. <em>ls-files</em>, <em>diff</em>), will
3110 quote "unusual
" characters in the pathname by enclosing the
3111 pathname in double-quotes and escaping those characters with
3112 backslashes in the same way C escapes control characters (e.g.
3113 \t for TAB, \n for LF, \\ for backslash) or bytes with
3114 values larger than 0x80 (e.g. octal \302\265 for "micro
" in
3115 UTF-8). If this variable is set to false, bytes higher than
3116 0x80 are not considered "unusual
" any more. Double-quotes,
3117 backslash and control characters are always escaped regardless
3118 of the setting of this variable. A simple space character is
3119 not considered "unusual
". Many commands can output pathnames
3120 completely verbatim using the <code>-z</code> option. The default value
3123 <dt class="hdlist1
">core.eol</dt>
3125 <p>Sets the line ending type to use in the working directory for
3126 files that are marked as text (either by having the <code>text</code>
3127 attribute set, or by having <code>text=auto</code> and Git auto-detecting
3128 the contents as text).
3129 Alternatives are <em>lf</em>, <em>crlf</em> and <em>native</em>, which uses the platform’s
3130 native line ending. The default value is <code>native</code>. See
3131 <a href="gitattributes.html
">gitattributes(5)</a> for more information on end-of-line
3132 conversion. Note that this value is ignored if <code>core.autocrlf</code>
3133 is set to <code>true</code> or <code>input</code>.</p>
3135 <dt class="hdlist1
">core.safecrlf</dt>
3137 <p>If true, makes Git check if converting <code>CRLF</code> is reversible when
3138 end-of-line conversion is active. Git will verify if a command
3139 modifies a file in the work tree either directly or indirectly.
3140 For example, committing a file followed by checking out the
3141 same file should yield the original file in the work tree. If
3142 this is not the case for the current setting of
3143 <code>core.autocrlf</code>, Git will reject the file. The variable can
3144 be set to "warn
", in which case Git will only warn about an
3145 irreversible conversion but continue the operation.</p>
3146 <div class="paragraph
">
3147 <p>CRLF conversion bears a slight chance of corrupting data.
3148 When it is enabled, Git will convert CRLF to LF during commit and LF to
3149 CRLF during checkout. A file that contains a mixture of LF and
3150 CRLF before the commit cannot be recreated by Git. For text
3151 files this is the right thing to do: it corrects line endings
3152 such that we have only LF line endings in the repository.
3153 But for binary files that are accidentally classified as text the
3154 conversion can corrupt data.</p>
3156 <div class="paragraph
">
3157 <p>If you recognize such corruption early you can easily fix it by
3158 setting the conversion type explicitly in .gitattributes. Right
3159 after committing you still have the original file in your work
3160 tree and this file is not yet corrupted. You can explicitly tell
3161 Git that this file is binary and Git will handle the file
3164 <div class="paragraph
">
3165 <p>Unfortunately, the desired effect of cleaning up text files with
3166 mixed line endings and the undesired effect of corrupting binary
3167 files cannot be distinguished. In both cases CRLFs are removed
3168 in an irreversible way. For text files this is the right thing
3169 to do because CRLFs are line endings, while for binary files
3170 converting CRLFs corrupts data.</p>
3172 <div class="paragraph
">
3173 <p>Note, this safety check does not mean that a checkout will generate a
3174 file identical to the original file for a different setting of
3175 <code>core.eol</code> and <code>core.autocrlf</code>, but only for the current one. For
3176 example, a text file with <code>LF</code> would be accepted with <code>core.eol=lf</code>
3177 and could later be checked out with <code>core.eol=crlf</code>, in which case the
3178 resulting file would contain <code>CRLF</code>, although the original file
3179 contained <code>LF</code>. However, in both work trees the line endings would be
3180 consistent, that is either all <code>LF</code> or all <code>CRLF</code>, but never mixed. A
3181 file with mixed line endings would be reported by the <code>core.safecrlf</code>
3185 <dt class="hdlist1
">core.autocrlf</dt>
3187 <p>Setting this variable to "true
" is the same as setting
3188 the <code>text</code> attribute to "auto
" on all files and core.eol to "crlf
".
3189 Set to true if you want to have <code>CRLF</code> line endings in your
3190 working directory and the repository has LF line endings.
3191 This variable can be set to <em>input</em>,
3192 in which case no output conversion is performed.</p>
3194 <dt class="hdlist1
">core.checkRoundtripEncoding</dt>
3196 <p>A comma and/or whitespace separated list of encodings that Git
3197 performs UTF-8 round trip checks on if they are used in an
3198 <code>working-tree-encoding</code> attribute (see <a href="gitattributes.html
">gitattributes(5)</a>).
3199 The default value is <code>SHIFT-JIS</code>.</p>
3201 <dt class="hdlist1
">core.symlinks</dt>
3203 <p>If false, symbolic links are checked out as small plain files that
3204 contain the link text. <a href="git-update-index.html
">git-update-index(1)</a> and
3205 <a href="git-add.html
">git-add(1)</a> will not change the recorded type to regular
3206 file. Useful on filesystems like FAT that do not support
3208 <div class="paragraph
">
3209 <p>The default is true, except <a href="git-clone.html
">git-clone(1)</a> or <a href="git-init.html
">git-init(1)</a>
3210 will probe and set core.symlinks false if appropriate when the repository
3214 <dt class="hdlist1
">core.gitProxy</dt>
3216 <p>A "proxy command
" to execute (as <em>command host port</em>) instead
3217 of establishing direct connection to the remote server when
3218 using the Git protocol for fetching. If the variable value is
3219 in the "COMMAND for DOMAIN
" format, the command is applied only
3220 on hostnames ending with the specified domain string. This variable
3221 may be set multiple times and is matched in the given order;
3222 the first match wins.</p>
3223 <div class="paragraph
">
3224 <p>Can be overridden by the <code>GIT_PROXY_COMMAND</code> environment variable
3225 (which always applies universally, without the special "for
"
3228 <div class="paragraph
">
3229 <p>The special string <code>none</code> can be used as the proxy command to
3230 specify that no proxy be used for a given domain pattern.
3231 This is useful for excluding servers inside a firewall from
3232 proxy use, while defaulting to a common proxy for external domains.</p>
3235 <dt class="hdlist1
">core.sshCommand</dt>
3237 <p>If this variable is set, <code>git</code> <code>fetch</code> and <code>git</code> <code>push</code> will
3238 use the specified command instead of <code>ssh</code> when they need to
3239 connect to a remote system. The command is in the same form as
3240 the <code>GIT_SSH_COMMAND</code> environment variable and is overridden
3241 when the environment variable is set.</p>
3243 <dt class="hdlist1
">core.ignoreStat</dt>
3245 <p>If true, Git will avoid using lstat() calls to detect if files have
3246 changed by setting the "assume-unchanged
" bit for those tracked files
3247 which it has updated identically in both the index and working tree.</p>
3248 <div class="paragraph
">
3249 <p>When files are modified outside of Git, the user will need to stage
3250 the modified files explicitly (e.g. see <em>Examples</em> section in
3251 <a href="git-update-index.html
">git-update-index(1)</a>).
3252 Git will not normally detect changes to those files.</p>
3254 <div class="paragraph
">
3255 <p>This is useful on systems where lstat() calls are very slow, such as
3256 CIFS/Microsoft Windows.</p>
3258 <div class="paragraph
">
3259 <p>False by default.</p>
3262 <dt class="hdlist1
">core.preferSymlinkRefs</dt>
3264 <p>Instead of the default "symref
" format for HEAD
3265 and other symbolic reference files, use symbolic links.
3266 This is sometimes needed to work with old scripts that
3267 expect HEAD to be a symbolic link.</p>
3269 <dt class="hdlist1
">core.alternateRefsCommand</dt>
3271 <p>When advertising tips of available history from an alternate, use the shell to
3272 execute the specified command instead of <a href="git-for-each-ref.html
">git-for-each-ref(1)</a>. The
3273 first argument is the absolute path of the alternate. Output must contain one
3274 hex object id per line (i.e., the same as produced by <code>git</code> <code>for-each-ref</code>
3275 <code>--format=</code>'%(<code>objectname</code>)').</p>
3276 <div class="paragraph
">
3277 <p>Note that you cannot generally put <code>git</code> <code>for-each-ref</code> directly into the config
3278 value, as it does not take a repository path as an argument (but you can wrap
3279 the command above in a shell script).</p>
3282 <dt class="hdlist1
">core.alternateRefsPrefixes</dt>
3284 <p>When listing references from an alternate, list only references that begin
3285 with the given prefix. Prefixes match as if they were given as arguments to
3286 <a href="git-for-each-ref.html
">git-for-each-ref(1)</a>. To list multiple prefixes, separate them with
3287 whitespace. If <code>core.alternateRefsCommand</code> is set, setting
3288 <code>core.alternateRefsPrefixes</code> has no effect.</p>
3290 <dt class="hdlist1
">core.bare</dt>
3292 <p>If true this repository is assumed to be <em>bare</em> and has no
3293 working directory associated with it. If this is the case a
3294 number of commands that require a working directory will be
3295 disabled, such as <a href="git-add.html
">git-add(1)</a> or <a href="git-merge.html
">git-merge(1)</a>.</p>
3296 <div class="paragraph
">
3297 <p>This setting is automatically guessed by <a href="git-clone.html
">git-clone(1)</a> or
3298 <a href="git-init.html
">git-init(1)</a> when the repository was created. By default a
3299 repository that ends in "/.git
" is assumed to be not bare (bare =
3300 false), while all other repositories are assumed to be bare (bare
3304 <dt class="hdlist1
">core.worktree</dt>
3306 <p>Set the path to the root of the working tree.
3307 If <code>GIT_COMMON_DIR</code> environment variable is set, core.worktree
3308 is ignored and not used for determining the root of working tree.
3309 This can be overridden by the <code>GIT_WORK_TREE</code> environment
3310 variable and the <code>--work-tree</code> command-line option.
3311 The value can be an absolute path or relative to the path to
3312 the .git directory, which is either specified by --git-dir
3313 or GIT_DIR, or automatically discovered.
3314 If --git-dir or GIT_DIR is specified but none of
3315 --work-tree, GIT_WORK_TREE and core.worktree is specified,
3316 the current working directory is regarded as the top level
3317 of your working tree.</p>
3318 <div class="paragraph
">
3319 <p>Note that this variable is honored even when set in a configuration
3320 file in a ".git
" subdirectory of a directory and its value differs
3321 from the latter directory (e.g. "/path/to/.git/config
" has
3322 core.worktree set to "/different/path
"), which is most likely a
3323 misconfiguration. Running Git commands in the "/path/to
" directory will
3324 still use "/different/path
" as the root of the work tree and can cause
3325 confusion unless you know what you are doing (e.g. you are creating a
3326 read-only snapshot of the same index to a location different from the
3327 repository’s usual working tree).</p>
3330 <dt class="hdlist1
">core.logAllRefUpdates</dt>
3332 <p>Enable the reflog. Updates to a ref <ref> is logged to the file
3333 "<code>$GIT_DIR/logs/
</code><em><ref
></em>", by appending the new and old
3334 SHA-1, the date/time and the reason of the update, but
3335 only when the file exists. If this configuration
3336 variable is set to <code>true</code>, missing "<code>$GIT_DIR/logs/
</code><em><ref
></em>"
3337 file is automatically created for branch heads (i.e. under
3338 <code>refs/heads/</code>), remote refs (i.e. under <code>refs/remotes/</code>),
3339 note refs (i.e. under <code>refs/notes/</code>), and the symbolic ref <code>HEAD</code>.
3340 If it is set to <code>always</code>, then a missing reflog is automatically
3341 created for any ref under <code>refs/</code>.</p>
3342 <div class="paragraph
">
3343 <p>This information can be used to determine what commit
3344 was the tip of a branch "2 days ago
".</p>
3346 <div class="paragraph
">
3347 <p>This value is true by default in a repository that has
3348 a working directory associated with it, and false by
3349 default in a bare repository.</p>
3352 <dt class="hdlist1
">core.repositoryFormatVersion</dt>
3354 <p>Internal variable identifying the repository format and layout
3355 version. See <a href="gitrepository-layout.html
">gitrepository-layout(5)</a>.</p>
3357 <dt class="hdlist1
">core.sharedRepository</dt>
3359 <p>When <em>group</em> (or <em>true</em>), the repository is made shareable between
3360 several users in a group (making sure all the files and objects are
3361 group-writable). When <em>all</em> (or <em>world</em> or <em>everybody</em>), the
3362 repository will be readable by all users, additionally to being
3363 group-shareable. When <em>umask</em> (or <em>false</em>), Git will use permissions
3364 reported by umask(2). When <em>0xxx</em>, where <em>0xxx</em> is an octal number,
3365 files in the repository will have this mode value. <em>0xxx</em> will override
3366 user’s umask value (whereas the other options will only override
3367 requested parts of the user’s umask value). Examples: <em>0660</em> will make
3368 the repo read/write-able for the owner and group, but inaccessible to
3369 others (equivalent to <em>group</em> unless umask is e.g. <em>0022</em>). <em>0640</em> is a
3370 repository that is group-readable but not group-writable.
3371 See <a href="git-init.html
">git-init(1)</a>. False by default.</p>
3373 <dt class="hdlist1
">core.warnAmbiguousRefs</dt>
3375 <p>If true, Git will warn you if the ref name you passed it is ambiguous
3376 and might match multiple refs in the repository. True by default.</p>
3378 <dt class="hdlist1
">core.compression</dt>
3380 <p>An integer -1..9, indicating a default compression level.
3381 -1 is the zlib default. 0 means no compression,
3382 and 1..9 are various speed/size tradeoffs, 9 being slowest.
3383 If set, this provides a default to other compression variables,
3384 such as <code>core.looseCompression</code> and <code>pack.compression</code>.</p>
3386 <dt class="hdlist1
">core.looseCompression</dt>
3388 <p>An integer -1..9, indicating the compression level for objects that
3389 are not in a pack file. -1 is the zlib default. 0 means no
3390 compression, and 1..9 are various speed/size tradeoffs, 9 being
3391 slowest. If not set, defaults to core.compression. If that is
3392 not set, defaults to 1 (best speed).</p>
3394 <dt class="hdlist1
">core.packedGitWindowSize</dt>
3396 <p>Number of bytes of a pack file to map into memory in a
3397 single mapping operation. Larger window sizes may allow
3398 your system to process a smaller number of large pack files
3399 more quickly. Smaller window sizes will negatively affect
3400 performance due to increased calls to the operating system’s
3401 memory manager, but may improve performance when accessing
3402 a large number of large pack files.</p>
3403 <div class="paragraph
">
3404 <p>Default is 1 MiB if NO_MMAP was set at compile time, otherwise 32
3405 MiB on 32 bit platforms and 1 GiB on 64 bit platforms. This should
3406 be reasonable for all users/operating systems. You probably do
3407 not need to adjust this value.</p>
3409 <div class="paragraph
">
3410 <p>Common unit suffixes of <em>k</em>, <em>m</em>, or <em>g</em> are supported.</p>
3413 <dt class="hdlist1
">core.packedGitLimit</dt>
3415 <p>Maximum number of bytes to map simultaneously into memory
3416 from pack files. If Git needs to access more than this many
3417 bytes at once to complete an operation it will unmap existing
3418 regions to reclaim virtual address space within the process.</p>
3419 <div class="paragraph
">
3420 <p>Default is 256 MiB on 32 bit platforms and 32 TiB (effectively
3421 unlimited) on 64 bit platforms.
3422 This should be reasonable for all users/operating systems, except on
3423 the largest projects. You probably do not need to adjust this value.</p>
3425 <div class="paragraph
">
3426 <p>Common unit suffixes of <em>k</em>, <em>m</em>, or <em>g</em> are supported.</p>
3429 <dt class="hdlist1
">core.deltaBaseCacheLimit</dt>
3431 <p>Maximum number of bytes per thread to reserve for caching base objects
3432 that may be referenced by multiple deltified objects. By storing the
3433 entire decompressed base objects in a cache Git is able
3434 to avoid unpacking and decompressing frequently used base
3435 objects multiple times.</p>
3436 <div class="paragraph
">
3437 <p>Default is 96 MiB on all platforms. This should be reasonable
3438 for all users/operating systems, except on the largest projects.
3439 You probably do not need to adjust this value.</p>
3441 <div class="paragraph
">
3442 <p>Common unit suffixes of <em>k</em>, <em>m</em>, or <em>g</em> are supported.</p>
3445 <dt class="hdlist1
">core.bigFileThreshold</dt>
3447 <p>The size of files considered "big
", which as discussed below
3448 changes the behavior of numerous git commands, as well as how
3449 such files are stored within the repository. The default is
3450 512 MiB. Common unit suffixes of <em>k</em>, <em>m</em>, or <em>g</em> are
3452 <div class="paragraph
">
3453 <p>Files above the configured limit will be:</p>
3458 <p>Stored deflated in packfiles, without attempting delta compression.</p>
3459 <div class="paragraph
">
3460 <p>The default limit is primarily set with this use-case in mind. With it,
3461 most projects will have their source code and other text files delta
3462 compressed, but not larger binary media files.</p>
3464 <div class="paragraph
">
3465 <p>Storing large files without delta compression avoids excessive memory
3466 usage, at the slight expense of increased disk usage.</p>
3470 <p>Will be treated as if they were labeled "binary
" (see
3471 <a href="gitattributes.html
">gitattributes(5)</a>). e.g. <a href="git-log.html
">git-log(1)</a> and
3472 <a href="git-diff.html
">git-diff(1)</a> will not compute diffs for files above this limit.</p>
3475 <p>Will generally be streamed when written, which avoids excessive
3476 memory usage, at the cost of some fixed overhead. Commands that make
3477 use of this include <a href="git-archive.html
">git-archive(1)</a>,
3478 <a href="git-fast-import.html
">git-fast-import(1)</a>, <a href="git-index-pack.html
">git-index-pack(1)</a>,
3479 <a href="git-unpack-objects.html
">git-unpack-objects(1)</a> and <a href="git-fsck.html
">git-fsck(1)</a>.</p>
3484 <dt class="hdlist1
">core.excludesFile</dt>
3486 <p>Specifies the pathname to the file that contains patterns to
3487 describe paths that are not meant to be tracked, in addition
3488 to .<code>gitignore</code> (per-directory) and .<code>git/info/exclude</code>.
3489 Defaults to <code>$XDG_CONFIG_HOME/git/ignore</code>.
3490 If <code>$XDG_CONFIG_HOME</code> is either not set or empty, <code>$HOME/.config/git/ignore</code>
3491 is used instead. See <a href="gitignore.html
">gitignore(5)</a>.</p>
3493 <dt class="hdlist1
">core.askPass</dt>
3495 <p>Some commands (e.g. svn and http interfaces) that interactively
3496 ask for a password can be told to use an external program given
3497 via the value of this variable. Can be overridden by the <code>GIT_ASKPASS</code>
3498 environment variable. If not set, fall back to the value of the
3499 <code>SSH_ASKPASS</code> environment variable or, failing that, a simple password
3500 prompt. The external program shall be given a suitable prompt as
3501 command-line argument and write the password on its STDOUT.</p>
3503 <dt class="hdlist1
">core.attributesFile</dt>
3505 <p>In addition to .<code>gitattributes</code> (per-directory) and
3506 .<code>git/info/attributes</code>, Git looks into this file for attributes
3507 (see <a href="gitattributes.html
">gitattributes(5)</a>). Path expansions are made the same
3508 way as for <code>core.excludesFile</code>. Its default value is
3509 <code>$XDG_CONFIG_HOME/git/attributes</code>. If <code>$XDG_CONFIG_HOME</code> is either not
3510 set or empty, <code>$HOME/.config/git/attributes</code> is used instead.</p>
3512 <dt class="hdlist1
">core.hooksPath</dt>
3514 <p>By default Git will look for your hooks in the
3515 <code>$GIT_DIR/hooks</code> directory. Set this to different path,
3516 e.g. <code>/etc/git/hooks</code>, and Git will try to find your hooks in
3517 that directory, e.g. <code>/etc/git/hooks/pre-receive</code> instead of
3518 in <code>$GIT_DIR/hooks/pre-receive</code>.</p>
3519 <div class="paragraph
">
3520 <p>The path can be either absolute or relative. A relative path is
3521 taken as relative to the directory where the hooks are run (see
3522 the "DESCRIPTION
" section of <a href="githooks.html
">githooks(5)</a>).</p>
3524 <div class="paragraph
">
3525 <p>This configuration variable is useful in cases where you’d like to
3526 centrally configure your Git hooks instead of configuring them on a
3527 per-repository basis, or as a more flexible and centralized
3528 alternative to having an <code>init.templateDir</code> where you’ve changed
3532 <dt class="hdlist1
">core.editor</dt>
3534 <p>Commands such as <code>commit</code> and <code>tag</code> that let you edit
3535 messages by launching an editor use the value of this
3536 variable when it is set, and the environment variable
3537 <code>GIT_EDITOR</code> is not set. See <a href="git-var.html
">git-var(1)</a>.</p>
3539 <dt class="hdlist1
">core.commentChar</dt>
3540 <dt class="hdlist1
">core.commentString</dt>
3542 <p>Commands such as <code>commit</code> and <code>tag</code> that let you edit
3543 messages consider a line that begins with this character
3544 commented, and removes them after the editor returns
3545 (default <em>#</em>).</p>
3546 <div class="paragraph
">
3547 <p>If set to "auto
", <code>git-commit</code> would select a character that is not
3548 the beginning character of any line in existing commit messages.</p>
3550 <div class="paragraph
">
3551 <p>Note that these two variables are aliases of each other, and in modern
3552 versions of Git you are free to use a string (e.g., <code>//</code> or ⁑⁕⁑) with
3553 <code>commentChar</code>. Versions of Git prior to v2.45.0 will ignore
3554 <code>commentString</code> but will reject a value of <code>commentChar</code> that consists
3555 of more than a single ASCII byte. If you plan to use your config with
3556 older and newer versions of Git, you may want to specify both:</p>
3558 <div class="literalblock
">
3559 <div class="content
">
3561 # single character for older versions
3563 # string for newer versions (which will override commentChar
3564 # because it comes later in the file)
3565 commentString = "//
"</pre>
3569 <dt class="hdlist1
">core.filesRefLockTimeout</dt>
3571 <p>The length of time, in milliseconds, to retry when trying to
3572 lock an individual reference. Value 0 means not to retry at
3573 all; -1 means to try indefinitely. Default is 100 (i.e.,
3574 retry for 100ms).</p>
3576 <dt class="hdlist1
">core.packedRefsTimeout</dt>
3578 <p>The length of time, in milliseconds, to retry when trying to
3579 lock the <code>packed-refs</code> file. Value 0 means not to retry at
3580 all; -1 means to try indefinitely. Default is 1000 (i.e.,
3581 retry for 1 second).</p>
3583 <dt class="hdlist1
">core.pager</dt>
3585 <p>Text viewer for use by Git commands (e.g., <em>less</em>). The value
3586 is meant to be interpreted by the shell. The order of preference
3587 is the <code>$GIT_PAGER</code> environment variable, then <code>core.pager</code>
3588 configuration, then <code>$PAGER</code>, and then the default chosen at
3589 compile time (usually <em>less</em>).</p>
3590 <div class="paragraph
">
3591 <p>When the <code>LESS</code> environment variable is unset, Git sets it to <code>FRX</code>
3592 (if <code>LESS</code> environment variable is set, Git does not change it at
3593 all). If you want to selectively override Git’s default setting
3594 for <code>LESS</code>, you can set <code>core.pager</code> to e.g. <code>less</code> <code>-S</code>. This will
3595 be passed to the shell by Git, which will translate the final
3596 command to <code>LESS=FRX</code> <code>less</code> <code>-S</code>. The environment does not set the
3597 <code>S</code> option but the command line does, instructing less to truncate
3598 long lines. Similarly, setting <code>core.pager</code> to <code>less</code> <code>-+F</code> will
3599 deactivate the <code>F</code> option specified by the environment from the
3600 command-line, deactivating the "quit if one screen
" behavior of
3601 <code>less</code>. One can specifically activate some flags for particular
3602 commands: for example, setting <code>pager.blame</code> to <code>less</code> <code>-S</code> enables
3603 line truncation only for <code>git</code> <code>blame</code>.</p>
3605 <div class="paragraph
">
3606 <p>Likewise, when the <code>LV</code> environment variable is unset, Git sets it
3607 to <code>-c</code>. You can override this setting by exporting <code>LV</code> with
3608 another value or setting <code>core.pager</code> to <code>lv</code> <code>+c</code>.</p>
3611 <dt class="hdlist1
">core.whitespace</dt>
3613 <p>A comma separated list of common whitespace problems to
3614 notice. <em>git diff</em> will use <code>color.diff.whitespace</code> to
3615 highlight them, and <em>git apply --whitespace=error</em> will
3616 consider them as errors. You can prefix <code>-</code> to disable
3617 any of them (e.g. <code>-trailing-space</code>):</p>
3621 <p><code>blank-at-eol</code> treats trailing whitespaces at the end of the line
3622 as an error (enabled by default).</p>
3625 <p><code>space-before-tab</code> treats a space character that appears immediately
3626 before a tab character in the initial indent part of the line as an
3627 error (enabled by default).</p>
3630 <p><code>indent-with-non-tab</code> treats a line that is indented with space
3631 characters instead of the equivalent tabs as an error (not enabled by
3635 <p><code>tab-in-indent</code> treats a tab character in the initial indent part of
3636 the line as an error (not enabled by default).</p>
3639 <p><code>blank-at-eof</code> treats blank lines added at the end of file as an error
3640 (enabled by default).</p>
3643 <p><code>trailing-space</code> is a short-hand to cover both <code>blank-at-eol</code> and
3644 <code>blank-at-eof</code>.</p>
3647 <p><code>cr-at-eol</code> treats a carriage-return at the end of line as
3648 part of the line terminator, i.e. with it, <code>trailing-space</code>
3649 does not trigger if the character before such a carriage-return
3650 is not a whitespace (not enabled by default).</p>
3653 <p><code>tabwidth=</code><em><n></em> tells how many character positions a tab occupies; this
3654 is relevant for <code>indent-with-non-tab</code> and when Git fixes <code>tab-in-indent</code>
3655 errors. The default tab width is 8. Allowed values are 1 to 63.</p>
3660 <dt class="hdlist1
">core.fsync</dt>
3662 <p>A comma-separated list of components of the repository that
3663 should be hardened via the core.fsyncMethod when created or
3664 modified. You can disable hardening of any component by
3665 prefixing it with a <em>-</em>. Items that are not hardened may be
3666 lost in the event of an unclean system shutdown. Unless you
3667 have special requirements, it is recommended that you leave
3668 this option empty or pick one of <code>committed</code>, <code>added</code>,
3669 or <code>all</code>.</p>
3670 <div class="paragraph
">
3671 <p>When this configuration is encountered, the set of components starts with
3672 the platform default value, disabled components are removed, and additional
3673 components are added. <code>none</code> resets the state so that the platform default
3676 <div class="paragraph
">
3677 <p>The empty string resets the fsync configuration to the platform
3678 default. The default on most platforms is equivalent to
3679 <code>core.fsync=committed,-loose-object</code>, which has good performance,
3680 but risks losing recent work in the event of an unclean system shutdown.</p>
3685 <p><code>none</code> clears the set of fsynced components.</p>
3688 <p><code>loose-object</code> hardens objects added to the repo in loose-object form.</p>
3691 <p><code>pack</code> hardens objects added to the repo in packfile form.</p>
3694 <p><code>pack-metadata</code> hardens packfile bitmaps and indexes.</p>
3697 <p><code>commit-graph</code> hardens the commit-graph file.</p>
3700 <p><code>index</code> hardens the index when it is modified.</p>
3703 <p><code>objects</code> is an aggregate option that is equivalent to
3704 <code>loose-object,pack</code>.</p>
3707 <p><code>reference</code> hardens references modified in the repo.</p>
3710 <p><code>derived-metadata</code> is an aggregate option that is equivalent to
3711 <code>pack-metadata,commit-graph</code>.</p>
3714 <p><code>committed</code> is an aggregate option that is currently equivalent to
3715 <code>objects</code>. This mode sacrifices some performance to ensure that work
3716 that is committed to the repository with <code>git</code> <code>commit</code> or similar commands
3720 <p><code>added</code> is an aggregate option that is currently equivalent to
3721 <code>committed,index</code>. This mode sacrifices additional performance to
3722 ensure that the results of commands like <code>git</code> <code>add</code> and similar operations
3726 <p><code>all</code> is an aggregate option that syncs all individual components above.</p>
3731 <dt class="hdlist1
">core.fsyncMethod</dt>
3733 <p>A value indicating the strategy Git will use to harden repository data
3734 using fsync and related primitives.</p>
3738 <p><code>fsync</code> uses the fsync() system call or platform equivalents.</p>
3741 <p><code>writeout-only</code> issues pagecache writeback requests, but depending on the
3742 filesystem and storage hardware, data added to the repository may not be
3743 durable in the event of a system crash. This is the default mode on macOS.</p>
3746 <p><code>batch</code> enables a mode that uses writeout-only flushes to stage multiple
3747 updates in the disk writeback cache and then does a single full fsync of
3748 a dummy file to trigger the disk cache flush at the end of the operation.</p>
3749 <div class="paragraph
">
3750 <p>Currently <code>batch</code> mode only applies to loose-object files. Other repository
3751 data is made durable as if <code>fsync</code> was specified. This mode is expected to
3752 be as safe as <code>fsync</code> on macOS for repos stored on HFS+ or APFS filesystems
3753 and on Windows for repos stored on NTFS or ReFS filesystems.</p>
3759 <dt class="hdlist1
">core.fsyncObjectFiles</dt>
3761 <p>This boolean will enable <em>fsync()</em> when writing object files.
3762 This setting is deprecated. Use core.fsync instead.</p>
3763 <div class="paragraph
">
3764 <p>This setting affects data added to the Git repository in loose-object
3765 form. When set to true, Git will issue an fsync or similar system call
3766 to flush caches so that loose-objects remain consistent in the face
3767 of a unclean system shutdown.</p>
3770 <dt class="hdlist1
">core.preloadIndex</dt>
3772 <p>Enable parallel index preload for operations like <em>git diff</em></p>
3773 <div class="paragraph
">
3774 <p>This can speed up operations like <em>git diff</em> and <em>git status</em> especially
3775 on filesystems like NFS that have weak caching semantics and thus
3776 relatively high IO latencies. When enabled, Git will do the
3777 index comparison to the filesystem data in parallel, allowing
3778 overlapping IO’s. Defaults to true.</p>
3781 <dt class="hdlist1
">core.unsetenvvars</dt>
3783 <p>Windows-only: comma-separated list of environment variables'
3784 names that need to be unset before spawning any other process.
3785 Defaults to <code>PERL5LIB</code> to account for the fact that Git for
3786 Windows insists on using its own Perl interpreter.</p>
3788 <dt class="hdlist1
">core.restrictinheritedhandles</dt>
3790 <p>Windows-only: override whether spawned processes inherit only standard
3791 file handles (<code>stdin</code>, <code>stdout</code> and <code>stderr</code>) or all handles. Can be
3792 <code>auto</code>, <code>true</code> or <code>false</code>. Defaults to <code>auto</code>, which means <code>true</code> on
3793 Windows 7 and later, and <code>false</code> on older Windows versions.</p>
3795 <dt class="hdlist1
">core.createObject</dt>
3797 <p>You can set this to <em>link</em>, in which case a hardlink followed by
3798 a delete of the source are used to make sure that object creation
3799 will not overwrite existing objects.</p>
3800 <div class="paragraph
">
3801 <p>On some file system/operating system combinations, this is unreliable.
3802 Set this config setting to <em>rename</em> there; however, this will remove the
3803 check that makes sure that existing object files will not get overwritten.</p>
3806 <dt class="hdlist1
">core.notesRef</dt>
3808 <p>When showing commit messages, also show notes which are stored in
3809 the given ref. The ref must be fully qualified. If the given
3810 ref does not exist, it is not an error but means that no
3811 notes should be printed.</p>
3812 <div class="paragraph
">
3813 <p>This setting defaults to "refs/notes/commits
", and it can be overridden by
3814 the <code>GIT_NOTES_REF</code> environment variable. See <a href="git-notes.html
">git-notes(1)</a>.</p>
3817 <dt class="hdlist1
">core.commitGraph</dt>
3819 <p>If true, then git will read the commit-graph file (if it exists)
3820 to parse the graph structure of commits. Defaults to true. See
3821 <a href="git-commit-graph.html
">git-commit-graph(1)</a> for more information.</p>
3823 <dt class="hdlist1
">core.useReplaceRefs</dt>
3825 <p>If set to <code>false</code>, behave as if the <code>--no-replace-objects</code>
3826 option was given on the command line. See <a href="git.html
">git(1)</a> and
3827 <a href="git-replace.html
">git-replace(1)</a> for more information.</p>
3829 <dt class="hdlist1
">core.multiPackIndex</dt>
3831 <p>Use the multi-pack-index file to track multiple packfiles using a
3832 single index. See <a href="git-multi-pack-index.html
">git-multi-pack-index(1)</a> for more
3833 information. Defaults to true.</p>
3835 <dt class="hdlist1
">core.sparseCheckout</dt>
3837 <p>Enable "sparse checkout
" feature. See <a href="git-sparse-checkout.html
">git-sparse-checkout(1)</a>
3838 for more information.</p>
3840 <dt class="hdlist1
">core.sparseCheckoutCone</dt>
3842 <p>Enables the "cone mode
" of the sparse checkout feature. When the
3843 sparse-checkout file contains a limited set of patterns, this
3844 mode provides significant performance advantages. The "non-cone
3845 mode
" can be requested to allow specifying more flexible
3846 patterns by setting this variable to <em>false</em>. See
3847 <a href="git-sparse-checkout.html
">git-sparse-checkout(1)</a> for more information.</p>
3849 <dt class="hdlist1
">core.abbrev</dt>
3851 <p>Set the length object names are abbreviated to. If
3852 unspecified or set to "auto
", an appropriate value is
3853 computed based on the approximate number of packed objects
3854 in your repository, which hopefully is enough for
3855 abbreviated object names to stay unique for some time.
3856 If set to "no
", no abbreviation is made and the object names
3857 are shown in their full length.
3858 The minimum length is 4.</p>
3860 <dt class="hdlist1
">core.maxTreeDepth</dt>
3862 <p>The maximum depth Git is willing to recurse while traversing a
3863 tree (e.g., "a/b/cde/f
" has a depth of 4). This is a fail-safe
3864 to allow Git to abort cleanly, and should not generally need to
3865 be adjusted. When Git is compiled with MSVC, the default is 512.
3866 Otherwise, the default is 2048.</p>
3868 <dt class="hdlist1
">credential.helper</dt>
3870 <p>Specify an external helper to be called when a username or
3871 password credential is needed; the helper may consult external
3872 storage to avoid prompting the user for the credentials. This is
3873 normally the name of a credential helper with possible
3874 arguments, but may also be an absolute path with arguments or, if
3875 preceded by !, shell commands.</p>
3876 <div class="paragraph
">
3877 <p>Note that multiple helpers may be defined. See <a href="gitcredentials.html
">gitcredentials(7)</a>
3878 for details and examples.</p>
3881 <dt class="hdlist1
">credential.interactive</dt>
3883 <p>By default, Git and any configured credential helpers will ask for
3884 user input when new credentials are required. Many of these helpers
3885 will succeed based on stored credentials if those credentials are
3886 still valid. To avoid the possibility of user interactivity from
3887 Git, set <code>credential.interactive=false</code>. Some credential helpers
3888 respect this option as well.</p>
3890 <dt class="hdlist1
">credential.useHttpPath</dt>
3892 <p>When acquiring credentials, consider the "path
" component of an http
3893 or https URL to be important. Defaults to false. See
3894 <a href="gitcredentials.html
">gitcredentials(7)</a> for more information.</p>
3896 <dt class="hdlist1
">credential.username</dt>
3898 <p>If no username is set for a network authentication, use this username
3899 by default. See credential.<context>.* below, and
3900 <a href="gitcredentials.html
">gitcredentials(7)</a>.</p>
3902 <dt class="hdlist1
">credential.<url>.*</dt>
3904 <p>Any of the credential.* options above can be applied selectively to
3905 some credentials. For example, "credential.https://example.com.username
"
3906 would set the default username only for https connections to
3907 example.com. See <a href="gitcredentials.html
">gitcredentials(7)</a> for details on how URLs are
3910 <dt class="hdlist1
">credentialCache.ignoreSIGHUP</dt>
3912 <p>Tell git-credential-cache—​daemon to ignore SIGHUP, instead of quitting.</p>
3914 <dt class="hdlist1
">credentialStore.lockTimeoutMS</dt>
3916 <p>The length of time, in milliseconds, for git-credential-store to retry
3917 when trying to lock the credentials file. A value of 0 means not to retry at
3918 all; -1 means to try indefinitely. Default is 1000 (i.e., retry for
3921 <dt class="hdlist1
"><code>diff.autoRefreshIndex</code></dt>
3923 <p>When using <code>git</code> <code>diff</code> to compare with work tree
3924 files, do not consider stat-only changes as changed.
3925 Instead, silently run <code>git</code> <code>update-index</code> <code>--refresh</code> to
3926 update the cached stat information for paths whose
3927 contents in the work tree match the contents in the
3928 index. This option defaults to <code>true</code>. Note that this
3929 affects only <code>git</code> <code>diff</code> Porcelain, and not lower level
3930 <code>diff</code> commands such as <code>git</code> <code>diff-files</code>.</p>
3932 <dt class="hdlist1
"><code>diff.dirstat</code></dt>
3934 <p>A comma separated list of <code>--dirstat</code> parameters specifying the
3935 default behavior of the <code>--dirstat</code> option to <a href="git-diff.html
">git-diff(1)</a>
3937 The defaults can be overridden on the command line
3938 (using <code>--dirstat=</code><em><param></em><code>,..</code>.). The fallback defaults
3939 (when not changed by <code>diff.dirstat</code>) are <code>changes,noncumulative,3</code>.
3940 The following parameters are available:</p>
3941 <div class="openblock
">
3942 <div class="content
">
3945 <dt class="hdlist1
"><code>changes</code></dt>
3947 <p>Compute the dirstat numbers by counting the lines that have been
3948 removed from the source, or added to the destination. This ignores
3949 the amount of pure code movements within a file. In other words,
3950 rearranging lines in a file is not counted as much as other changes.
3951 This is the default behavior when no parameter is given.</p>
3953 <dt class="hdlist1
"><code>lines</code></dt>
3955 <p>Compute the dirstat numbers by doing the regular line-based diff
3956 analysis, and summing the removed/added line counts. (For binary
3957 files, count 64-byte chunks instead, since binary files have no
3958 natural concept of lines). This is a more expensive <code>--dirstat</code>
3959 behavior than the <code>changes</code> behavior, but it does count rearranged
3960 lines within a file as much as other changes. The resulting output
3961 is consistent with what you get from the other <code>--</code>*stat options.</p>
3963 <dt class="hdlist1
"><code>files</code></dt>
3965 <p>Compute the dirstat numbers by counting the number of files changed.
3966 Each changed file counts equally in the dirstat analysis. This is
3967 the computationally cheapest <code>--dirstat</code> behavior, since it does
3968 not have to look at the file contents at all.</p>
3970 <dt class="hdlist1
"><code>cumulative</code></dt>
3972 <p>Count changes in a child directory for the parent directory as well.
3973 Note that when using <code>cumulative</code>, the sum of the percentages
3974 reported may exceed 100%. The default (non-cumulative) behavior can
3975 be specified with the <code>noncumulative</code> parameter.</p>
3977 <dt class="hdlist1
"><em><limit></em></dt>
3979 <p>An integer parameter specifies a cut-off percent (3% by default).
3980 Directories contributing less than this percentage of the changes
3981 are not shown in the output.</p>
3987 <div class="paragraph
">
3988 <p>Example: The following will count changed files, while ignoring
3989 directories with less than 10% of the total amount of changed files,
3990 and accumulating child directory counts in the parent directories:
3991 <code>files,10,cumulative</code>.</p>
3994 <dt class="hdlist1
"><code>diff.statNameWidth</code></dt>
3996 <p>Limit the width of the filename part in <code>--stat</code> output. If set, applies
3997 to all commands generating <code>--stat</code> output except <code>format-patch</code>.</p>
3999 <dt class="hdlist1
"><code>diff.statGraphWidth</code></dt>
4001 <p>Limit the width of the graph part in <code>--stat</code> output. If set, applies
4002 to all commands generating <code>--stat</code> output except <code>format-patch</code>.</p>
4004 <dt class="hdlist1
"><code>diff.context</code></dt>
4006 <p>Generate diffs with <em><n></em> lines of context instead of the default
4007 of 3. This value is overridden by the <code>-U</code> option.</p>
4009 <dt class="hdlist1
"><code>diff.interHunkContext</code></dt>
4011 <p>Show the context between diff hunks, up to the specified number
4012 of lines, thereby fusing the hunks that are close to each other.
4013 This value serves as the default for the <code>--inter-hunk-context</code>
4014 command line option.</p>
4016 <dt class="hdlist1
"><code>diff.external</code></dt>
4018 <p>If this config variable is set, diff generation is not
4019 performed using the internal diff machinery, but using the
4020 given command. Can be overridden with the <code>GIT_EXTERNAL_DIFF</code>
4021 environment variable. The command is called with parameters
4022 as described under "git Diffs
" in <a href="git.html
">git(1)</a>. Note: if
4023 you want to use an external diff program only on a subset of
4024 your files, you might want to use <a href="gitattributes.html
">gitattributes(5)</a> instead.</p>
4026 <dt class="hdlist1
"><code>diff.trustExitCode</code></dt>
4028 <p>If this boolean value is set to <code>true</code> then the
4029 <code>diff.external</code> command is expected to return exit code
4030 0 if it considers the input files to be equal or 1 if it
4031 considers them to be different, like <code>diff</code>(1).
4032 If it is set to <code>false</code>, which is the default, then the command
4033 is expected to return exit code <code>0</code> regardless of equality.
4034 Any other exit code causes Git to report a fatal error.</p>
4036 <dt class="hdlist1
"><code>diff.ignoreSubmodules</code></dt>
4038 <p>Sets the default value of <code>--ignore-submodules</code>. Note that this
4039 affects only <code>git</code> <code>diff</code> Porcelain, and not lower level <code>diff</code>
4040 commands such as <code>git</code> <code>diff-files</code>. <code>git</code> <code>checkout</code>
4041 and <code>git</code> <code>switch</code> also honor
4042 this setting when reporting uncommitted changes. Setting it to
4043 <code>all</code> disables the submodule summary normally shown by <code>git</code> <code>commit</code>
4044 and <code>git</code> <code>status</code> when <code>status.submoduleSummary</code> is set unless it is
4045 overridden by using the <code>--ignore-submodules</code> command-line option.
4046 The <code>git</code> <code>submodule</code> commands are not affected by this setting.
4047 By default this is set to untracked so that any untracked
4048 submodules are ignored.</p>
4050 <dt class="hdlist1
"><code>diff.mnemonicPrefix</code></dt>
4052 <p>If set, <code>git</code> <code>diff</code> uses a prefix pair that is different from the
4053 standard <code>a/</code> and <code>b/</code> depending on what is being compared. When
4054 this configuration is in effect, reverse diff output also swaps
4055 the order of the prefixes:</p>
4058 <dt class="hdlist1
"><code>git</code> <code>diff</code></dt>
4060 <p>compares the (i)ndex and the (w)ork tree;</p>
4062 <dt class="hdlist1
"><code>git</code> <code>diff</code> <code>HEAD</code></dt>
4064 <p>compares a (c)ommit and the (w)ork tree;</p>
4066 <dt class="hdlist1
"><code>git</code> <code>diff</code> <code>--cached</code></dt>
4068 <p>compares a (c)ommit and the (i)ndex;</p>
4070 <dt class="hdlist1
"><code>git</code> <code>diff</code> <code>HEAD:</code><em><file1></em> <em><file2></em></dt>
4072 <p>compares an (o)bject and a (w)ork tree entity;</p>
4074 <dt class="hdlist1
"><code>git</code> <code>diff</code> <code>--no-index</code> <em><a></em> <em><b></em></dt>
4076 <p>compares two non-git things <em><a></em> and <em><b></em>.</p>
4081 <dt class="hdlist1
"><code>diff.noPrefix</code></dt>
4083 <p>If set, <code>git</code> <code>diff</code> does not show any source or destination prefix.</p>
4085 <dt class="hdlist1
"><code>diff.srcPrefix</code></dt>
4087 <p>If set, <code>git</code> <code>diff</code> uses this source prefix. Defaults to <code>a/</code>.</p>
4089 <dt class="hdlist1
"><code>diff.dstPrefix</code></dt>
4091 <p>If set, <code>git</code> <code>diff</code> uses this destination prefix. Defaults to <code>b/</code>.</p>
4093 <dt class="hdlist1
"><code>diff.relative</code></dt>
4095 <p>If set to <code>true</code>, <code>git</code> <code>diff</code> does not show changes outside of the directory
4096 and show pathnames relative to the current directory.</p>
4098 <dt class="hdlist1
"><code>diff.orderFile</code></dt>
4100 <p>File indicating how to order files within a diff.
4101 See the <code>-O</code> option to <a href="git-diff.html
">git-diff(1)</a> for details.
4102 If <code>diff.orderFile</code> is a relative pathname, it is treated as
4103 relative to the top of the working tree.</p>
4105 <dt class="hdlist1
"><code>diff.renameLimit</code></dt>
4107 <p>The number of files to consider in the exhaustive portion of
4108 copy/rename detection; equivalent to the <code>git</code> <code>diff</code> option
4109 <code>-l</code>. If not set, the default value is currently 1000. This
4110 setting has no effect if rename detection is turned off.</p>
4112 <dt class="hdlist1
"><code>diff.renames</code></dt>
4114 <p>Whether and how Git detects renames. If set to <code>false</code>,
4115 rename detection is disabled. If set to <code>true</code>, basic rename
4116 detection is enabled. If set to <code>copies</code> or <code>copy</code>, Git will
4117 detect copies, as well. Defaults to <code>true</code>. Note that this
4118 affects only <code>git</code> <code>diff</code> Porcelain like <a href="git-diff.html
">git-diff(1)</a> and
4119 <a href="git-log.html
">git-log(1)</a>, and not lower level commands such as
4120 <a href="git-diff-files.html
">git-diff-files(1)</a>.</p>
4122 <dt class="hdlist1
"><code>diff.suppressBlankEmpty</code></dt>
4124 <p>A boolean to inhibit the standard behavior of printing a space
4125 before each empty output line. Defaults to <code>false</code>.</p>
4127 <dt class="hdlist1
"><code>diff.submodule</code></dt>
4129 <p>Specify the format in which differences in submodules are
4130 shown. The <code>short</code> format just shows the names of the commits
4131 at the beginning and end of the range. The <code>log</code> format lists
4132 the commits in the range like <a href="git-submodule.html
">git-submodule(1)</a> <code>summary</code>
4133 does. The <code>diff</code> format shows an inline diff of the changed
4134 contents of the submodule. Defaults to <code>short</code>.</p>
4136 <dt class="hdlist1
"><code>diff.wordRegex</code></dt>
4138 <p>A POSIX Extended Regular Expression used to determine what is a "word
"
4139 when performing word-by-word difference calculations. Character
4140 sequences that match the regular expression are "words
", all other
4141 characters are <strong>ignorable</strong> whitespace.</p>
4143 <dt class="hdlist1
"><code>diff.</code><em><driver></em><code>.command</code></dt>
4145 <p>The custom diff driver command. See <a href="gitattributes.html
">gitattributes(5)</a>
4148 <dt class="hdlist1
"><code>diff.</code><em><driver></em><code>.trustExitCode</code></dt>
4150 <p>If this boolean value is set to <code>true</code> then the
4151 <code>diff.</code><em><driver></em><code>.command</code> command is expected to return exit code
4152 0 if it considers the input files to be equal or 1 if it
4153 considers them to be different, like <code>diff</code>(1).
4154 If it is set to <code>false</code>, which is the default, then the command
4155 is expected to return exit code 0 regardless of equality.
4156 Any other exit code causes Git to report a fatal error.</p>
4158 <dt class="hdlist1
"><code>diff.</code><em><driver></em><code>.xfuncname</code></dt>
4160 <p>The regular expression that the diff driver should use to
4161 recognize the hunk header. A built-in pattern may also be used.
4162 See <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
4164 <dt class="hdlist1
"><code>diff.</code><em><driver></em><code>.binary</code></dt>
4166 <p>Set this option to <code>true</code> to make the diff driver treat files as
4167 binary. See <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
4169 <dt class="hdlist1
"><code>diff.</code><em><driver></em><code>.textconv</code></dt>
4171 <p>The command that the diff driver should call to generate the
4172 text-converted version of a file. The result of the
4173 conversion is used to generate a human-readable diff. See
4174 <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
4176 <dt class="hdlist1
"><code>diff.</code><em><driver></em><code>.wordRegex</code></dt>
4178 <p>The regular expression that the diff driver should use to
4179 split words in a line. See <a href="gitattributes.html
">gitattributes(5)</a> for
4182 <dt class="hdlist1
"><code>diff.</code><em><driver></em><code>.cachetextconv</code></dt>
4184 <p>Set this option to <code>true</code> to make the diff driver cache the text
4185 conversion outputs. See <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
4188 <dt class="hdlist1
"><code>araxis</code></dt>
4190 <p>Use Araxis Merge (requires a graphical session)</p>
4192 <dt class="hdlist1
"><code>bc</code></dt>
4194 <p>Use Beyond Compare (requires a graphical session)</p>
4196 <dt class="hdlist1
"><code>bc3</code></dt>
4198 <p>Use Beyond Compare (requires a graphical session)</p>
4200 <dt class="hdlist1
"><code>bc4</code></dt>
4202 <p>Use Beyond Compare (requires a graphical session)</p>
4204 <dt class="hdlist1
"><code>codecompare</code></dt>
4206 <p>Use Code Compare (requires a graphical session)</p>
4208 <dt class="hdlist1
"><code>deltawalker</code></dt>
4210 <p>Use DeltaWalker (requires a graphical session)</p>
4212 <dt class="hdlist1
"><code>diffmerge</code></dt>
4214 <p>Use DiffMerge (requires a graphical session)</p>
4216 <dt class="hdlist1
"><code>diffuse</code></dt>
4218 <p>Use Diffuse (requires a graphical session)</p>
4220 <dt class="hdlist1
"><code>ecmerge</code></dt>
4222 <p>Use ECMerge (requires a graphical session)</p>
4224 <dt class="hdlist1
"><code>emerge</code></dt>
4226 <p>Use Emacs' Emerge</p>
4228 <dt class="hdlist1
"><code>examdiff</code></dt>
4230 <p>Use ExamDiff Pro (requires a graphical session)</p>
4232 <dt class="hdlist1
"><code>guiffy</code></dt>
4234 <p>Use Guiffy’s Diff Tool (requires a graphical session)</p>
4236 <dt class="hdlist1
"><code>gvimdiff</code></dt>
4238 <p>Use gVim (requires a graphical session)</p>
4240 <dt class="hdlist1
"><code>kdiff3</code></dt>
4242 <p>Use KDiff3 (requires a graphical session)</p>
4244 <dt class="hdlist1
"><code>kompare</code></dt>
4246 <p>Use Kompare (requires a graphical session)</p>
4248 <dt class="hdlist1
"><code>meld</code></dt>
4250 <p>Use Meld (requires a graphical session)</p>
4252 <dt class="hdlist1
"><code>nvimdiff</code></dt>
4256 <dt class="hdlist1
"><code>opendiff</code></dt>
4258 <p>Use FileMerge (requires a graphical session)</p>
4260 <dt class="hdlist1
"><code>p4merge</code></dt>
4262 <p>Use HelixCore P4Merge (requires a graphical session)</p>
4264 <dt class="hdlist1
"><code>smerge</code></dt>
4266 <p>Use Sublime Merge (requires a graphical session)</p>
4268 <dt class="hdlist1
"><code>tkdiff</code></dt>
4270 <p>Use TkDiff (requires a graphical session)</p>
4272 <dt class="hdlist1
"><code>vimdiff</code></dt>
4276 <dt class="hdlist1
"><code>vscode</code></dt>
4278 <p>Use Visual Studio Code (requires a graphical session)</p>
4280 <dt class="hdlist1
"><code>winmerge</code></dt>
4282 <p>Use WinMerge (requires a graphical session)</p>
4284 <dt class="hdlist1
"><code>xxdiff</code></dt>
4286 <p>Use xxdiff (requires a graphical session)</p>
4291 <dt class="hdlist1
"><code>diff.indentHeuristic</code></dt>
4293 <p>Set this option to <code>false</code> to disable the default heuristics
4294 that shift diff hunk boundaries to make patches easier to read.</p>
4296 <dt class="hdlist1
"><code>diff.algorithm</code></dt>
4298 <p>Choose a diff algorithm. The variants are as follows:</p>
4299 <div class="openblock
">
4300 <div class="content
">
4303 <dt class="hdlist1
"><code>default</code></dt>
4304 <dt class="hdlist1
"><code>myers</code></dt>
4306 <p>The basic greedy diff algorithm. Currently, this is the default.</p>
4308 <dt class="hdlist1
"><code>minimal</code></dt>
4310 <p>Spend extra time to make sure the smallest possible diff is
4313 <dt class="hdlist1
"><code>patience</code></dt>
4315 <p>Use "patience diff
" algorithm when generating patches.</p>
4317 <dt class="hdlist1
"><code>histogram</code></dt>
4319 <p>This algorithm extends the patience algorithm to "support
4320 low-occurrence common elements
".</p>
4327 <dt class="hdlist1
"><code>diff.wsErrorHighlight</code></dt>
4329 <p>Highlight whitespace errors in the <code>context</code>, <code>old</code> or <code>new</code>
4330 lines of the diff. Multiple values are separated by comma,
4331 <code>none</code> resets previous values, <code>default</code> reset the list to
4332 <code>new</code> and <code>all</code> is a shorthand for <code>old,new,context</code>. The
4333 whitespace errors are colored with <code>color.diff.whitespace</code>.
4334 The command line option <code>--ws-error-highlight=</code><em><kind></em>
4335 overrides this setting.</p>
4337 <dt class="hdlist1
"><code>diff.colorMoved</code></dt>
4339 <p>If set to either a valid <em><mode></em> or a <code>true</code> value, moved lines
4340 in a diff are colored differently.
4341 For details of valid modes see <code>--color-moved</code> in <a href="git-diff.html
">git-diff(1)</a>.
4342 If simply set to <code>true</code> the default color mode will be used. When
4343 set to <code>false</code>, moved lines are not colored.</p>
4345 <dt class="hdlist1
"><code>diff.colorMovedWS</code></dt>
4347 <p>When moved lines are colored using e.g. the <code>diff.colorMoved</code> setting,
4348 this option controls the mode how spaces are treated.
4349 For details of valid modes see <code>--color-moved-ws</code> in <a href="git-diff.html
">git-diff(1)</a>.</p>
4351 <dt class="hdlist1
">diff.tool</dt>
4353 <p>Controls which diff tool is used by <a href="git-difftool.html
">git-difftool(1)</a>.
4354 This variable overrides the value configured in <code>merge.tool</code>.
4355 The list below shows the valid built-in values.
4356 Any other value is treated as a custom diff tool and requires
4357 that a corresponding difftool.<tool>.cmd variable is defined.</p>
4359 <dt class="hdlist1
">diff.guitool</dt>
4361 <p>Controls which diff tool is used by <a href="git-difftool.html
">git-difftool(1)</a> when
4362 the -g/--gui flag is specified. This variable overrides the value
4363 configured in <code>merge.guitool</code>. The list below shows the valid
4364 built-in values. Any other value is treated as a custom diff tool
4365 and requires that a corresponding difftool.<guitool>.cmd variable
4368 <dt class="hdlist1
">difftool.<tool>.cmd</dt>
4370 <p>Specify the command to invoke the specified diff tool.
4371 The specified command is evaluated in shell with the following
4372 variables available: <em>LOCAL</em> is set to the name of the temporary
4373 file containing the contents of the diff pre-image and <em>REMOTE</em>
4374 is set to the name of the temporary file containing the contents
4375 of the diff post-image.</p>
4376 <div class="paragraph
">
4377 <p>See the <code>--tool=</code><em><tool></em> option in <a href="git-difftool.html
">git-difftool(1)</a> for more details.</p>
4380 <dt class="hdlist1
">difftool.<tool>.path</dt>
4382 <p>Override the path for the given tool. This is useful in case
4383 your tool is not in the PATH.</p>
4385 <dt class="hdlist1
">difftool.trustExitCode</dt>
4387 <p>Exit difftool if the invoked diff tool returns a non-zero exit status.</p>
4388 <div class="paragraph
">
4389 <p>See the <code>--trust-exit-code</code> option in <a href="git-difftool.html
">git-difftool(1)</a> for more details.</p>
4392 <dt class="hdlist1
">difftool.prompt</dt>
4394 <p>Prompt before each invocation of the diff tool.</p>
4396 <dt class="hdlist1
">difftool.guiDefault</dt>
4398 <p>Set <code>true</code> to use the <code>diff.guitool</code> by default (equivalent to specifying
4399 the <code>--gui</code> argument), or <code>auto</code> to select <code>diff.guitool</code> or <code>diff.tool</code>
4400 depending on the presence of a <code>DISPLAY</code> environment variable value. The
4401 default is <code>false</code>, where the <code>--gui</code> argument must be provided
4402 explicitly for the <code>diff.guitool</code> to be used.</p>
4404 <dt class="hdlist1
">extensions.*</dt>
4406 <p>Unless otherwise stated, is an error to specify an extension if
4407 <code>core.repositoryFormatVersion</code> is not <code>1</code>. See
4408 <a href="gitrepository-layout.html
">gitrepository-layout(5)</a>.</p>
4409 <div class="openblock
">
4410 <div class="content
">
4413 <dt class="hdlist1
">compatObjectFormat</dt>
4415 <p>Specify a compatibility hash algorithm to use. The acceptable values
4416 are <code>sha1</code> and <code>sha256</code>. The value specified must be different from the
4417 value of <code>extensions.objectFormat</code>. This allows client level
4418 interoperability between git repositories whose objectFormat matches
4419 this compatObjectFormat. In particular when fully implemented the
4420 pushes and pulls from a repository in whose objectFormat matches
4421 compatObjectFormat. As well as being able to use oids encoded in
4422 compatObjectFormat in addition to oids encoded with objectFormat to
4423 locally specify objects.</p>
4425 <dt class="hdlist1
">noop</dt>
4427 <p>This extension does not change git’s behavior at all. It is useful only
4428 for testing format-1 compatibility.</p>
4429 <div class="paragraph
">
4430 <p>For historical reasons, this extension is respected regardless of the
4431 <code>core.repositoryFormatVersion</code> setting.</p>
4434 <dt class="hdlist1
">noop-v1</dt>
4436 <p>This extension does not change git’s behavior at all. It is useful only
4437 for testing format-1 compatibility.</p>
4439 <dt class="hdlist1
">objectFormat</dt>
4441 <p>Specify the hash algorithm to use. The acceptable values are <code>sha1</code> and
4442 <code>sha256</code>. If not specified, <code>sha1</code> is assumed.</p>
4443 <div class="paragraph
">
4444 <p>Note that this setting should only be set by <a href="git-init.html
">git-init(1)</a> or
4445 <a href="git-clone.html
">git-clone(1)</a>. Trying to change it after initialization will not
4446 work and will produce hard-to-diagnose issues.</p>
4449 <dt class="hdlist1
">partialClone</dt>
4451 <p>When enabled, indicates that the repo was created with a partial clone
4452 (or later performed a partial fetch) and that the remote may have
4453 omitted sending certain unwanted objects. Such a remote is called a
4454 "promisor remote
" and it promises that all such omitted objects can
4455 be fetched from it in the future.</p>
4456 <div class="paragraph
">
4457 <p>The value of this key is the name of the promisor remote.</p>
4459 <div class="paragraph
">
4460 <p>For historical reasons, this extension is respected regardless of the
4461 <code>core.repositoryFormatVersion</code> setting.</p>
4464 <dt class="hdlist1
">preciousObjects</dt>
4466 <p>If enabled, indicates that objects in the repository MUST NOT be deleted
4467 (e.g., by <code>git-prune</code> or <code>git</code> <code>repack</code> <code>-d</code>).</p>
4468 <div class="paragraph
">
4469 <p>For historical reasons, this extension is respected regardless of the
4470 <code>core.repositoryFormatVersion</code> setting.</p>
4473 <dt class="hdlist1
">refStorage</dt>
4475 <p>Specify the ref storage format to use. The acceptable values are:</p>
4479 <p><code>files</code> for loose files with packed-refs. This is the default.</p>
4482 <p><code>reftable</code> for the reftable format. This format is experimental and its
4483 internals are subject to change.</p>
4487 <div class="paragraph
">
4488 <p>Note that this setting should only be set by <a href="git-init.html
">git-init(1)</a> or
4489 <a href="git-clone.html
">git-clone(1)</a>. Trying to change it after initialization will not
4490 work and will produce hard-to-diagnose issues.</p>
4493 <dt class="hdlist1
">worktreeConfig</dt>
4495 <p>If enabled, then worktrees will load config settings from the
4496 <code>$GIT_DIR/config.worktree</code> file in addition to the
4497 <code>$GIT_COMMON_DIR/config</code> file. Note that <code>$GIT_COMMON_DIR</code> and
4498 <code>$GIT_DIR</code> are the same for the main working tree, while other
4499 working trees have <code>$GIT_DIR</code> equal to
4500 <code>$GIT_COMMON_DIR/worktrees/</code><em><id></em><code>/</code>. The settings in the
4501 <code>config.worktree</code> file will override settings from any other
4503 <div class="paragraph
">
4504 <p>When enabling this extension, you must be careful to move
4505 certain values from the common config file to the main working tree’s
4506 <code>config.worktree</code> file, if present:</p>
4511 <p><code>core.worktree</code> must be moved from <code>$GIT_COMMON_DIR/config</code> to
4512 <code>$GIT_COMMON_DIR/config.worktree</code>.</p>
4515 <p>If <code>core.bare</code> is true, then it must be moved from <code>$GIT_COMMON_DIR/config</code>
4516 to <code>$GIT_COMMON_DIR/config.worktree</code>.</p>
4520 <div class="paragraph
">
4521 <p>It may also be beneficial to adjust the locations of <code>core.sparseCheckout</code>
4522 and <code>core.sparseCheckoutCone</code> depending on your desire for customizable
4523 sparse-checkout settings for each worktree. By default, the <code>git</code>
4524 <code>sparse-checkout</code> builtin enables this extension, assigns
4525 these config values on a per-worktree basis, and uses the
4526 <code>$GIT_DIR/info/sparse-checkout</code> file to specify the sparsity for each
4527 worktree independently. See <a href="git-sparse-checkout.html
">git-sparse-checkout(1)</a> for more
4530 <div class="paragraph
">
4532 For historical reasons, this extension is respected regardless of the
4533 <code>core.repositoryFormatVersion</code> setting.</p>
4541 <dt class="hdlist1
">fastimport.unpackLimit</dt>
4543 <p>If the number of objects imported by <a href="git-fast-import.html
">git-fast-import(1)</a>
4544 is below this limit, then the objects will be unpacked into
4545 loose object files. However, if the number of imported objects
4546 equals or exceeds this limit, then the pack will be stored as a
4547 pack. Storing the pack from a fast-import can make the import
4548 operation complete faster, especially on slow filesystems. If
4549 not set, the value of <code>transfer.unpackLimit</code> is used instead.</p>
4551 <dt class="hdlist1
">feature.*</dt>
4553 <p>The config settings that start with <code>feature.</code> modify the defaults of
4554 a group of other config settings. These groups are created by the Git
4555 developer community as recommended defaults and are subject to change.
4556 In particular, new config options may be added with different defaults.</p>
4558 <dt class="hdlist1
">feature.experimental</dt>
4560 <p>Enable config options that are new to Git, and are being considered for
4561 future defaults. Config settings included here may be added or removed
4562 with each release, including minor version updates. These settings may
4563 have unintended interactions since they are so new. Please enable this
4564 setting if you are interested in providing feedback on experimental
4565 features. The new default values are:</p>
4569 <p><code>fetch.negotiationAlgorithm=skipping</code> may improve fetch negotiation times by
4570 skipping more commits at a time, reducing the number of round trips.</p>
4573 <p><code>pack.useBitmapBoundaryTraversal=true</code> may improve bitmap traversal times by
4574 walking fewer objects.</p>
4577 <p><code>pack.allowPackReuse=multi</code> may improve the time it takes to create a pack by
4578 reusing objects from multiple packs instead of just one.</p>
4583 <dt class="hdlist1
">feature.manyFiles</dt>
4585 <p>Enable config options that optimize for repos with many files in the
4586 working directory. With many files, commands such as <code>git</code> <code>status</code> and
4587 <code>git</code> <code>checkout</code> may be slow and these new defaults improve performance:</p>
4591 <p><code>index.skipHash=true</code> speeds up index writes by not computing a trailing
4592 checksum. Note that this will cause Git versions earlier than 2.13.0 to
4593 refuse to parse the index and Git versions earlier than 2.40.0 will report
4594 a corrupted index during <code>git</code> <code>fsck</code>.</p>
4597 <p><code>index.version=4</code> enables path-prefix compression in the index.</p>
4600 <p><code>core.untrackedCache=true</code> enables the untracked cache. This setting assumes
4601 that mtime is working on your machine.</p>
4606 <dt class="hdlist1
">fetch.recurseSubmodules</dt>
4608 <p>This option controls whether <code>git</code> <code>fetch</code> (and the underlying fetch
4609 in <code>git</code> <code>pull</code>) will recursively fetch into populated submodules.
4610 This option can be set either to a boolean value or to <em>on-demand</em>.
4611 Setting it to a boolean changes the behavior of fetch and pull to
4612 recurse unconditionally into submodules when set to true or to not
4613 recurse at all when set to false. When set to <em>on-demand</em>, fetch and
4614 pull will only recurse into a populated submodule when its
4615 superproject retrieves a commit that updates the submodule’s
4617 Defaults to <em>on-demand</em>, or to the value of <em>submodule.recurse</em> if set.</p>
4619 <dt class="hdlist1
">fetch.fsckObjects</dt>
4621 <p>If it is set to true, git-fetch-pack will check all fetched
4622 objects. See <code>transfer.fsckObjects</code> for what’s
4623 checked. Defaults to false. If not set, the value of
4624 <code>transfer.fsckObjects</code> is used instead.</p>
4626 <dt class="hdlist1
">fetch.fsck.<msg-id></dt>
4628 <p>Acts like <code>fsck.</code><em><msg-id></em>, but is used by
4629 <a href="git-fetch-pack.html
">git-fetch-pack(1)</a> instead of <a href="git-fsck.html
">git-fsck(1)</a>. See
4630 the <code>fsck.</code><em><msg-id></em> documentation for details.</p>
4632 <dt class="hdlist1
">fetch.fsck.skipList</dt>
4634 <p>Acts like <code>fsck.skipList</code>, but is used by
4635 <a href="git-fetch-pack.html
">git-fetch-pack(1)</a> instead of <a href="git-fsck.html
">git-fsck(1)</a>. See
4636 the <code>fsck.skipList</code> documentation for details.</p>
4638 <dt class="hdlist1
">fetch.unpackLimit</dt>
4640 <p>If the number of objects fetched over the Git native
4641 transfer is below this
4642 limit, then the objects will be unpacked into loose object
4643 files. However if the number of received objects equals or
4644 exceeds this limit then the received pack will be stored as
4645 a pack, after adding any missing delta bases. Storing the
4646 pack from a push can make the push operation complete faster,
4647 especially on slow filesystems. If not set, the value of
4648 <code>transfer.unpackLimit</code> is used instead.</p>
4650 <dt class="hdlist1
">fetch.prune</dt>
4652 <p>If true, fetch will automatically behave as if the <code>--prune</code>
4653 option was given on the command line. See also <code>remote.</code><em><name></em><code>.prune</code>
4654 and the PRUNING section of <a href="git-fetch.html
">git-fetch(1)</a>.</p>
4656 <dt class="hdlist1
">fetch.pruneTags</dt>
4658 <p>If true, fetch will automatically behave as if the
4659 <code>refs/tags/</code>*:refs/tags/* refspec was provided when pruning,
4660 if not set already. This allows for setting both this option
4661 and <code>fetch.prune</code> to maintain a 1=1 mapping to upstream
4662 refs. See also <code>remote.</code><em><name></em><code>.pruneTags</code> and the PRUNING
4663 section of <a href="git-fetch.html
">git-fetch(1)</a>.</p>
4665 <dt class="hdlist1
">fetch.all</dt>
4667 <p>If true, fetch will attempt to update all available remotes.
4668 This behavior can be overridden by passing <code>--no-all</code> or by
4669 explicitly specifying one or more remote(s) to fetch from.
4670 Defaults to false.</p>
4672 <dt class="hdlist1
">fetch.output</dt>
4674 <p>Control how ref update status is printed. Valid values are
4675 <code>full</code> and <code>compact</code>. Default value is <code>full</code>. See the
4676 OUTPUT section in <a href="git-fetch.html
">git-fetch(1)</a> for details.</p>
4678 <dt class="hdlist1
">fetch.negotiationAlgorithm</dt>
4680 <p>Control how information about the commits in the local repository
4681 is sent when negotiating the contents of the packfile to be sent by
4682 the server. Set to "consecutive
" to use an algorithm that walks
4683 over consecutive commits checking each one. Set to "skipping
" to
4684 use an algorithm that skips commits in an effort to converge
4685 faster, but may result in a larger-than-necessary packfile; or set
4686 to "noop
" to not send any information at all, which will almost
4687 certainly result in a larger-than-necessary packfile, but will skip
4688 the negotiation step. Set to "default
" to override settings made
4689 previously and use the default behaviour. The default is normally
4690 "consecutive
", but if <code>feature.experimental</code> is true, then the
4691 default is "skipping
". Unknown values will cause <em>git fetch</em> to
4693 <div class="paragraph
">
4694 <p>See also the <code>--negotiate-only</code> and <code>--negotiation-tip</code> options to
4695 <a href="git-fetch.html
">git-fetch(1)</a>.</p>
4698 <dt class="hdlist1
">fetch.showForcedUpdates</dt>
4700 <p>Set to false to enable <code>--no-show-forced-updates</code> in
4701 <a href="git-fetch.html
">git-fetch(1)</a> and <a href="git-pull.html
">git-pull(1)</a> commands.
4702 Defaults to true.</p>
4704 <dt class="hdlist1
">fetch.parallel</dt>
4706 <p>Specifies the maximal number of fetch operations to be run in parallel
4707 at a time (submodules, or remotes when the <code>--multiple</code> option of
4708 <a href="git-fetch.html
">git-fetch(1)</a> is in effect).</p>
4709 <div class="paragraph
">
4710 <p>A value of 0 will give some reasonable default. If unset, it defaults to 1.</p>
4712 <div class="paragraph
">
4713 <p>For submodules, this setting can be overridden using the <code>submodule.fetchJobs</code>
4717 <dt class="hdlist1
">fetch.writeCommitGraph</dt>
4719 <p>Set to true to write a commit-graph after every <code>git</code> <code>fetch</code> command
4720 that downloads a pack-file from a remote. Using the <code>--split</code> option,
4721 most executions will create a very small commit-graph file on top of
4722 the existing commit-graph file(s). Occasionally, these files will
4723 merge and the write may take longer. Having an updated commit-graph
4724 file helps performance of many Git commands, including <code>git</code> <code>merge-base</code>,
4725 <code>git</code> <code>push</code> <code>-f</code>, and <code>git</code> <code>log</code> <code>--graph</code>. Defaults to false.</p>
4727 <dt class="hdlist1
">fetch.bundleURI</dt>
4729 <p>This value stores a URI for downloading Git object data from a bundle
4730 URI before performing an incremental fetch from the origin Git server.
4731 This is similar to how the <code>--bundle-uri</code> option behaves in
4732 <a href="git-clone.html
">git-clone(1)</a>. <code>git</code> <code>clone</code> <code>--bundle-uri</code> will set the
4733 <code>fetch.bundleURI</code> value if the supplied bundle URI contains a bundle
4734 list that is organized for incremental fetches.</p>
4735 <div class="paragraph
">
4736 <p>If you modify this value and your repository has a <code>fetch.bundleCreationToken</code>
4737 value, then remove that <code>fetch.bundleCreationToken</code> value before fetching from
4738 the new bundle URI.</p>
4741 <dt class="hdlist1
">fetch.bundleCreationToken</dt>
4743 <p>When using <code>fetch.bundleURI</code> to fetch incrementally from a bundle
4744 list that uses the "creationToken
" heuristic, this config value
4745 stores the maximum <code>creationToken</code> value of the downloaded bundles.
4746 This value is used to prevent downloading bundles in the future
4747 if the advertised <code>creationToken</code> is not strictly larger than this
4749 <div class="paragraph
">
4750 <p>The creation token values are chosen by the provider serving the specific
4751 bundle URI. If you modify the URI at <code>fetch.bundleURI</code>, then be sure to
4752 remove the value for the <code>fetch.bundleCreationToken</code> value before fetching.</p>
4755 <dt class="hdlist1
">filter.<driver>.clean</dt>
4757 <p>The command which is used to convert the content of a worktree
4758 file to a blob upon checkin. See <a href="gitattributes.html
">gitattributes(5)</a> for
4761 <dt class="hdlist1
">filter.<driver>.smudge</dt>
4763 <p>The command which is used to convert the content of a blob
4764 object to a worktree file upon checkout. See
4765 <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
4767 <dt class="hdlist1
">format.attach</dt>
4769 <p>Enable multipart/mixed attachments as the default for
4770 <em>format-patch</em>. The value can also be a double quoted string
4771 which will enable attachments as the default and set the
4772 value as the boundary. See the --attach option in
4773 <a href="git-format-patch.html
">git-format-patch(1)</a>. To countermand an earlier
4774 value, set it to an empty string.</p>
4776 <dt class="hdlist1
">format.from</dt>
4778 <p>Provides the default value for the <code>--from</code> option to format-patch.
4779 Accepts a boolean value, or a name and email address. If false,
4780 format-patch defaults to <code>--no-from</code>, using commit authors directly in
4781 the "From:
" field of patch mails. If true, format-patch defaults to
4782 <code>--from</code>, using your committer identity in the "From:
" field of patch
4783 mails and including a "From:
" field in the body of the patch mail if
4784 different. If set to a non-boolean value, format-patch uses that
4785 value instead of your committer identity. Defaults to false.</p>
4787 <dt class="hdlist1
">format.forceInBodyFrom</dt>
4789 <p>Provides the default value for the <code>--</code>[<code>no-</code>]<code>force-in-body-from</code>
4790 option to format-patch. Defaults to false.</p>
4792 <dt class="hdlist1
">format.numbered</dt>
4794 <p>A boolean which can enable or disable sequence numbers in patch
4795 subjects. It defaults to "auto
" which enables it only if there
4796 is more than one patch. It can be enabled or disabled for all
4797 messages by setting it to "true
" or "false
". See --numbered
4798 option in <a href="git-format-patch.html
">git-format-patch(1)</a>.</p>
4800 <dt class="hdlist1
">format.headers</dt>
4802 <p>Additional email headers to include in a patch to be submitted
4803 by mail. See <a href="git-format-patch.html
">git-format-patch(1)</a>.</p>
4805 <dt class="hdlist1
">format.to</dt>
4806 <dt class="hdlist1
">format.cc</dt>
4808 <p>Additional recipients to include in a patch to be submitted
4809 by mail. See the --to and --cc options in
4810 <a href="git-format-patch.html
">git-format-patch(1)</a>.</p>
4812 <dt class="hdlist1
">format.subjectPrefix</dt>
4814 <p>The default for format-patch is to output files with the <em>[PATCH]</em>
4815 subject prefix. Use this variable to change that prefix.</p>
4817 <dt class="hdlist1
">format.coverFromDescription</dt>
4819 <p>The default mode for format-patch to determine which parts of
4820 the cover letter will be populated using the branch’s
4821 description. See the <code>--cover-from-description</code> option in
4822 <a href="git-format-patch.html
">git-format-patch(1)</a>.</p>
4824 <dt class="hdlist1
">format.signature</dt>
4826 <p>The default for format-patch is to output a signature containing
4827 the Git version number. Use this variable to change that default.
4828 Set this variable to the empty string ("") to suppress
4829 signature generation.</p>
4831 <dt class="hdlist1
">format.signatureFile</dt>
4833 <p>Works just like format.signature except the contents of the
4834 file specified by this variable will be used as the signature.</p>
4836 <dt class="hdlist1
">format.suffix</dt>
4838 <p>The default for format-patch is to output files with the suffix
4839 .<code>patch</code>. Use this variable to change that suffix (make sure to
4840 include the dot if you want it).</p>
4842 <dt class="hdlist1
">format.encodeEmailHeaders</dt>
4844 <p>Encode email headers that have non-ASCII characters with
4845 "Q-encoding
" (described in RFC 2047) for email transmission.
4846 Defaults to true.</p>
4848 <dt class="hdlist1
">format.pretty</dt>
4850 <p>The default pretty format for log/show/whatchanged command.
4851 See <a href="git-log.html
">git-log(1)</a>, <a href="git-show.html
">git-show(1)</a>,
4852 <a href="git-whatchanged.html
">git-whatchanged(1)</a>.</p>
4854 <dt class="hdlist1
">format.thread</dt>
4856 <p>The default threading style for <em>git format-patch</em>. Can be
4857 a boolean value, or <code>shallow</code> or <code>deep</code>. <code>shallow</code> threading
4858 makes every mail a reply to the head of the series,
4859 where the head is chosen from the cover letter, the
4860 <code>--in-reply-to</code>, and the first patch mail, in this order.
4861 <code>deep</code> threading makes every mail a reply to the previous one.
4862 A true boolean value is the same as <code>shallow</code>, and a false
4863 value disables threading.</p>
4865 <dt class="hdlist1
">format.signOff</dt>
4867 <p>A boolean value which lets you enable the <code>-s/--signoff</code> option of
4868 format-patch by default. <strong>Note:</strong> Adding the <code>Signed-off-by</code> trailer to a
4869 patch should be a conscious act and means that you certify you have
4870 the rights to submit this work under the same open source license.
4871 Please see the <em>SubmittingPatches</em> document for further discussion.</p>
4873 <dt class="hdlist1
">format.coverLetter</dt>
4875 <p>A boolean that controls whether to generate a cover-letter when
4876 format-patch is invoked, but in addition can be set to "auto
", to
4877 generate a cover-letter only when there’s more than one patch.
4878 Default is false.</p>
4880 <dt class="hdlist1
">format.outputDirectory</dt>
4882 <p>Set a custom directory to store the resulting files instead of the
4883 current working directory. All directory components will be created.</p>
4885 <dt class="hdlist1
">format.filenameMaxLength</dt>
4887 <p>The maximum length of the output filenames generated by the
4888 <code>format-patch</code> command; defaults to 64. Can be overridden
4889 by the <code>--filename-max-length=</code><em><n></em> command line option.</p>
4891 <dt class="hdlist1
">format.useAutoBase</dt>
4893 <p>A boolean value which lets you enable the <code>--base=auto</code> option of
4894 format-patch by default. Can also be set to "whenAble
" to allow
4895 enabling <code>--base=auto</code> if a suitable base is available, but to skip
4896 adding base info otherwise without the format dying.</p>
4898 <dt class="hdlist1
">format.notes</dt>
4900 <p>Provides the default value for the <code>--notes</code> option to
4901 format-patch. Accepts a boolean value, or a ref which specifies
4902 where to get notes. If false, format-patch defaults to
4903 <code>--no-notes</code>. If true, format-patch defaults to <code>--notes</code>. If
4904 set to a non-boolean value, format-patch defaults to
4905 <code>--notes=</code><em><ref></em>, where <code>ref</code> is the non-boolean value. Defaults
4907 <div class="paragraph
">
4908 <p>If one wishes to use the ref <code>refs/notes/true</code>, please use that literal
4911 <div class="paragraph
">
4912 <p>This configuration can be specified multiple times in order to allow
4913 multiple notes refs to be included. In that case, it will behave
4914 similarly to multiple <code>--</code>[<code>no-</code>]<code>notes</code>[<code>=</code>] options passed in. That is, a
4915 value of <code>true</code> will show the default notes, a value of <em><ref></em> will
4916 also show notes from that notes ref and a value of <code>false</code> will negate
4917 previous configurations and not show notes.</p>
4919 <div class="paragraph
">
4922 <div class="listingblock
">
4923 <div class="content
">
4931 <div class="paragraph
">
4932 <p>will only show notes from <code>refs/notes/bar</code>.</p>
4935 <dt class="hdlist1
">format.mboxrd</dt>
4937 <p>A boolean value which enables the robust "mboxrd
" format when
4938 <code>--stdout</code> is in use to escape "^
>+From
" lines.</p>
4940 <dt class="hdlist1
">format.noprefix</dt>
4942 <p>If set, do not show any source or destination prefix in patches.
4943 This is equivalent to the <code>diff.noprefix</code> option used by <code>git</code>
4944 <code>diff</code> (but which is not respected by <code>format-patch</code>). Note that
4945 by setting this, the receiver of any patches you generate will
4946 have to apply them using the <code>-p0</code> option.</p>
4948 <dt class="hdlist1
">fsck.<msg-id></dt>
4950 <p>During fsck git may find issues with legacy data which
4951 wouldn’t be generated by current versions of git, and which
4952 wouldn’t be sent over the wire if <code>transfer.fsckObjects</code> was
4953 set. This feature is intended to support working with legacy
4954 repositories containing such data.</p>
4955 <div class="paragraph
">
4956 <p>Setting <code>fsck.</code><em><msg-id></em> will be picked up by <a href="git-fsck.html
">git-fsck(1)</a>, but
4957 to accept pushes of such data set <code>receive.fsck.</code><em><msg-id></em> instead, or
4958 to clone or fetch it set <code>fetch.fsck.</code><em><msg-id></em>.</p>
4960 <div class="paragraph
">
4961 <p>The rest of the documentation discusses <code>fsck.</code>* for brevity, but the
4962 same applies for the corresponding <code>receive.fsck.</code>* and
4963 <code>fetch.fsck.</code>*. variables.</p>
4965 <div class="paragraph
">
4966 <p>Unlike variables like <code>color.ui</code> and <code>core.editor</code>, the
4967 <code>receive.fsck.</code><em><msg-id></em> and <code>fetch.fsck.</code><em><msg-id></em> variables will not
4968 fall back on the <code>fsck.</code><em><msg-id></em> configuration if they aren’t set. To
4969 uniformly configure the same fsck settings in different circumstances,
4970 all three of them must be set to the same values.</p>
4972 <div class="paragraph
">
4973 <p>When <code>fsck.</code><em><msg-id></em> is set, errors can be switched to warnings and
4974 vice versa by configuring the <code>fsck.</code><em><msg-id></em> setting where the
4975 <em><msg-id></em> is the fsck message ID and the value is one of <code>error</code>,
4976 <code>warn</code> or <code>ignore</code>. For convenience, fsck prefixes the error/warning
4977 with the message ID, e.g. "missingEmail: invalid author/committer
4978 line - missing email
" means that setting <code>fsck.missingEmail</code> <code>=</code> <code>ignore</code>
4979 will hide that issue.</p>
4981 <div class="paragraph
">
4982 <p>In general, it is better to enumerate existing objects with problems
4983 with <code>fsck.skipList</code>, instead of listing the kind of breakages these
4984 problematic objects share to be ignored, as doing the latter will
4985 allow new instances of the same breakages go unnoticed.</p>
4987 <div class="paragraph
">
4988 <p>Setting an unknown <code>fsck.</code><em><msg-id></em> value will cause fsck to die, but
4989 doing the same for <code>receive.fsck.</code><em><msg-id></em> and <code>fetch.fsck.</code><em><msg-id></em>
4990 will only cause git to warn.</p>
4992 <div class="paragraph
">
4993 <p>See the <code>Fsck</code> <code>Messages</code> section of <a href="git-fsck.html
">git-fsck(1)</a> for supported
4994 values of <em><msg-id></em>.</p>
4997 <dt class="hdlist1
">fsck.skipList</dt>
4999 <p>The path to a list of object names (i.e. one unabbreviated SHA-1 per
5000 line) that are known to be broken in a non-fatal way and should
5001 be ignored. On versions of Git 2.20 and later, comments (<em>#</em>), empty
5002 lines, and any leading and trailing whitespace are ignored. Everything
5003 but a SHA-1 per line will error out on older versions.</p>
5004 <div class="paragraph
">
5005 <p>This feature is useful when an established project should be accepted
5006 despite early commits containing errors that can be safely ignored,
5007 such as invalid committer email addresses. Note: corrupt objects
5008 cannot be skipped with this setting.</p>
5010 <div class="paragraph
">
5011 <p>Like <code>fsck.</code><em><msg-id></em> this variable has corresponding
5012 <code>receive.fsck.skipList</code> and <code>fetch.fsck.skipList</code> variants.</p>
5014 <div class="paragraph
">
5015 <p>Unlike variables like <code>color.ui</code> and <code>core.editor</code> the
5016 <code>receive.fsck.skipList</code> and <code>fetch.fsck.skipList</code> variables will not
5017 fall back on the <code>fsck.skipList</code> configuration if they aren’t set. To
5018 uniformly configure the same fsck settings in different circumstances,
5019 all three of them must be set to the same values.</p>
5021 <div class="paragraph
">
5022 <p>Older versions of Git (before 2.20) documented that the object names
5023 list should be sorted. This was never a requirement; the object names
5024 could appear in any order, but when reading the list we tracked whether
5025 the list was sorted for the purposes of an internal binary search
5026 implementation, which could save itself some work with an already sorted
5027 list. Unless you had a humongous list there was no reason to go out of
5028 your way to pre-sort the list. After Git version 2.20 a hash implementation
5029 is used instead, so there’s now no reason to pre-sort the list.</p>
5032 <dt class="hdlist1
">fsmonitor.allowRemote</dt>
5034 <p>By default, the fsmonitor daemon refuses to work with network-mounted
5035 repositories. Setting <code>fsmonitor.allowRemote</code> to <code>true</code> overrides this
5036 behavior. Only respected when <code>core.fsmonitor</code> is set to <code>true</code>.</p>
5038 <dt class="hdlist1
">fsmonitor.socketDir</dt>
5040 <p>This Mac OS-specific option, if set, specifies the directory in
5041 which to create the Unix domain socket used for communication
5042 between the fsmonitor daemon and various Git commands. The directory must
5043 reside on a native Mac OS filesystem. Only respected when <code>core.fsmonitor</code>
5044 is set to <code>true</code>.</p>
5046 <dt class="hdlist1
">gc.aggressiveDepth</dt>
5048 <p>The depth parameter used in the delta compression
5049 algorithm used by <em>git gc --aggressive</em>. This defaults
5050 to 50, which is the default for the <code>--depth</code> option when
5051 <code>--aggressive</code> isn’t in use.</p>
5052 <div class="paragraph
">
5053 <p>See the documentation for the <code>--depth</code> option in
5054 <a href="git-repack.html
">git-repack(1)</a> for more details.</p>
5057 <dt class="hdlist1
">gc.aggressiveWindow</dt>
5059 <p>The window size parameter used in the delta compression
5060 algorithm used by <em>git gc --aggressive</em>. This defaults
5061 to 250, which is a much more aggressive window size than
5062 the default <code>--window</code> of 10.</p>
5063 <div class="paragraph
">
5064 <p>See the documentation for the <code>--window</code> option in
5065 <a href="git-repack.html
">git-repack(1)</a> for more details.</p>
5068 <dt class="hdlist1
">gc.auto</dt>
5070 <p>When there are approximately more than this many loose
5071 objects in the repository, <code>git</code> <code>gc</code> <code>--auto</code> will pack them.
5072 Some Porcelain commands use this command to perform a
5073 light-weight garbage collection from time to time. The
5074 default value is 6700.</p>
5075 <div class="paragraph
">
5076 <p>Setting this to 0 disables not only automatic packing based on the
5077 number of loose objects, but also any other heuristic <code>git</code> <code>gc</code> <code>--auto</code> will
5078 otherwise use to determine if there’s work to do, such as
5079 <code>gc.autoPackLimit</code>.</p>
5082 <dt class="hdlist1
">gc.autoPackLimit</dt>
5084 <p>When there are more than this many packs that are not
5085 marked with *.<code>keep</code> file in the repository, <code>git</code> <code>gc</code>
5086 <code>--auto</code> consolidates them into one larger pack. The
5087 default value is 50. Setting this to 0 disables it.
5088 Setting <code>gc.auto</code> to 0 will also disable this.</p>
5089 <div class="paragraph
">
5090 <p>See the <code>gc.bigPackThreshold</code> configuration variable below. When in
5091 use, it’ll affect how the auto pack limit works.</p>
5094 <dt class="hdlist1
">gc.autoDetach</dt>
5096 <p>Make <code>git</code> <code>gc</code> <code>--auto</code> return immediately and run in the background
5097 if the system supports it. Default is true. This config variable acts
5098 as a fallback in case <code>maintenance.autoDetach</code> is not set.</p>
5100 <dt class="hdlist1
">gc.bigPackThreshold</dt>
5102 <p>If non-zero, all non-cruft packs larger than this limit are kept
5103 when <code>git</code> <code>gc</code> is run. This is very similar to
5104 <code>--keep-largest-pack</code> except that all non-cruft packs that meet
5105 the threshold are kept, not just the largest pack. Defaults to
5106 zero. Common unit suffixes of <em>k</em>, <em>m</em>, or <em>g</em> are supported.</p>
5107 <div class="paragraph
">
5108 <p>Note that if the number of kept packs is more than gc.autoPackLimit,
5109 this configuration variable is ignored, all packs except the base pack
5110 will be repacked. After this the number of packs should go below
5111 gc.autoPackLimit and gc.bigPackThreshold should be respected again.</p>
5113 <div class="paragraph
">
5114 <p>If the amount of memory estimated for <code>git</code> <code>repack</code> to run smoothly is
5115 not available and <code>gc.bigPackThreshold</code> is not set, the largest pack
5116 will also be excluded (this is the equivalent of running <code>git</code> <code>gc</code> with
5117 <code>--keep-largest-pack</code>).</p>
5120 <dt class="hdlist1
">gc.writeCommitGraph</dt>
5122 <p>If true, then gc will rewrite the commit-graph file when
5123 <a href="git-gc.html
">git-gc(1)</a> is run. When using <code>git</code> <code>gc</code> <code>--auto</code>
5124 the commit-graph will be updated if housekeeping is
5125 required. Default is true. See <a href="git-commit-graph.html
">git-commit-graph(1)</a>
5128 <dt class="hdlist1
">gc.logExpiry</dt>
5130 <p>If the file gc.log exists, then <code>git</code> <code>gc</code> <code>--auto</code> will print
5131 its content and exit with status zero instead of running
5132 unless that file is more than <em>gc.logExpiry</em> old. Default is
5133 "1.day
". See <code>gc.pruneExpire</code> for more ways to specify its
5136 <dt class="hdlist1
">gc.packRefs</dt>
5138 <p>Running <code>git</code> <code>pack-refs</code> in a repository renders it
5139 unclonable by Git versions prior to 1.5.1.2 over dumb
5140 transports such as HTTP. This variable determines whether
5141 <em>git gc</em> runs <code>git</code> <code>pack-refs</code>. This can be set to <code>notbare</code>
5142 to enable it within all non-bare repos or it can be set to a
5143 boolean value. The default is <code>true</code>.</p>
5145 <dt class="hdlist1
">gc.cruftPacks</dt>
5147 <p>Store unreachable objects in a cruft pack (see
5148 <a href="git-repack.html
">git-repack(1)</a>) instead of as loose objects. The default
5149 is <code>true</code>.</p>
5151 <dt class="hdlist1
">gc.maxCruftSize</dt>
5153 <p>Limit the size of new cruft packs when repacking. When
5154 specified in addition to <code>--max-cruft-size</code>, the command line
5155 option takes priority. See the <code>--max-cruft-size</code> option of
5156 <a href="git-repack.html
">git-repack(1)</a>.</p>
5158 <dt class="hdlist1
">gc.pruneExpire</dt>
5160 <p>When <em>git gc</em> is run, it will call <em>prune --expire 2.weeks.ago</em>
5161 (and <em>repack --cruft --cruft-expiration 2.weeks.ago</em> if using
5162 cruft packs via <code>gc.cruftPacks</code> or <code>--cruft</code>). Override the
5163 grace period with this config variable. The value "now
" may be
5164 used to disable this grace period and always prune unreachable
5165 objects immediately, or "never
" may be used to suppress pruning.
5166 This feature helps prevent corruption when <em>git gc</em> runs
5167 concurrently with another process writing to the repository; see
5168 the "NOTES
" section of <a href="git-gc.html
">git-gc(1)</a>.</p>
5170 <dt class="hdlist1
">gc.worktreePruneExpire</dt>
5172 <p>When <em>git gc</em> is run, it calls
5173 <em>git worktree prune --expire 3.months.ago</em>.
5174 This config variable can be used to set a different grace
5175 period. The value "now
" may be used to disable the grace
5176 period and prune <code>$GIT_DIR/worktrees</code> immediately, or "never
"
5177 may be used to suppress pruning.</p>
5179 <dt class="hdlist1
">gc.reflogExpire</dt>
5180 <dt class="hdlist1
">gc.<pattern>.reflogExpire</dt>
5182 <p><em>git reflog expire</em> removes reflog entries older than
5183 this time; defaults to 90 days. The value "now
" expires all
5184 entries immediately, and "never
" suppresses expiration
5185 altogether. With "<pattern
>" (e.g.
5186 "refs/stash
") in the middle the setting applies only to
5187 the refs that match the <pattern>.</p>
5189 <dt class="hdlist1
">gc.reflogExpireUnreachable</dt>
5190 <dt class="hdlist1
">gc.<pattern>.reflogExpireUnreachable</dt>
5192 <p><em>git reflog expire</em> removes reflog entries older than
5193 this time and are not reachable from the current tip;
5194 defaults to 30 days. The value "now
" expires all entries
5195 immediately, and "never
" suppresses expiration altogether.
5196 With "<pattern
>" (e.g. "refs/stash
")
5197 in the middle, the setting applies only to the refs that
5198 match the <pattern>.</p>
5199 <div class="paragraph
">
5200 <p>These types of entries are generally created as a result of using <code>git</code>
5201 <code>commit</code> <code>--amend</code> or <code>git</code> <code>rebase</code> and are the commits prior to the amend
5202 or rebase occurring. Since these changes are not part of the current
5203 project most users will want to expire them sooner, which is why the
5204 default is more aggressive than <code>gc.reflogExpire</code>.</p>
5207 <dt class="hdlist1
">gc.recentObjectsHook</dt>
5209 <p>When considering whether or not to remove an object (either when
5210 generating a cruft pack or storing unreachable objects as
5211 loose), use the shell to execute the specified command(s).
5212 Interpret their output as object IDs which Git will consider as
5213 "recent
", regardless of their age. By treating their mtimes as
5214 "now
", any objects (and their descendants) mentioned in the
5215 output will be kept regardless of their true age.</p>
5216 <div class="paragraph
">
5217 <p>Output must contain exactly one hex object ID per line, and nothing
5218 else. Objects which cannot be found in the repository are ignored.
5219 Multiple hooks are supported, but all must exit successfully, else the
5220 operation (either generating a cruft pack or unpacking unreachable
5221 objects) will be halted.</p>
5224 <dt class="hdlist1
">gc.repackFilter</dt>
5226 <p>When repacking, use the specified filter to move certain
5227 objects into a separate packfile. See the
5228 <code>--filter=</code><em><filter-spec></em> option of <a href="git-repack.html
">git-repack(1)</a>.</p>
5230 <dt class="hdlist1
">gc.repackFilterTo</dt>
5232 <p>When repacking and using a filter, see <code>gc.repackFilter</code>, the
5233 specified location will be used to create the packfile
5234 containing the filtered out objects. <strong>WARNING:</strong> The
5235 specified location should be accessible, using for example the
5236 Git alternates mechanism, otherwise the repo could be
5237 considered corrupt by Git as it might not be able to access the
5238 objects in that packfile. See the <code>--filter-to=</code><em><dir></em> option
5239 of <a href="git-repack.html
">git-repack(1)</a> and the <code>objects/info/alternates</code>
5240 section of <a href="gitrepository-layout.html
">gitrepository-layout(5)</a>.</p>
5242 <dt class="hdlist1
">gc.rerereResolved</dt>
5244 <p>Records of conflicted merge you resolved earlier are
5245 kept for this many days when <em>git rerere gc</em> is run.
5246 You can also use more human-readable "1.month.ago
", etc.
5247 The default is 60 days. See <a href="git-rerere.html
">git-rerere(1)</a>.</p>
5249 <dt class="hdlist1
">gc.rerereUnresolved</dt>
5251 <p>Records of conflicted merge you have not resolved are
5252 kept for this many days when <em>git rerere gc</em> is run.
5253 You can also use more human-readable "1.month.ago
", etc.
5254 The default is 15 days. See <a href="git-rerere.html
">git-rerere(1)</a>.</p>
5256 <dt class="hdlist1
">gitcvs.commitMsgAnnotation</dt>
5258 <p>Append this string to each commit message. Set to empty string
5259 to disable this feature. Defaults to "via git-CVS emulator
".</p>
5261 <dt class="hdlist1
">gitcvs.enabled</dt>
5263 <p>Whether the CVS server interface is enabled for this repository.
5264 See <a href="git-cvsserver.html
">git-cvsserver(1)</a>.</p>
5266 <dt class="hdlist1
">gitcvs.logFile</dt>
5268 <p>Path to a log file where the CVS server interface well…​ logs
5269 various stuff. See <a href="git-cvsserver.html
">git-cvsserver(1)</a>.</p>
5271 <dt class="hdlist1
">gitcvs.usecrlfattr</dt>
5273 <p>If true, the server will look up the end-of-line conversion
5274 attributes for files to determine the <code>-k</code> modes to use. If
5275 the attributes force Git to treat a file as text,
5276 the <code>-k</code> mode will be left blank so CVS clients will
5277 treat it as text. If they suppress text conversion, the file
5278 will be set with <em>-kb</em> mode, which suppresses any newline munging
5279 the client might otherwise do. If the attributes do not allow
5280 the file type to be determined, then <code>gitcvs.allBinary</code> is
5281 used. See <a href="gitattributes.html
">gitattributes(5)</a>.</p>
5283 <dt class="hdlist1
">gitcvs.allBinary</dt>
5285 <p>This is used if <code>gitcvs.usecrlfattr</code> does not resolve
5286 the correct <em>-kb</em> mode to use. If true, all
5287 unresolved files are sent to the client in
5288 mode <em>-kb</em>. This causes the client to treat them
5289 as binary files, which suppresses any newline munging it
5290 otherwise might do. Alternatively, if it is set to "guess
",
5291 then the contents of the file are examined to decide if
5292 it is binary, similar to <code>core.autocrlf</code>.</p>
5294 <dt class="hdlist1
">gitcvs.dbName</dt>
5296 <p>Database used by git-cvsserver to cache revision information
5297 derived from the Git repository. The exact meaning depends on the
5298 used database driver, for SQLite (which is the default driver) this
5299 is a filename. Supports variable substitution (see
5300 <a href="git-cvsserver.html
">git-cvsserver(1)</a> for details). May not contain semicolons (;).
5301 Default: <em>%Ggitcvs.%m.sqlite</em></p>
5303 <dt class="hdlist1
">gitcvs.dbDriver</dt>
5305 <p>Used Perl DBI driver. You can specify any available driver
5306 for this here, but it might not work. git-cvsserver is tested
5307 with <em>DBD::SQLite</em>, reported to work with <em>DBD::Pg</em>, and
5308 reported <strong>not</strong> to work with <em>DBD::mysql</em>. Experimental feature.
5309 May not contain double colons (<code>:</code>). Default: <em>SQLite</em>.
5310 See <a href="git-cvsserver.html
">git-cvsserver(1)</a>.</p>
5312 <dt class="hdlist1
">gitcvs.dbUser, gitcvs.dbPass</dt>
5314 <p>Database user and password. Only useful if setting <code>gitcvs.dbDriver</code>,
5315 since SQLite has no concept of database users and/or passwords.
5316 <em>gitcvs.dbUser</em> supports variable substitution (see
5317 <a href="git-cvsserver.html
">git-cvsserver(1)</a> for details).</p>
5319 <dt class="hdlist1
">gitcvs.dbTableNamePrefix</dt>
5321 <p>Database table name prefix. Prepended to the names of any
5322 database tables used, allowing a single database to be used
5323 for several repositories. Supports variable substitution (see
5324 <a href="git-cvsserver.html
">git-cvsserver(1)</a> for details). Any non-alphabetic
5325 characters will be replaced with underscores.</p>
5329 <div class="paragraph
">
5330 <p>All gitcvs variables except for <code>gitcvs.usecrlfattr</code> and
5331 <code>gitcvs.allBinary</code> can also be specified as
5332 <em>gitcvs.<access_method>.<varname></em> (where <em>access_method</em>
5333 is one of "ext
" and "pserver
") to make them apply only for the given
5338 <dt class="hdlist1
">gitweb.category</dt>
5339 <dt class="hdlist1
">gitweb.description</dt>
5340 <dt class="hdlist1
">gitweb.owner</dt>
5341 <dt class="hdlist1
">gitweb.url</dt>
5343 <p>See <a href="gitweb.html
">gitweb(1)</a> for description.</p>
5345 <dt class="hdlist1
">gitweb.avatar</dt>
5346 <dt class="hdlist1
">gitweb.blame</dt>
5347 <dt class="hdlist1
">gitweb.grep</dt>
5348 <dt class="hdlist1
">gitweb.highlight</dt>
5349 <dt class="hdlist1
">gitweb.patches</dt>
5350 <dt class="hdlist1
">gitweb.pickaxe</dt>
5351 <dt class="hdlist1
">gitweb.remote_heads</dt>
5352 <dt class="hdlist1
">gitweb.showSizes</dt>
5353 <dt class="hdlist1
">gitweb.snapshot</dt>
5355 <p>See <a href="gitweb.conf.html
">gitweb.conf(5)</a> for description.</p>
5357 <dt class="hdlist1
">gpg.program</dt>
5359 <p>Use this custom program instead of "<code>gpg
</code>" found on <code>$PATH</code> when
5360 making or verifying a PGP signature. The program must support the
5361 same command-line interface as GPG, namely, to verify a detached
5362 signature, "<code>gpg
</code> <code>--verify
</code> <code>$signature
</code> <code>-
</code> <$file
" is run, and the
5363 program is expected to signal a good signature by exiting with
5364 code 0. To generate an ASCII-armored detached signature, the
5365 standard input of "<code>gpg
</code> <code>-bsau
</code> <code>$key
</code>" is fed with the contents to be
5366 signed, and the program is expected to send the result to its
5367 standard output.</p>
5369 <dt class="hdlist1
">gpg.format</dt>
5371 <p>Specifies which key format to use when signing with <code>--gpg-sign</code>.
5372 Default is "openpgp
". Other possible values are "x509
", "ssh
".</p>
5373 <div class="paragraph
">
5374 <p>See <a href="gitformat-signature.html
">gitformat-signature(5)</a> for the signature format, which differs
5375 based on the selected <code>gpg.format</code>.</p>
5378 <dt class="hdlist1
">gpg.<format>.program</dt>
5380 <p>Use this to customize the program used for the signing format you
5381 chose. (see <code>gpg.program</code> and <code>gpg.format</code>) <code>gpg.program</code> can still
5382 be used as a legacy synonym for <code>gpg.openpgp.program</code>. The default
5383 value for <code>gpg.x509.program</code> is "gpgsm
" and <code>gpg.ssh.program</code> is "ssh-keygen
".</p>
5385 <dt class="hdlist1
">gpg.minTrustLevel</dt>
5387 <p>Specifies a minimum trust level for signature verification. If
5388 this option is unset, then signature verification for merge
5389 operations requires a key with at least <code>marginal</code> trust. Other
5390 operations that perform signature verification require a key
5391 with at least <code>undefined</code> trust. Setting this option overrides
5392 the required trust-level for all operations. Supported values,
5393 in increasing order of significance:</p>
5397 <p><code>undefined</code></p>
5400 <p><code>never</code></p>
5403 <p><code>marginal</code></p>
5406 <p><code>fully</code></p>
5409 <p><code>ultimate</code></p>
5414 <dt class="hdlist1
">gpg.ssh.defaultKeyCommand</dt>
5416 <p>This command will be run when user.signingkey is not set and a ssh
5417 signature is requested. On successful exit a valid ssh public key
5418 prefixed with <code>key::</code> is expected in the first line of its output.
5419 This allows for a script doing a dynamic lookup of the correct public
5420 key when it is impractical to statically configure <code>user.signingKey</code>.
5421 For example when keys or SSH Certificates are rotated frequently or
5422 selection of the right key depends on external factors unknown to git.</p>
5424 <dt class="hdlist1
">gpg.ssh.allowedSignersFile</dt>
5426 <p>A file containing ssh public keys which you are willing to trust.
5427 The file consists of one or more lines of principals followed by an ssh
5429 e.g.: <code>user1@example.com,user2@example.com</code> <code>ssh-rsa</code> <code>AAAAX1..</code>.
5430 See ssh-keygen(1) "ALLOWED SIGNERS
" for details.
5431 The principal is only used to identify the key and is available when
5432 verifying a signature.</p>
5433 <div class="paragraph
">
5434 <p>SSH has no concept of trust levels like gpg does. To be able to differentiate
5435 between valid signatures and trusted signatures the trust level of a signature
5436 verification is set to <code>fully</code> when the public key is present in the allowedSignersFile.
5437 Otherwise the trust level is <code>undefined</code> and git verify-commit/tag will fail.</p>
5439 <div class="paragraph
">
5440 <p>This file can be set to a location outside of the repository and every developer
5441 maintains their own trust store. A central repository server could generate this
5442 file automatically from ssh keys with push access to verify the code against.
5443 In a corporate setting this file is probably generated at a global location
5444 from automation that already handles developer ssh keys.</p>
5446 <div class="paragraph
">
5447 <p>A repository that only allows signed commits can store the file
5448 in the repository itself using a path relative to the top-level of the working tree.
5449 This way only committers with an already valid key can add or change keys in the keyring.</p>
5451 <div class="paragraph
">
5452 <p>Since OpensSSH 8.8 this file allows specifying a key lifetime using valid-after &
5453 valid-before options. Git will mark signatures as valid if the signing key was
5454 valid at the time of the signature’s creation. This allows users to change a
5455 signing key without invalidating all previously made signatures.</p>
5457 <div class="paragraph
">
5458 <p>Using a SSH CA key with the cert-authority option
5459 (see ssh-keygen(1) "CERTIFICATES
") is also valid.</p>
5462 <dt class="hdlist1
">gpg.ssh.revocationFile</dt>
5464 <p>Either a SSH KRL or a list of revoked public keys (without the principal prefix).
5465 See ssh-keygen(1) for details.
5466 If a public key is found in this file then it will always be treated
5467 as having trust level "never
" and signatures will show as invalid.</p>
5469 <dt class="hdlist1
">grep.lineNumber</dt>
5471 <p>If set to true, enable <code>-n</code> option by default.</p>
5473 <dt class="hdlist1
">grep.column</dt>
5475 <p>If set to true, enable the <code>--column</code> option by default.</p>
5477 <dt class="hdlist1
">grep.patternType</dt>
5479 <p>Set the default matching behavior. Using a value of <em>basic</em>, <em>extended</em>,
5480 <em>fixed</em>, or <em>perl</em> will enable the <code>--basic-regexp</code>, <code>--extended-regexp</code>,
5481 <code>--fixed-strings</code>, or <code>--perl-regexp</code> option accordingly, while the
5482 value <em>default</em> will use the <code>grep.extendedRegexp</code> option to choose
5483 between <em>basic</em> and <em>extended</em>.</p>
5485 <dt class="hdlist1
">grep.extendedRegexp</dt>
5487 <p>If set to true, enable <code>--extended-regexp</code> option by default. This
5488 option is ignored when the <code>grep.patternType</code> option is set to a value
5489 other than <em>default</em>.</p>
5491 <dt class="hdlist1
">grep.threads</dt>
5493 <p>Number of grep worker threads to use. If unset (or set to 0), Git will
5494 use as many threads as the number of logical cores available.</p>
5496 <dt class="hdlist1
">grep.fullName</dt>
5498 <p>If set to true, enable <code>--full-name</code> option by default.</p>
5500 <dt class="hdlist1
">grep.fallbackToNoIndex</dt>
5502 <p>If set to true, fall back to <code>git</code> <code>grep</code> <code>--no-index</code> if <code>git</code> <code>grep</code>
5503 is executed outside of a git repository. Defaults to false.</p>
5505 <dt class="hdlist1
">gui.commitMsgWidth</dt>
5507 <p>Defines how wide the commit message window is in the
5508 <a href="git-gui.html
">git-gui(1)</a>. "75" is the default.</p>
5510 <dt class="hdlist1
">gui.diffContext</dt>
5512 <p>Specifies how many context lines should be used in calls to diff
5513 made by the <a href="git-gui.html
">git-gui(1)</a>. The default is "5".</p>
5515 <dt class="hdlist1
">gui.displayUntracked</dt>
5517 <p>Determines if <a href="git-gui.html
">git-gui(1)</a> shows untracked files
5518 in the file list. The default is "true
".</p>
5520 <dt class="hdlist1
">gui.encoding</dt>
5522 <p>Specifies the default character encoding to use for displaying of
5523 file contents in <a href="git-gui.html
">git-gui(1)</a> and <a href="gitk.html
">gitk(1)</a>.
5524 It can be overridden by setting the <em>encoding</em> attribute
5525 for relevant files (see <a href="gitattributes.html
">gitattributes(5)</a>).
5526 If this option is not set, the tools default to the
5527 locale encoding.</p>
5529 <dt class="hdlist1
">gui.matchTrackingBranch</dt>
5531 <p>Determines if new branches created with <a href="git-gui.html
">git-gui(1)</a> should
5532 default to tracking remote branches with matching names or
5533 not. Default: "false
".</p>
5535 <dt class="hdlist1
">gui.newBranchTemplate</dt>
5537 <p>Is used as a suggested name when creating new branches using the
5538 <a href="git-gui.html
">git-gui(1)</a>.</p>
5540 <dt class="hdlist1
">gui.pruneDuringFetch</dt>
5542 <p>"true
" if <a href="git-gui.html
">git-gui(1)</a> should prune remote-tracking branches when
5543 performing a fetch. The default value is "false
".</p>
5545 <dt class="hdlist1
">gui.trustmtime</dt>
5547 <p>Determines if <a href="git-gui.html
">git-gui(1)</a> should trust the file modification
5548 timestamp or not. By default the timestamps are not trusted.</p>
5550 <dt class="hdlist1
">gui.spellingDictionary</dt>
5552 <p>Specifies the dictionary used for spell checking commit messages in
5553 the <a href="git-gui.html
">git-gui(1)</a>. When set to "none
" spell checking is turned
5556 <dt class="hdlist1
">gui.fastCopyBlame</dt>
5558 <p>If true, <em>git gui blame</em> uses <code>-C</code> instead of <code>-C</code> <code>-C</code> for original
5559 location detection. It makes blame significantly faster on huge
5560 repositories at the expense of less thorough copy detection.</p>
5562 <dt class="hdlist1
">gui.copyBlameThreshold</dt>
5564 <p>Specifies the threshold to use in <em>git gui blame</em> original location
5565 detection, measured in alphanumeric characters. See the
5566 <a href="git-blame.html
">git-blame(1)</a> manual for more information on copy detection.</p>
5568 <dt class="hdlist1
">gui.blamehistoryctx</dt>
5570 <p>Specifies the radius of history context in days to show in
5571 <a href="gitk.html
">gitk(1)</a> for the selected commit, when the <code>Show</code> <code>History</code>
5572 <code>Context</code> menu item is invoked from <em>git gui blame</em>. If this
5573 variable is set to zero, the whole history is shown.</p>
5575 <dt class="hdlist1
">guitool.<name>.cmd</dt>
5577 <p>Specifies the shell command line to execute when the corresponding item
5578 of the <a href="git-gui.html
">git-gui(1)</a> <code>Tools</code> menu is invoked. This option is
5579 mandatory for every tool. The command is executed from the root of
5580 the working directory, and in the environment it receives the name of
5581 the tool as <code>GIT_GUITOOL</code>, the name of the currently selected file as
5582 <em>FILENAME</em>, and the name of the current branch as <em>CUR_BRANCH</em> (if
5583 the head is detached, <em>CUR_BRANCH</em> is empty).</p>
5585 <dt class="hdlist1
">guitool.<name>.needsFile</dt>
5587 <p>Run the tool only if a diff is selected in the GUI. It guarantees
5588 that <em>FILENAME</em> is not empty.</p>
5590 <dt class="hdlist1
">guitool.<name>.noConsole</dt>
5592 <p>Run the command silently, without creating a window to display its
5595 <dt class="hdlist1
">guitool.<name>.noRescan</dt>
5597 <p>Don’t rescan the working directory for changes after the tool
5598 finishes execution.</p>
5600 <dt class="hdlist1
">guitool.<name>.confirm</dt>
5602 <p>Show a confirmation dialog before actually running the tool.</p>
5604 <dt class="hdlist1
">guitool.<name>.argPrompt</dt>
5606 <p>Request a string argument from the user, and pass it to the tool
5607 through the <code>ARGS</code> environment variable. Since requesting an
5608 argument implies confirmation, the <em>confirm</em> option has no effect
5609 if this is enabled. If the option is set to <em>true</em>, <em>yes</em>, or <em>1</em>,
5610 the dialog uses a built-in generic prompt; otherwise the exact
5611 value of the variable is used.</p>
5613 <dt class="hdlist1
">guitool.<name>.revPrompt</dt>
5615 <p>Request a single valid revision from the user, and set the
5616 <code>REVISION</code> environment variable. In other aspects this option
5617 is similar to <em>argPrompt</em>, and can be used together with it.</p>
5619 <dt class="hdlist1
">guitool.<name>.revUnmerged</dt>
5621 <p>Show only unmerged branches in the <em>revPrompt</em> subdialog.
5622 This is useful for tools similar to merge or rebase, but not
5623 for things like checkout or reset.</p>
5625 <dt class="hdlist1
">guitool.<name>.title</dt>
5627 <p>Specifies the title to use for the prompt dialog. The default
5628 is the tool name.</p>
5630 <dt class="hdlist1
">guitool.<name>.prompt</dt>
5632 <p>Specifies the general prompt string to display at the top of
5633 the dialog, before subsections for <em>argPrompt</em> and <em>revPrompt</em>.
5634 The default value includes the actual command.</p>
5636 <dt class="hdlist1
">help.browser</dt>
5638 <p>Specify the browser that will be used to display help in the
5639 <em>web</em> format. See <a href="git-help.html
">git-help(1)</a>.</p>
5641 <dt class="hdlist1
">help.format</dt>
5643 <p>Override the default help format used by <a href="git-help.html
">git-help(1)</a>.
5644 Values <em>man</em>, <em>info</em>, <em>web</em> and <em>html</em> are supported. <em>man</em> is
5645 the default. <em>web</em> and <em>html</em> are the same.</p>
5647 <dt class="hdlist1
">help.autoCorrect</dt>
5649 <p>If git detects typos and can identify exactly one valid command similar
5650 to the error, git will try to suggest the correct command or even
5651 run the suggestion automatically. Possible config values are:</p>
5655 <p>0 (default): show the suggested command.</p>
5658 <p>positive number: run the suggested command after specified
5659 deciseconds (0.1 sec).</p>
5662 <p>"immediate
": run the suggested command immediately.</p>
5665 <p>"prompt
": show the suggestion and prompt for confirmation to run
5669 <p>"never
": don’t run or show any suggested command.</p>
5674 <dt class="hdlist1
">help.htmlPath</dt>
5676 <p>Specify the path where the HTML documentation resides. File system paths
5677 and URLs are supported. HTML pages will be prefixed with this path when
5678 help is displayed in the <em>web</em> format. This defaults to the documentation
5679 path of your Git installation.</p>
5681 <dt class="hdlist1
">http.proxy</dt>
5683 <p>Override the HTTP proxy, normally configured using the <em>http_proxy</em>,
5684 <em>https_proxy</em>, and <em>all_proxy</em> environment variables (see <code>curl</code>(<code>1</code>)). In
5685 addition to the syntax understood by curl, it is possible to specify a
5686 proxy string with a user name but no password, in which case git will
5687 attempt to acquire one in the same way it does for other credentials. See
5688 <a href="gitcredentials.html
">gitcredentials(7)</a> for more information. The syntax thus is
5689 <em>[protocol://][user[:password]@]proxyhost[:port][/path]</em>. This can be
5690 overridden on a per-remote basis; see remote.<name>.proxy</p>
5691 <div class="paragraph
">
5692 <p>Any proxy, however configured, must be completely transparent and must not
5693 modify, transform, or buffer the request or response in any way. Proxies which
5694 are not completely transparent are known to cause various forms of breakage
5698 <dt class="hdlist1
">http.proxyAuthMethod</dt>
5700 <p>Set the method with which to authenticate against the HTTP proxy. This
5701 only takes effect if the configured proxy string contains a user name part
5702 (i.e. is of the form <em>user@host</em> or <em>user@host:port</em>). This can be
5703 overridden on a per-remote basis; see <code>remote.</code><em><name></em><code>.proxyAuthMethod</code>.
5704 Both can be overridden by the <code>GIT_HTTP_PROXY_AUTHMETHOD</code> environment
5705 variable. Possible values are:</p>
5706 <div class="openblock
">
5707 <div class="content
">
5711 <p><code>anyauth</code> - Automatically pick a suitable authentication method. It is
5712 assumed that the proxy answers an unauthenticated request with a 407
5713 status code and one or more Proxy-authenticate headers with supported
5714 authentication methods. This is the default.</p>
5717 <p><code>basic</code> - HTTP Basic authentication</p>
5720 <p><code>digest</code> - HTTP Digest authentication; this prevents the password from being
5721 transmitted to the proxy in clear text</p>
5724 <p><code>negotiate</code> - GSS-Negotiate authentication (compare the --negotiate option
5725 of <code>curl</code>(<code>1</code>))</p>
5728 <p><code>ntlm</code> - NTLM authentication (compare the --ntlm option of <code>curl</code>(<code>1</code>))</p>
5735 <dt class="hdlist1
">http.proxySSLCert</dt>
5737 <p>The pathname of a file that stores a client certificate to use to authenticate
5738 with an HTTPS proxy. Can be overridden by the <code>GIT_PROXY_SSL_CERT</code> environment
5741 <dt class="hdlist1
">http.proxySSLKey</dt>
5743 <p>The pathname of a file that stores a private key to use to authenticate with
5744 an HTTPS proxy. Can be overridden by the <code>GIT_PROXY_SSL_KEY</code> environment
5747 <dt class="hdlist1
">http.proxySSLCertPasswordProtected</dt>
5749 <p>Enable Git’s password prompt for the proxy SSL certificate. Otherwise OpenSSL
5750 will prompt the user, possibly many times, if the certificate or private key
5751 is encrypted. Can be overridden by the <code>GIT_PROXY_SSL_CERT_PASSWORD_PROTECTED</code>
5752 environment variable.</p>
5754 <dt class="hdlist1
">http.proxySSLCAInfo</dt>
5756 <p>Pathname to the file containing the certificate bundle that should be used to
5757 verify the proxy with when using an HTTPS proxy. Can be overridden by the
5758 <code>GIT_PROXY_SSL_CAINFO</code> environment variable.</p>
5760 <dt class="hdlist1
">http.emptyAuth</dt>
5762 <p>Attempt authentication without seeking a username or password. This
5763 can be used to attempt GSS-Negotiate authentication without specifying
5764 a username in the URL, as libcurl normally requires a username for
5767 <dt class="hdlist1
">http.proactiveAuth</dt>
5769 <p>Attempt authentication without first making an unauthenticated attempt and
5770 receiving a 401 response. This can be used to ensure that all requests are
5771 authenticated. If <code>http.emptyAuth</code> is set to true, this value has no effect.</p>
5772 <div class="paragraph
">
5773 <p>If the credential helper used specifies an authentication scheme (i.e., via the
5774 <code>authtype</code> field), that value will be used; if a username and password is
5775 provided without a scheme, then Basic authentication is used. The value of the
5776 option determines the scheme requested from the helper. Possible values are:</p>
5778 <div class="openblock
">
5779 <div class="content
">
5783 <p><code>basic</code> - Request Basic authentication from the helper.</p>
5786 <p><code>auto</code> - Allow the helper to pick an appropriate scheme.</p>
5789 <p><code>none</code> - Disable proactive authentication.</p>
5795 <div class="paragraph
">
5796 <p>Note that TLS should always be used with this configuration, since otherwise it
5797 is easy to accidentally expose plaintext credentials if Basic authentication
5801 <dt class="hdlist1
">http.delegation</dt>
5803 <p>Control GSSAPI credential delegation. The delegation is disabled
5804 by default in libcurl since version 7.21.7. Set parameter to tell
5805 the server what it is allowed to delegate when it comes to user
5806 credentials. Used with GSS/kerberos. Possible values are:</p>
5807 <div class="openblock
">
5808 <div class="content
">
5812 <p><code>none</code> - Don’t allow any delegation.</p>
5815 <p><code>policy</code> - Delegates if and only if the OK-AS-DELEGATE flag is set in the
5816 Kerberos service ticket, which is a matter of realm policy.</p>
5819 <p><code>always</code> - Unconditionally allow the server to delegate.</p>
5826 <dt class="hdlist1
">http.extraHeader</dt>
5828 <p>Pass an additional HTTP header when communicating with a server. If
5829 more than one such entry exists, all of them are added as extra
5830 headers. To allow overriding the settings inherited from the system
5831 config, an empty value will reset the extra headers to the empty list.</p>
5833 <dt class="hdlist1
">http.cookieFile</dt>
5835 <p>The pathname of a file containing previously stored cookie lines,
5836 which should be used
5837 in the Git http session, if they match the server. The file format
5838 of the file to read cookies from should be plain HTTP headers or
5839 the Netscape/Mozilla cookie file format (see <code>curl</code>(<code>1</code>)).
5840 Set it to an empty string, to accept only new cookies from
5841 the server and send them back in successive requests within same
5843 NOTE that the file specified with http.cookieFile is used only as
5844 input unless http.saveCookies is set.</p>
5846 <dt class="hdlist1
">http.saveCookies</dt>
5848 <p>If set, store cookies received during requests to the file specified by
5849 http.cookieFile. Has no effect if http.cookieFile is unset, or set to
5850 an empty string.</p>
5852 <dt class="hdlist1
">http.version</dt>
5854 <p>Use the specified HTTP protocol version when communicating with a server.
5855 If you want to force the default. The available and default version depend
5856 on libcurl. Currently the possible values of
5857 this option are:</p>
5869 <dt class="hdlist1
">http.curloptResolve</dt>
5871 <p>Hostname resolution information that will be used first by
5872 libcurl when sending HTTP requests. This information should
5873 be in one of the following formats:</p>
5877 <p>[+]HOST:PORT:ADDRESS[,ADDRESS]</p>
5884 <div class="paragraph
">
5885 <p>The first format redirects all requests to the given <code>HOST:PORT</code>
5886 to the provided <code>ADDRESS</code>(s). The second format clears all
5887 previous config values for that <code>HOST:PORT</code> combination. To
5888 allow easy overriding of all the settings inherited from the
5889 system config, an empty value will reset all resolution
5890 information to the empty list.</p>
5893 <dt class="hdlist1
">http.sslVersion</dt>
5895 <p>The SSL version to use when negotiating an SSL connection, if you
5896 want to force the default. The available and default version
5897 depend on whether libcurl was built against NSS or OpenSSL and the
5898 particular configuration of the crypto library in use. Internally
5899 this sets the <em>CURLOPT_SSL_VERSION</em> option; see the libcurl
5900 documentation for more details on the format of this option and
5901 for the ssl version supported. Currently the possible values of
5902 this option are:</p>
5928 <div class="paragraph
">
5929 <p>Can be overridden by the <code>GIT_SSL_VERSION</code> environment variable.
5930 To force git to use libcurl’s default ssl version and ignore any
5931 explicit http.sslversion option, set <code>GIT_SSL_VERSION</code> to the
5935 <dt class="hdlist1
">http.sslCipherList</dt>
5937 <p>A list of SSL ciphers to use when negotiating an SSL connection.
5938 The available ciphers depend on whether libcurl was built against
5939 NSS or OpenSSL and the particular configuration of the crypto
5940 library in use. Internally this sets the <em>CURLOPT_SSL_CIPHER_LIST</em>
5941 option; see the libcurl documentation for more details on the format
5943 <div class="paragraph
">
5944 <p>Can be overridden by the <code>GIT_SSL_CIPHER_LIST</code> environment variable.
5945 To force git to use libcurl’s default cipher list and ignore any
5946 explicit http.sslCipherList option, set <code>GIT_SSL_CIPHER_LIST</code> to the
5950 <dt class="hdlist1
">http.sslVerify</dt>
5952 <p>Whether to verify the SSL certificate when fetching or pushing
5953 over HTTPS. Defaults to true. Can be overridden by the
5954 <code>GIT_SSL_NO_VERIFY</code> environment variable.</p>
5956 <dt class="hdlist1
">http.sslCert</dt>
5958 <p>File containing the SSL certificate when fetching or pushing
5959 over HTTPS. Can be overridden by the <code>GIT_SSL_CERT</code> environment
5962 <dt class="hdlist1
">http.sslKey</dt>
5964 <p>File containing the SSL private key when fetching or pushing
5965 over HTTPS. Can be overridden by the <code>GIT_SSL_KEY</code> environment
5968 <dt class="hdlist1
">http.sslCertPasswordProtected</dt>
5970 <p>Enable Git’s password prompt for the SSL certificate. Otherwise
5971 OpenSSL will prompt the user, possibly many times, if the
5972 certificate or private key is encrypted. Can be overridden by the
5973 <code>GIT_SSL_CERT_PASSWORD_PROTECTED</code> environment variable.</p>
5975 <dt class="hdlist1
">http.sslCAInfo</dt>
5977 <p>File containing the certificates to verify the peer with when
5978 fetching or pushing over HTTPS. Can be overridden by the
5979 <code>GIT_SSL_CAINFO</code> environment variable.</p>
5981 <dt class="hdlist1
">http.sslCAPath</dt>
5983 <p>Path containing files with the CA certificates to verify the peer
5984 with when fetching or pushing over HTTPS. Can be overridden
5985 by the <code>GIT_SSL_CAPATH</code> environment variable.</p>
5987 <dt class="hdlist1
">http.sslBackend</dt>
5989 <p>Name of the SSL backend to use (e.g. "openssl
" or "schannel
").
5990 This option is ignored if cURL lacks support for choosing the SSL
5991 backend at runtime.</p>
5993 <dt class="hdlist1
">http.schannelCheckRevoke</dt>
5995 <p>Used to enforce or disable certificate revocation checks in cURL
5996 when http.sslBackend is set to "schannel
". Defaults to <code>true</code> if
5997 unset. Only necessary to disable this if Git consistently errors
5998 and the message is about checking the revocation status of a
5999 certificate. This option is ignored if cURL lacks support for
6000 setting the relevant SSL option at runtime.</p>
6002 <dt class="hdlist1
">http.schannelUseSSLCAInfo</dt>
6004 <p>As of cURL v7.60.0, the Secure Channel backend can use the
6005 certificate bundle provided via <code>http.sslCAInfo</code>, but that would
6006 override the Windows Certificate Store. Since this is not desirable
6007 by default, Git will tell cURL not to use that bundle by default
6008 when the <code>schannel</code> backend was configured via <code>http.sslBackend</code>,
6009 unless <code>http.schannelUseSSLCAInfo</code> overrides this behavior.</p>
6011 <dt class="hdlist1
">http.pinnedPubkey</dt>
6013 <p>Public key of the https service. It may either be the filename of
6014 a PEM or DER encoded public key file or a string starting with
6015 <em>sha256//</em> followed by the base64 encoded sha256 hash of the
6016 public key. See also libcurl <em>CURLOPT_PINNEDPUBLICKEY</em>. git will
6017 exit with an error if this option is set but not supported by
6020 <dt class="hdlist1
">http.sslTry</dt>
6022 <p>Attempt to use AUTH SSL/TLS and encrypted data transfers
6023 when connecting via regular FTP protocol. This might be needed
6024 if the FTP server requires it for security reasons or you wish
6025 to connect securely whenever remote FTP server supports it.
6026 Default is false since it might trigger certificate verification
6027 errors on misconfigured servers.</p>
6029 <dt class="hdlist1
">http.maxRequests</dt>
6031 <p>How many HTTP requests to launch in parallel. Can be overridden
6032 by the <code>GIT_HTTP_MAX_REQUESTS</code> environment variable. Default is 5.</p>
6034 <dt class="hdlist1
">http.minSessions</dt>
6036 <p>The number of curl sessions (counted across slots) to be kept across
6037 requests. They will not be ended with curl_easy_cleanup() until
6038 http_cleanup() is invoked. If USE_CURL_MULTI is not defined, this
6039 value will be capped at 1. Defaults to 1.</p>
6041 <dt class="hdlist1
">http.postBuffer</dt>
6043 <p>Maximum size in bytes of the buffer used by smart HTTP
6044 transports when POSTing data to the remote system.
6045 For requests larger than this buffer size, HTTP/1.1 and
6046 Transfer-Encoding: chunked is used to avoid creating a
6047 massive pack file locally. Default is 1 MiB, which is
6048 sufficient for most requests.</p>
6049 <div class="paragraph
">
6050 <p>Note that raising this limit is only effective for disabling chunked
6051 transfer encoding and therefore should be used only where the remote
6052 server or a proxy only supports HTTP/1.0 or is noncompliant with the
6053 HTTP standard. Raising this is not, in general, an effective solution
6054 for most push problems, but can increase memory consumption
6055 significantly since the entire buffer is allocated even for small
6059 <dt class="hdlist1
">http.lowSpeedLimit, http.lowSpeedTime</dt>
6061 <p>If the HTTP transfer speed, in bytes per second, is less than
6062 <em>http.lowSpeedLimit</em> for longer than <em>http.lowSpeedTime</em> seconds,
6063 the transfer is aborted.
6064 Can be overridden by the <code>GIT_HTTP_LOW_SPEED_LIMIT</code> and
6065 <code>GIT_HTTP_LOW_SPEED_TIME</code> environment variables.</p>
6067 <dt class="hdlist1
">http.noEPSV</dt>
6069 <p>A boolean which disables using of EPSV ftp command by curl.
6070 This can be helpful with some "poor
" ftp servers which don’t
6071 support EPSV mode. Can be overridden by the <code>GIT_CURL_FTP_NO_EPSV</code>
6072 environment variable. Default is false (curl will use EPSV).</p>
6074 <dt class="hdlist1
">http.userAgent</dt>
6076 <p>The HTTP USER_AGENT string presented to an HTTP server. The default
6077 value represents the version of the Git client such as git/1.7.1.
6078 This option allows you to override this value to a more common value
6079 such as Mozilla/4.0. This may be necessary, for instance, if
6080 connecting through a firewall that restricts HTTP connections to a set
6081 of common USER_AGENT strings (but not including those like git/1.7.1).
6082 Can be overridden by the <code>GIT_HTTP_USER_AGENT</code> environment variable.</p>
6084 <dt class="hdlist1
">http.followRedirects</dt>
6086 <p>Whether git should follow HTTP redirects. If set to <code>true</code>, git
6087 will transparently follow any redirect issued by a server it
6088 encounters. If set to <code>false</code>, git will treat all redirects as
6089 errors. If set to <code>initial</code>, git will follow redirects only for
6090 the initial request to a remote, but not for subsequent
6091 follow-up HTTP requests. Since git uses the redirected URL as
6092 the base for the follow-up requests, this is generally
6093 sufficient. The default is <code>initial</code>.</p>
6095 <dt class="hdlist1
">http.<url>.*</dt>
6097 <p>Any of the http.* options above can be applied selectively to some URLs.
6098 For a config key to match a URL, each element of the config key is
6099 compared to that of the URL, in the following order:</p>
6100 <div class="openblock
">
6101 <div class="content
">
6102 <div class="olist arabic
">
6105 <p>Scheme (e.g., <code>https</code> in <code>https://example.com/</code>). This field
6106 must match exactly between the config key and the URL.</p>
6109 <p>Host/domain name (e.g., <code>example.com</code> in <code>https://example.com/</code>).
6110 This field must match between the config key and the URL. It is
6111 possible to specify a * as part of the host name to match all subdomains
6112 at this level. <code>https://</code>*.<code>example.com/</code> for example would match
6113 <code>https://foo.example.com/</code>, but not <code>https://foo.bar.example.com/</code>.</p>
6116 <p>Port number (e.g., <code>8080</code> in <code>http://example.com:8080/</code>).
6117 This field must match exactly between the config key and the URL.
6118 Omitted port numbers are automatically converted to the correct
6119 default for the scheme before matching.</p>
6122 <p>Path (e.g., <code>repo.git</code> in <code>https://example.com/repo.git</code>). The
6123 path field of the config key must match the path field of the URL
6124 either exactly or as a prefix of slash-delimited path elements. This means
6125 a config key with path <code>foo/</code> matches URL path <code>foo/bar</code>. A prefix can only
6126 match on a slash (<code>/</code>) boundary. Longer matches take precedence (so a config
6127 key with path <code>foo/bar</code> is a better match to URL path <code>foo/bar</code> than a config
6128 key with just path <code>foo/</code>).</p>
6131 <p>User name (e.g., <code>user</code> in <code>https://user@example.com/repo.git</code>). If
6132 the config key has a user name it must match the user name in the
6133 URL exactly. If the config key does not have a user name, that
6134 config key will match a URL with any user name (including none),
6135 but at a lower precedence than a config key with a user name.</p>
6141 <div class="paragraph
">
6142 <p>The list above is ordered by decreasing precedence; a URL that matches
6143 a config key’s path is preferred to one that matches its user name. For example,
6144 if the URL is <code>https://user@example.com/foo/bar</code> a config key match of
6145 <code>https://example.com/foo</code> will be preferred over a config key match of
6146 <code>https://user@example.com</code>.</p>
6148 <div class="paragraph
">
6149 <p>All URLs are normalized before attempting any matching (the password part,
6150 if embedded in the URL, is always ignored for matching purposes) so that
6151 equivalent URLs that are simply spelled differently will match properly.
6152 Environment variable settings always override any matches. The URLs that are
6153 matched against are those given directly to Git commands. This means any URLs
6154 visited as a result of a redirection do not participate in matching.</p>
6157 <dt class="hdlist1
">i18n.commitEncoding</dt>
6159 <p>Character encoding the commit messages are stored in; Git itself
6160 does not care per se, but this information is necessary e.g. when
6161 importing commits from emails or in the gitk graphical history
6162 browser (and possibly in other places in the future or in other
6163 porcelains). See e.g. <a href="git-mailinfo.html
">git-mailinfo(1)</a>. Defaults to <em>utf-8</em>.</p>
6165 <dt class="hdlist1
">i18n.logOutputEncoding</dt>
6167 <p>Character encoding the commit messages are converted to when
6168 running <em>git log</em> and friends.</p>
6170 <dt class="hdlist1
">imap.folder</dt>
6172 <p>The folder to drop the mails into, which is typically the Drafts
6173 folder. For example: "INBOX.Drafts
", "INBOX/Drafts
" or
6174 "[Gmail]/Drafts
". Required.</p>
6176 <dt class="hdlist1
">imap.tunnel</dt>
6178 <p>Command used to set up a tunnel to the IMAP server through which
6179 commands will be piped instead of using a direct network connection
6180 to the server. Required when imap.host is not set.</p>
6182 <dt class="hdlist1
">imap.host</dt>
6184 <p>A URL identifying the server. Use an <code>imap://</code> prefix for non-secure
6185 connections and an <code>imaps://</code> prefix for secure connections.
6186 Ignored when imap.tunnel is set, but required otherwise.</p>
6188 <dt class="hdlist1
">imap.user</dt>
6190 <p>The username to use when logging in to the server.</p>
6192 <dt class="hdlist1
">imap.pass</dt>
6194 <p>The password to use when logging in to the server.</p>
6196 <dt class="hdlist1
">imap.port</dt>
6198 <p>An integer port number to connect to on the server.
6199 Defaults to 143 for imap:// hosts and 993 for imaps:// hosts.
6200 Ignored when imap.tunnel is set.</p>
6202 <dt class="hdlist1
">imap.sslverify</dt>
6204 <p>A boolean to enable/disable verification of the server certificate
6205 used by the SSL/TLS connection. Default is <code>true</code>. Ignored when
6206 imap.tunnel is set.</p>
6208 <dt class="hdlist1
">imap.preformattedHTML</dt>
6210 <p>A boolean to enable/disable the use of html encoding when sending
6211 a patch. An html encoded patch will be bracketed with <pre>
6212 and have a content type of text/html. Ironically, enabling this
6213 option causes Thunderbird to send the patch as a plain/text,
6214 format=fixed email. Default is <code>false</code>.</p>
6216 <dt class="hdlist1
">imap.authMethod</dt>
6218 <p>Specify the authentication method for authenticating with the IMAP server.
6219 If Git was built with the NO_CURL option, or if your curl version is older
6220 than 7.34.0, or if you’re running git-imap-send with the <code>--no-curl</code>
6221 option, the only supported method is <em>CRAM-MD5</em>. If this is not set
6222 then <em>git imap-send</em> uses the basic IMAP plaintext LOGIN command.</p>
6224 <dt class="hdlist1
">include.path</dt>
6225 <dt class="hdlist1
">includeIf.<condition>.path</dt>
6227 <p>Special variables to include other configuration files. See
6228 the "CONFIGURATION FILE
" section in the main
6229 <a href="git-config.html
">git-config(1)</a> documentation,
6230 specifically the "Includes
" and "Conditional Includes
" subsections.</p>
6232 <dt class="hdlist1
">index.recordEndOfIndexEntries</dt>
6234 <p>Specifies whether the index file should include an "End Of Index
6235 Entry
" section. This reduces index load time on multiprocessor
6236 machines but produces a message "ignoring EOIE extension
" when
6237 reading the index using Git versions before 2.20. Defaults to
6238 <em>true</em> if index.threads has been explicitly enabled, <em>false</em>
6241 <dt class="hdlist1
">index.recordOffsetTable</dt>
6243 <p>Specifies whether the index file should include an "Index Entry
6244 Offset Table
" section. This reduces index load time on
6245 multiprocessor machines but produces a message "ignoring IEOT
6246 extension
" when reading the index using Git versions before 2.20.
6247 Defaults to <em>true</em> if index.threads has been explicitly enabled,
6248 <em>false</em> otherwise.</p>
6250 <dt class="hdlist1
">index.sparse</dt>
6252 <p>When enabled, write the index using sparse-directory entries. This
6253 has no effect unless <code>core.sparseCheckout</code> and
6254 <code>core.sparseCheckoutCone</code> are both enabled. Defaults to <em>false</em>.</p>
6256 <dt class="hdlist1
">index.threads</dt>
6258 <p>Specifies the number of threads to spawn when loading the index.
6259 This is meant to reduce index load time on multiprocessor machines.
6260 Specifying 0 or <em>true</em> will cause Git to auto-detect the number of
6261 CPUs and set the number of threads accordingly. Specifying 1 or
6262 <em>false</em> will disable multithreading. Defaults to <em>true</em>.</p>
6264 <dt class="hdlist1
">index.version</dt>
6266 <p>Specify the version with which new index files should be
6267 initialized. This does not affect existing repositories.
6268 If <code>feature.manyFiles</code> is enabled, then the default is 4.</p>
6270 <dt class="hdlist1
">index.skipHash</dt>
6272 <p>When enabled, do not compute the trailing hash for the index file.
6273 This accelerates Git commands that manipulate the index, such as
6274 <code>git</code> <code>add</code>, <code>git</code> <code>commit</code>, or <code>git</code> <code>status</code>. Instead of storing the
6275 checksum, write a trailing set of bytes with value zero, indicating
6276 that the computation was skipped.</p>
6277 <div class="paragraph
">
6278 <p>If you enable <code>index.skipHash</code>, then Git clients older than 2.13.0 will
6279 refuse to parse the index and Git clients older than 2.40.0 will report an
6280 error during <code>git</code> <code>fsck</code>.</p>
6287 <dt class="hdlist1
"><code>init.templateDir</code></dt>
6289 <p>Specify the directory from which templates will be copied. (See the "TEMPLATE DIRECTORY
" section of <a href="git-init.html
">git-init(1)</a>.)</p>
6291 <dt class="hdlist1
"><code>init.defaultBranch</code></dt>
6293 <p>Allows overriding the default branch name e.g. when initializing
6294 a new repository.</p>
6296 <dt class="hdlist1
"><code>init.defaultObjectFormat</code></dt>
6298 <p>Allows overriding the default object format for new repositories. See
6299 <code>--object-format=</code> in <a href="git-init.html
">git-init(1)</a>. Both the command line option
6300 and the <code>GIT_DEFAULT_HASH</code> environment variable take precedence over
6303 <dt class="hdlist1
"><code>init.defaultRefFormat</code></dt>
6305 <p>Allows overriding the default ref storage format for new repositories.
6306 See <code>--ref-format=</code> in <a href="git-init.html
">git-init(1)</a>. Both the command line
6307 option and the <code>GIT_DEFAULT_REF_FORMAT</code> environment variable take
6308 precedence over this config.</p>
6310 <dt class="hdlist1
">instaweb.browser</dt>
6312 <p>Specify the program that will be used to browse your working
6313 repository in gitweb. See <a href="git-instaweb.html
">git-instaweb(1)</a>.</p>
6315 <dt class="hdlist1
">instaweb.httpd</dt>
6317 <p>The HTTP daemon command-line to start gitweb on your working
6318 repository. See <a href="git-instaweb.html
">git-instaweb(1)</a>.</p>
6320 <dt class="hdlist1
">instaweb.local</dt>
6322 <p>If true the web server started by <a href="git-instaweb.html
">git-instaweb(1)</a> will
6323 be bound to the local IP (127.0.0.1).</p>
6325 <dt class="hdlist1
">instaweb.modulePath</dt>
6327 <p>The default module path for <a href="git-instaweb.html
">git-instaweb(1)</a> to use
6328 instead of /usr/lib/apache2/modules. Only used if httpd
6331 <dt class="hdlist1
">instaweb.port</dt>
6333 <p>The port number to bind the gitweb httpd to. See
6334 <a href="git-instaweb.html
">git-instaweb(1)</a>.</p>
6336 <dt class="hdlist1
">interactive.singleKey</dt>
6338 <p>When set to true, allow the user to provide one-letter input
6339 with a single key (i.e., without hitting the Enter key) in
6340 interactive commands. This is currently used by the <code>--patch</code>
6341 mode of <a href="git-add.html
">git-add(1)</a>, <a href="git-checkout.html
">git-checkout(1)</a>,
6342 <a href="git-restore.html
">git-restore(1)</a>, <a href="git-commit.html
">git-commit(1)</a>,
6343 <a href="git-reset.html
">git-reset(1)</a>, and <a href="git-stash.html
">git-stash(1)</a>.</p>
6345 <dt class="hdlist1
">interactive.diffFilter</dt>
6347 <p>When an interactive command (such as <code>git</code> <code>add</code> <code>--patch</code>) shows
6348 a colorized diff, git will pipe the diff through the shell
6349 command defined by this configuration variable. The command may
6350 mark up the diff further for human consumption, provided that it
6351 retains a one-to-one correspondence with the lines in the
6352 original diff. Defaults to disabled (no filtering).</p>
6354 <dt class="hdlist1
">log.abbrevCommit</dt>
6356 <p>If true, makes <a href="git-log.html
">git-log(1)</a>, <a href="git-show.html
">git-show(1)</a>, and
6357 <a href="git-whatchanged.html
">git-whatchanged(1)</a> assume <code>--abbrev-commit</code>. You may
6358 override this option with <code>--no-abbrev-commit</code>.</p>
6360 <dt class="hdlist1
">log.date</dt>
6362 <p>Set the default date-time mode for the <em>log</em> command.
6363 Setting a value for log.date is similar to using <em>git log</em>'s
6364 <code>--date</code> option. See <a href="git-log.html
">git-log(1)</a> for details.</p>
6365 <div class="paragraph
">
6366 <p>If the format is set to "auto:foo
" and the pager is in use, format
6367 "foo
" will be used for the date format. Otherwise, "default
" will
6371 <dt class="hdlist1
">log.decorate</dt>
6373 <p>Print out the ref names of any commits that are shown by the log
6374 command. If <em>short</em> is specified, the ref name prefixes <em>refs/heads/</em>,
6375 <em>refs/tags/</em> and <em>refs/remotes/</em> will not be printed. If <em>full</em> is
6376 specified, the full ref name (including prefix) will be printed.
6377 If <em>auto</em> is specified, then if the output is going to a terminal,
6378 the ref names are shown as if <em>short</em> were given, otherwise no ref
6379 names are shown. This is the same as the <code>--decorate</code> option
6380 of the <code>git</code> <code>log</code>.</p>
6382 <dt class="hdlist1
">log.initialDecorationSet</dt>
6384 <p>By default, <code>git</code> <code>log</code> only shows decorations for certain known ref
6385 namespaces. If <em>all</em> is specified, then show all refs as
6388 <dt class="hdlist1
">log.excludeDecoration</dt>
6390 <p>Exclude the specified patterns from the log decorations. This is
6391 similar to the <code>--decorate-refs-exclude</code> command-line option, but
6392 the config option can be overridden by the <code>--decorate-refs</code>
6395 <dt class="hdlist1
">log.diffMerges</dt>
6397 <p>Set diff format to be used when <code>--diff-merges=on</code> is
6398 specified, see <code>--diff-merges</code> in <a href="git-log.html
">git-log(1)</a> for
6399 details. Defaults to <code>separate</code>.</p>
6401 <dt class="hdlist1
">log.follow</dt>
6403 <p>If <code>true</code>, <code>git</code> <code>log</code> will act as if the <code>--follow</code> option was used when
6404 a single <path> is given. This has the same limitations as <code>--follow</code>,
6405 i.e. it cannot be used to follow multiple files and does not work well
6406 on non-linear history.</p>
6408 <dt class="hdlist1
">log.graphColors</dt>
6410 <p>A list of colors, separated by commas, that can be used to draw
6411 history lines in <code>git</code> <code>log</code> <code>--graph</code>.</p>
6413 <dt class="hdlist1
">log.showRoot</dt>
6415 <p>If true, the initial commit will be shown as a big creation event.
6416 This is equivalent to a diff against an empty tree.
6417 Tools like <a href="git-log.html
">git-log(1)</a> or <a href="git-whatchanged.html
">git-whatchanged(1)</a>, which
6418 normally hide the root commit will now show it. True by default.</p>
6420 <dt class="hdlist1
">log.showSignature</dt>
6422 <p>If true, makes <a href="git-log.html
">git-log(1)</a>, <a href="git-show.html
">git-show(1)</a>, and
6423 <a href="git-whatchanged.html
">git-whatchanged(1)</a> assume <code>--show-signature</code>.</p>
6425 <dt class="hdlist1
">log.mailmap</dt>
6427 <p>If true, makes <a href="git-log.html
">git-log(1)</a>, <a href="git-show.html
">git-show(1)</a>, and
6428 <a href="git-whatchanged.html
">git-whatchanged(1)</a> assume <code>--use-mailmap</code>, otherwise
6429 assume <code>--no-use-mailmap</code>. True by default.</p>
6431 <dt class="hdlist1
">lsrefs.unborn</dt>
6433 <p>May be "advertise
" (the default), "allow
", or "ignore
". If "advertise
",
6434 the server will respond to the client sending "unborn
" (as described in
6435 <a href="gitprotocol-v2.html
">gitprotocol-v2(5)</a>) and will advertise support for this feature during the
6436 protocol v2 capability advertisement. "allow
" is the same as
6437 "advertise
" except that the server will not advertise support for this
6438 feature; this is useful for load-balanced servers that cannot be
6439 updated atomically (for example), since the administrator could
6440 configure "allow
", then after a delay, configure "advertise
".</p>
6442 <dt class="hdlist1
">mailinfo.scissors</dt>
6444 <p>If true, makes <a href="git-mailinfo.html
">git-mailinfo(1)</a> (and therefore
6445 <a href="git-am.html
">git-am(1)</a>) act by default as if the --scissors option
6446 was provided on the command-line. When active, this feature
6447 removes everything from the message body before a scissors
6448 line (i.e. consisting mainly of ">8", "8<" and "-
").</p>
6450 <dt class="hdlist1
">mailmap.file</dt>
6452 <p>The location of an augmenting mailmap file. The default
6453 mailmap, located in the root of the repository, is loaded
6454 first, then the mailmap file pointed to by this variable.
6455 The location of the mailmap file may be in a repository
6456 subdirectory, or somewhere outside of the repository itself.
6457 See <a href="git-shortlog.html
">git-shortlog(1)</a> and <a href="git-blame.html
">git-blame(1)</a>.</p>
6459 <dt class="hdlist1
">mailmap.blob</dt>
6461 <p>Like <code>mailmap.file</code>, but consider the value as a reference to a
6462 blob in the repository. If both <code>mailmap.file</code> and
6463 <code>mailmap.blob</code> are given, both are parsed, with entries from
6464 <code>mailmap.file</code> taking precedence. In a bare repository, this
6465 defaults to <code>HEAD:.mailmap</code>. In a non-bare repository, it
6466 defaults to empty.</p>
6468 <dt class="hdlist1
">maintenance.auto</dt>
6470 <p>This boolean config option controls whether some commands run
6471 <code>git</code> <code>maintenance</code> <code>run</code> <code>--auto</code> after doing their normal work. Defaults
6474 <dt class="hdlist1
">maintenance.autoDetach</dt>
6476 <p>Many Git commands trigger automatic maintenance after they have
6477 written data into the repository. This boolean config option
6478 controls whether this automatic maintenance shall happen in the
6479 foreground or whether the maintenance process shall detach and
6480 continue to run in the background.</p>
6481 <div class="paragraph
">
6482 <p>If unset, the value of <code>gc.autoDetach</code> is used as a fallback. Defaults
6483 to true if both are unset, meaning that the maintenance process will
6487 <dt class="hdlist1
">maintenance.strategy</dt>
6489 <p>This string config option provides a way to specify one of a few
6490 recommended schedules for background maintenance. This only affects
6491 which tasks are run during <code>git</code> <code>maintenance</code> <code>run</code> <code>--schedule=X</code>
6492 commands, provided no <code>--task=</code><em><task></em> arguments are provided.
6493 Further, if a <code>maintenance.</code><em><task></em><code>.schedule</code> config value is set,
6494 then that value is used instead of the one provided by
6495 <code>maintenance.strategy</code>. The possible strategy strings are:</p>
6499 <p><code>none</code>: This default setting implies no tasks are run at any schedule.</p>
6502 <p><code>incremental</code>: This setting optimizes for performing small maintenance
6503 activities that do not delete any data. This does not schedule the <code>gc</code>
6504 task, but runs the <code>prefetch</code> and <code>commit-graph</code> tasks hourly, the
6505 <code>loose-objects</code> and <code>incremental-repack</code> tasks daily, and the <code>pack-refs</code>
6511 <dt class="hdlist1
">maintenance.<task>.enabled</dt>
6513 <p>This boolean config option controls whether the maintenance task
6514 with name <em><task></em> is run when no <code>--task</code> option is specified to
6515 <code>git</code> <code>maintenance</code> <code>run</code>. These config values are ignored if a
6516 <code>--task</code> option exists. By default, only <code>maintenance.gc.enabled</code>
6519 <dt class="hdlist1
">maintenance.<task>.schedule</dt>
6521 <p>This config option controls whether or not the given <em><task></em> runs
6522 during a <code>git</code> <code>maintenance</code> <code>run</code> <code>--schedule=</code><em><frequency></em> command. The
6523 value must be one of "hourly
", "daily
", or "weekly
".</p>
6525 <dt class="hdlist1
">maintenance.commit-graph.auto</dt>
6527 <p>This integer config option controls how often the <code>commit-graph</code> task
6528 should be run as part of <code>git</code> <code>maintenance</code> <code>run</code> <code>--auto</code>. If zero, then
6529 the <code>commit-graph</code> task will not run with the <code>--auto</code> option. A
6530 negative value will force the task to run every time. Otherwise, a
6531 positive value implies the command should run when the number of
6532 reachable commits that are not in the commit-graph file is at least
6533 the value of <code>maintenance.commit-graph.auto</code>. The default value is
6536 <dt class="hdlist1
">maintenance.loose-objects.auto</dt>
6538 <p>This integer config option controls how often the <code>loose-objects</code> task
6539 should be run as part of <code>git</code> <code>maintenance</code> <code>run</code> <code>--auto</code>. If zero, then
6540 the <code>loose-objects</code> task will not run with the <code>--auto</code> option. A
6541 negative value will force the task to run every time. Otherwise, a
6542 positive value implies the command should run when the number of
6543 loose objects is at least the value of <code>maintenance.loose-objects.auto</code>.
6544 The default value is 100.</p>
6546 <dt class="hdlist1
">maintenance.incremental-repack.auto</dt>
6548 <p>This integer config option controls how often the <code>incremental-repack</code>
6549 task should be run as part of <code>git</code> <code>maintenance</code> <code>run</code> <code>--auto</code>. If zero,
6550 then the <code>incremental-repack</code> task will not run with the <code>--auto</code>
6551 option. A negative value will force the task to run every time.
6552 Otherwise, a positive value implies the command should run when the
6553 number of pack-files not in the multi-pack-index is at least the value
6554 of <code>maintenance.incremental-repack.auto</code>. The default value is 10.</p>
6556 <dt class="hdlist1
">man.viewer</dt>
6558 <p>Specify the programs that may be used to display help in the
6559 <em>man</em> format. See <a href="git-help.html
">git-help(1)</a>.</p>
6561 <dt class="hdlist1
">man.<tool>.cmd</dt>
6563 <p>Specify the command to invoke the specified man viewer. The
6564 specified command is evaluated in shell with the man page
6565 passed as an argument. (See <a href="git-help.html
">git-help(1)</a>.)</p>
6567 <dt class="hdlist1
">man.<tool>.path</dt>
6569 <p>Override the path for the given tool that may be used to
6570 display help in the <em>man</em> format. See <a href="git-help.html
">git-help(1)</a>.</p>
6572 <dt class="hdlist1
">merge.conflictStyle</dt>
6574 <p>Specify the style in which conflicted hunks are written out to
6575 working tree files upon merge. The default is "merge
", which
6576 shows a <<<<<<< conflict marker, changes made by one side,
6577 a <code>=======</code> marker, changes made by the other side, and then
6578 a >>>>>>> marker. An alternate style, "diff3
", adds a |||||||
6579 marker and the original text before the <code>=======</code> marker. The
6580 "merge
" style tends to produce smaller conflict regions than diff3,
6581 both because of the exclusion of the original text, and because
6582 when a subset of lines match on the two sides, they are just pulled
6583 out of the conflict region. Another alternate style, "zdiff3
", is
6584 similar to diff3 but removes matching lines on the two sides from
6585 the conflict region when those matching lines appear near either
6586 the beginning or end of a conflict region.</p>
6588 <dt class="hdlist1
">merge.defaultToUpstream</dt>
6590 <p>If merge is called without any commit argument, merge the upstream
6591 branches configured for the current branch by using their last
6592 observed values stored in their remote-tracking branches.
6593 The values of the <code>branch.</code><current <code>branch</code>><code>.merge</code> that name the
6594 branches at the remote named by <code>branch.</code><current <code>branch</code>><code>.remote</code>
6595 are consulted, and then they are mapped via <code>remote.</code><em><remote></em><code>.fetch</code>
6596 to their corresponding remote-tracking branches, and the tips of
6597 these tracking branches are merged. Defaults to true.</p>
6599 <dt class="hdlist1
">merge.ff</dt>
6601 <p>By default, Git does not create an extra merge commit when merging
6602 a commit that is a descendant of the current commit. Instead, the
6603 tip of the current branch is fast-forwarded. When set to <code>false</code>,
6604 this variable tells Git to create an extra merge commit in such
6605 a case (equivalent to giving the <code>--no-ff</code> option from the command
6606 line). When set to <code>only</code>, only such fast-forward merges are
6607 allowed (equivalent to giving the <code>--ff-only</code> option from the
6610 <dt class="hdlist1
">merge.verifySignatures</dt>
6612 <p>If true, this is equivalent to the --verify-signatures command
6613 line option. See <a href="git-merge.html
">git-merge(1)</a> for details.</p>
6615 <dt class="hdlist1
">merge.branchdesc</dt>
6617 <p>In addition to branch names, populate the log message with
6618 the branch description text associated with them. Defaults
6621 <dt class="hdlist1
">merge.log</dt>
6623 <p>In addition to branch names, populate the log message with at
6624 most the specified number of one-line descriptions from the
6625 actual commits that are being merged. Defaults to false, and
6626 true is a synonym for 20.</p>
6628 <dt class="hdlist1
">merge.suppressDest</dt>
6630 <p>By adding a glob that matches the names of integration
6631 branches to this multi-valued configuration variable, the
6632 default merge message computed for merges into these
6633 integration branches will omit "into
<branch name
>" from
6635 <div class="paragraph
">
6636 <p>An element with an empty value can be used to clear the list
6637 of globs accumulated from previous configuration entries.
6638 When there is no <code>merge.suppressDest</code> variable defined, the
6639 default value of <code>master</code> is used for backward compatibility.</p>
6642 <dt class="hdlist1
">merge.renameLimit</dt>
6644 <p>The number of files to consider in the exhaustive portion of
6645 rename detection during a merge. If not specified, defaults
6646 to the value of diff.renameLimit. If neither
6647 merge.renameLimit nor diff.renameLimit are specified,
6648 currently defaults to 7000. This setting has no effect if
6649 rename detection is turned off.</p>
6651 <dt class="hdlist1
">merge.renames</dt>
6653 <p>Whether Git detects renames. If set to "false
", rename detection
6654 is disabled. If set to "true
", basic rename detection is enabled.
6655 Defaults to the value of diff.renames.</p>
6657 <dt class="hdlist1
">merge.directoryRenames</dt>
6659 <p>Whether Git detects directory renames, affecting what happens at
6660 merge time to new files added to a directory on one side of
6661 history when that directory was renamed on the other side of
6662 history. If merge.directoryRenames is set to "false
", directory
6663 rename detection is disabled, meaning that such new files will be
6664 left behind in the old directory. If set to "true
", directory
6665 rename detection is enabled, meaning that such new files will be
6666 moved into the new directory. If set to "conflict
", a conflict
6667 will be reported for such paths. If merge.renames is false,
6668 merge.directoryRenames is ignored and treated as false. Defaults
6671 <dt class="hdlist1
">merge.renormalize</dt>
6673 <p>Tell Git that canonical representation of files in the
6674 repository has changed over time (e.g. earlier commits record
6675 text files with CRLF line endings, but recent ones use LF line
6676 endings). In such a repository, Git can convert the data
6677 recorded in commits to a canonical form before performing a
6678 merge to reduce unnecessary conflicts. For more information,
6679 see section "Merging branches with differing checkin/checkout
6680 attributes
" in <a href="gitattributes.html
">gitattributes(5)</a>.</p>
6682 <dt class="hdlist1
">merge.stat</dt>
6684 <p>Whether to print the diffstat between ORIG_HEAD and the merge result
6685 at the end of the merge. True by default.</p>
6687 <dt class="hdlist1
">merge.autoStash</dt>
6689 <p>When set to true, automatically create a temporary stash entry
6690 before the operation begins, and apply it after the operation
6691 ends. This means that you can run merge on a dirty worktree.
6692 However, use with care: the final stash application after a
6693 successful merge might result in non-trivial conflicts.
6694 This option can be overridden by the <code>--no-autostash</code> and
6695 <code>--autostash</code> options of <a href="git-merge.html
">git-merge(1)</a>.
6696 Defaults to false.</p>
6698 <dt class="hdlist1
">merge.tool</dt>
6700 <p>Controls which merge tool is used by <a href="git-mergetool.html
">git-mergetool(1)</a>.
6701 The list below shows the valid built-in values.
6702 Any other value is treated as a custom merge tool and requires
6703 that a corresponding mergetool.<tool>.cmd variable is defined.</p>
6705 <dt class="hdlist1
">merge.guitool</dt>
6707 <p>Controls which merge tool is used by <a href="git-mergetool.html
">git-mergetool(1)</a> when the
6708 -g/--gui flag is specified. The list below shows the valid built-in values.
6709 Any other value is treated as a custom merge tool and requires that a
6710 corresponding mergetool.<guitool>.cmd variable is defined.</p>
6713 <dt class="hdlist1
"><code>araxis</code></dt>
6715 <p>Use Araxis Merge (requires a graphical session)</p>
6717 <dt class="hdlist1
"><code>bc</code></dt>
6719 <p>Use Beyond Compare (requires a graphical session)</p>
6721 <dt class="hdlist1
"><code>bc3</code></dt>
6723 <p>Use Beyond Compare (requires a graphical session)</p>
6725 <dt class="hdlist1
"><code>bc4</code></dt>
6727 <p>Use Beyond Compare (requires a graphical session)</p>
6729 <dt class="hdlist1
"><code>codecompare</code></dt>
6731 <p>Use Code Compare (requires a graphical session)</p>
6733 <dt class="hdlist1
"><code>deltawalker</code></dt>
6735 <p>Use DeltaWalker (requires a graphical session)</p>
6737 <dt class="hdlist1
"><code>diffmerge</code></dt>
6739 <p>Use DiffMerge (requires a graphical session)</p>
6741 <dt class="hdlist1
"><code>diffuse</code></dt>
6743 <p>Use Diffuse (requires a graphical session)</p>
6745 <dt class="hdlist1
"><code>ecmerge</code></dt>
6747 <p>Use ECMerge (requires a graphical session)</p>
6749 <dt class="hdlist1
"><code>emerge</code></dt>
6751 <p>Use Emacs' Emerge</p>
6753 <dt class="hdlist1
"><code>examdiff</code></dt>
6755 <p>Use ExamDiff Pro (requires a graphical session)</p>
6757 <dt class="hdlist1
"><code>guiffy</code></dt>
6759 <p>Use Guiffy’s Diff Tool (requires a graphical session)</p>
6761 <dt class="hdlist1
"><code>gvimdiff</code></dt>
6763 <p>Use gVim (requires a graphical session) with a custom layout (see <code>git</code> <code>help</code> <code>mergetool</code>'s <code>BACKEND</code> <code>SPECIFIC</code> <code>HINTS</code> section)</p>
6765 <dt class="hdlist1
"><code>gvimdiff1</code></dt>
6767 <p>Use gVim (requires a graphical session) with a 2 panes layout (LOCAL and REMOTE)</p>
6769 <dt class="hdlist1
"><code>gvimdiff2</code></dt>
6771 <p>Use gVim (requires a graphical session) with a 3 panes layout (LOCAL, MERGED and REMOTE)</p>
6773 <dt class="hdlist1
"><code>gvimdiff3</code></dt>
6775 <p>Use gVim (requires a graphical session) where only the MERGED file is shown</p>
6777 <dt class="hdlist1
"><code>kdiff3</code></dt>
6779 <p>Use KDiff3 (requires a graphical session)</p>
6781 <dt class="hdlist1
"><code>meld</code></dt>
6783 <p>Use Meld (requires a graphical session) with optional <code>auto</code> <code>merge</code> (see <code>git</code> <code>help</code> <code>mergetool</code>'s <code>CONFIGURATION</code> section)</p>
6785 <dt class="hdlist1
"><code>nvimdiff</code></dt>
6787 <p>Use Neovim with a custom layout (see <code>git</code> <code>help</code> <code>mergetool</code>'s <code>BACKEND</code> <code>SPECIFIC</code> <code>HINTS</code> section)</p>
6789 <dt class="hdlist1
"><code>nvimdiff1</code></dt>
6791 <p>Use Neovim with a 2 panes layout (LOCAL and REMOTE)</p>
6793 <dt class="hdlist1
"><code>nvimdiff2</code></dt>
6795 <p>Use Neovim with a 3 panes layout (LOCAL, MERGED and REMOTE)</p>
6797 <dt class="hdlist1
"><code>nvimdiff3</code></dt>
6799 <p>Use Neovim where only the MERGED file is shown</p>
6801 <dt class="hdlist1
"><code>opendiff</code></dt>
6803 <p>Use FileMerge (requires a graphical session)</p>
6805 <dt class="hdlist1
"><code>p4merge</code></dt>
6807 <p>Use HelixCore P4Merge (requires a graphical session)</p>
6809 <dt class="hdlist1
"><code>smerge</code></dt>
6811 <p>Use Sublime Merge (requires a graphical session)</p>
6813 <dt class="hdlist1
"><code>tkdiff</code></dt>
6815 <p>Use TkDiff (requires a graphical session)</p>
6817 <dt class="hdlist1
"><code>tortoisemerge</code></dt>
6819 <p>Use TortoiseMerge (requires a graphical session)</p>
6821 <dt class="hdlist1
"><code>vimdiff</code></dt>
6823 <p>Use Vim with a custom layout (see <code>git</code> <code>help</code> <code>mergetool</code>'s <code>BACKEND</code> <code>SPECIFIC</code> <code>HINTS</code> section)</p>
6825 <dt class="hdlist1
"><code>vimdiff1</code></dt>
6827 <p>Use Vim with a 2 panes layout (LOCAL and REMOTE)</p>
6829 <dt class="hdlist1
"><code>vimdiff2</code></dt>
6831 <p>Use Vim with a 3 panes layout (LOCAL, MERGED and REMOTE)</p>
6833 <dt class="hdlist1
"><code>vimdiff3</code></dt>
6835 <p>Use Vim where only the MERGED file is shown</p>
6837 <dt class="hdlist1
"><code>vscode</code></dt>
6839 <p>Use Visual Studio Code (requires a graphical session)</p>
6841 <dt class="hdlist1
"><code>winmerge</code></dt>
6843 <p>Use WinMerge (requires a graphical session)</p>
6845 <dt class="hdlist1
"><code>xxdiff</code></dt>
6847 <p>Use xxdiff (requires a graphical session)</p>
6852 <dt class="hdlist1
">merge.verbosity</dt>
6854 <p>Controls the amount of output shown by the recursive merge
6855 strategy. Level 0 outputs nothing except a final error
6856 message if conflicts were detected. Level 1 outputs only
6857 conflicts, 2 outputs conflicts and file changes. Level 5 and
6858 above outputs debugging information. The default is level 2.
6859 Can be overridden by the <code>GIT_MERGE_VERBOSITY</code> environment variable.</p>
6861 <dt class="hdlist1
">merge.<driver>.name</dt>
6863 <p>Defines a human-readable name for a custom low-level
6864 merge driver. See <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
6866 <dt class="hdlist1
">merge.<driver>.driver</dt>
6868 <p>Defines the command that implements a custom low-level
6869 merge driver. See <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
6871 <dt class="hdlist1
">merge.<driver>.recursive</dt>
6873 <p>Names a low-level merge driver to be used when
6874 performing an internal merge between common ancestors.
6875 See <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
6877 <dt class="hdlist1
">mergetool.<tool>.path</dt>
6879 <p>Override the path for the given tool. This is useful in case
6880 your tool is not in the PATH.</p>
6882 <dt class="hdlist1
">mergetool.<tool>.cmd</dt>
6884 <p>Specify the command to invoke the specified merge tool. The
6885 specified command is evaluated in shell with the following
6886 variables available: <em>BASE</em> is the name of a temporary file
6887 containing the common base of the files to be merged, if available;
6888 <em>LOCAL</em> is the name of a temporary file containing the contents of
6889 the file on the current branch; <em>REMOTE</em> is the name of a temporary
6890 file containing the contents of the file from the branch being
6891 merged; <em>MERGED</em> contains the name of the file to which the merge
6892 tool should write the results of a successful merge.</p>
6894 <dt class="hdlist1
">mergetool.<tool>.hideResolved</dt>
6896 <p>Allows the user to override the global <code>mergetool.hideResolved</code> value
6897 for a specific tool. See <code>mergetool.hideResolved</code> for the full
6900 <dt class="hdlist1
">mergetool.<tool>.trustExitCode</dt>
6902 <p>For a custom merge command, specify whether the exit code of
6903 the merge command can be used to determine whether the merge was
6904 successful. If this is not set to true then the merge target file
6905 timestamp is checked, and the merge is assumed to have been successful
6906 if the file has been updated; otherwise, the user is prompted to
6907 indicate the success of the merge.</p>
6909 <dt class="hdlist1
">mergetool.meld.hasOutput</dt>
6911 <p>Older versions of <code>meld</code> do not support the <code>--output</code> option.
6912 Git will attempt to detect whether <code>meld</code> supports <code>--output</code>
6913 by inspecting the output of <code>meld</code> <code>--help</code>. Configuring
6914 <code>mergetool.meld.hasOutput</code> will make Git skip these checks and
6915 use the configured value instead. Setting <code>mergetool.meld.hasOutput</code>
6916 to <code>true</code> tells Git to unconditionally use the <code>--output</code> option,
6917 and <code>false</code> avoids using <code>--output</code>.</p>
6919 <dt class="hdlist1
">mergetool.meld.useAutoMerge</dt>
6921 <p>When the <code>--auto-merge</code> is given, meld will merge all non-conflicting
6922 parts automatically, highlight the conflicting parts, and wait for
6923 user decision. Setting <code>mergetool.meld.useAutoMerge</code> to <code>true</code> tells
6924 Git to unconditionally use the <code>--auto-merge</code> option with <code>meld</code>.
6925 Setting this value to <code>auto</code> makes git detect whether <code>--auto-merge</code>
6926 is supported and will only use <code>--auto-merge</code> when available. A
6927 value of <code>false</code> avoids using <code>--auto-merge</code> altogether, and is the
6930 <dt class="hdlist1
">mergetool.<vimdiff variant>.layout</dt>
6932 <p>Configure the split window layout for vimdiff’s <em><variant></em>, which is any of <code>vimdiff</code>,
6933 <code>nvimdiff</code>, <code>gvimdiff</code>.
6934 Upon launching <code>git</code> <code>mergetool</code> with <code>--tool=</code><em><variant></em> (or without <code>--tool</code>
6935 if <code>merge.tool</code> is configured as <em><variant></em>), Git will consult
6936 <code>mergetool.</code><em><variant></em><code>.layout</code> to determine the tool’s layout. If the
6937 variant-specific configuration is not available, <code>vimdiff</code>'s is used as
6938 fallback. If that too is not available, a default layout with 4 windows
6939 will be used. To configure the layout, see the <code>BACKEND</code> <code>SPECIFIC</code> <code>HINTS</code>
6940 section in <a href="git-mergetool.html
">git-mergetool(1)</a>.</p>
6942 <dt class="hdlist1
">mergetool.hideResolved</dt>
6944 <p>During a merge, Git will automatically resolve as many conflicts as
6945 possible and write the <em>MERGED</em> file containing conflict markers around
6946 any conflicts that it cannot resolve; <em>LOCAL</em> and <em>REMOTE</em> normally
6947 represent the versions of the file from before Git’s conflict
6948 resolution. This flag causes <em>LOCAL</em> and <em>REMOTE</em> to be overwritten so
6949 that only the unresolved conflicts are presented to the merge tool. Can
6950 be configured per-tool via the <code>mergetool.</code><em><tool></em><code>.hideResolved</code>
6951 configuration variable. Defaults to <code>false</code>.</p>
6953 <dt class="hdlist1
">mergetool.keepBackup</dt>
6955 <p>After performing a merge, the original file with conflict markers
6956 can be saved as a file with a .<code>orig</code> extension. If this variable
6957 is set to <code>false</code> then this file is not preserved. Defaults to
6958 <code>true</code> (i.e. keep the backup files).</p>
6960 <dt class="hdlist1
">mergetool.keepTemporaries</dt>
6962 <p>When invoking a custom merge tool, Git uses a set of temporary
6963 files to pass to the tool. If the tool returns an error and this
6964 variable is set to <code>true</code>, then these temporary files will be
6965 preserved; otherwise, they will be removed after the tool has
6966 exited. Defaults to <code>false</code>.</p>
6968 <dt class="hdlist1
">mergetool.writeToTemp</dt>
6970 <p>Git writes temporary <em>BASE</em>, <em>LOCAL</em>, and <em>REMOTE</em> versions of
6971 conflicting files in the worktree by default. Git will attempt
6972 to use a temporary directory for these files when set <code>true</code>.
6973 Defaults to <code>false</code>.</p>
6975 <dt class="hdlist1
">mergetool.prompt</dt>
6977 <p>Prompt before each invocation of the merge resolution program.</p>
6979 <dt class="hdlist1
">mergetool.guiDefault</dt>
6981 <p>Set <code>true</code> to use the <code>merge.guitool</code> by default (equivalent to
6982 specifying the <code>--gui</code> argument), or <code>auto</code> to select <code>merge.guitool</code>
6983 or <code>merge.tool</code> depending on the presence of a <code>DISPLAY</code> environment
6984 variable value. The default is <code>false</code>, where the <code>--gui</code> argument
6985 must be provided explicitly for the <code>merge.guitool</code> to be used.</p>
6987 <dt class="hdlist1
">notes.mergeStrategy</dt>
6989 <p>Which merge strategy to choose by default when resolving notes
6990 conflicts. Must be one of <code>manual</code>, <code>ours</code>, <code>theirs</code>, <code>union</code>, or
6991 <code>cat_sort_uniq</code>. Defaults to <code>manual</code>. See the "NOTES MERGE STRATEGIES
"
6992 section of <a href="git-notes.html
">git-notes(1)</a> for more information on each strategy.</p>
6993 <div class="paragraph
">
6994 <p>This setting can be overridden by passing the <code>--strategy</code> option to
6995 <a href="git-notes.html
">git-notes(1)</a>.</p>
6998 <dt class="hdlist1
">notes.<name>.mergeStrategy</dt>
7000 <p>Which merge strategy to choose when doing a notes merge into
7001 refs/notes/<name>. This overrides the more general
7002 "notes.mergeStrategy
". See the "NOTES MERGE STRATEGIES
" section in
7003 <a href="git-notes.html
">git-notes(1)</a> for more information on the available strategies.</p>
7005 <dt class="hdlist1
">notes.displayRef</dt>
7007 <p>Which ref (or refs, if a glob or specified more than once), in
7008 addition to the default set by <code>core.notesRef</code> or
7009 <code>GIT_NOTES_REF</code>, to read notes from when showing commit
7010 messages with the <em>git log</em> family of commands.</p>
7011 <div class="paragraph
">
7012 <p>This setting can be overridden with the <code>GIT_NOTES_DISPLAY_REF</code>
7013 environment variable, which must be a colon separated list of refs or
7016 <div class="paragraph
">
7017 <p>A warning will be issued for refs that do not exist,
7018 but a glob that does not match any refs is silently ignored.</p>
7020 <div class="paragraph
">
7021 <p>This setting can be disabled by the <code>--no-notes</code> option to the <em>git
7022 log</em> family of commands, or by the <code>--notes=</code><em><ref></em> option accepted by
7025 <div class="paragraph
">
7026 <p>The effective value of "core.notesRef
" (possibly overridden by
7027 GIT_NOTES_REF) is also implicitly added to the list of refs to be
7031 <dt class="hdlist1
">notes.rewrite.<command></dt>
7033 <p>When rewriting commits with <command> (currently <code>amend</code> or
7034 <code>rebase</code>), if this variable is <code>false</code>, git will not copy
7035 notes from the original to the rewritten commit. Defaults to
7036 <code>true</code>. See also "<code>notes.rewriteRef
</code>" below.</p>
7037 <div class="paragraph
">
7038 <p>This setting can be overridden with the <code>GIT_NOTES_REWRITE_REF</code>
7039 environment variable, which must be a colon separated list of refs or
7043 <dt class="hdlist1
">notes.rewriteMode</dt>
7045 <p>When copying notes during a rewrite (see the
7046 "notes.rewrite.
<command
>" option), determines what to do if
7047 the target commit already has a note. Must be one of
7048 <code>overwrite</code>, <code>concatenate</code>, <code>cat_sort_uniq</code>, or <code>ignore</code>.
7049 Defaults to <code>concatenate</code>.</p>
7050 <div class="paragraph
">
7051 <p>This setting can be overridden with the <code>GIT_NOTES_REWRITE_MODE</code>
7052 environment variable.</p>
7055 <dt class="hdlist1
">notes.rewriteRef</dt>
7057 <p>When copying notes during a rewrite, specifies the (fully
7058 qualified) ref whose notes should be copied. May be a glob,
7059 in which case notes in all matching refs will be copied. You
7060 may also specify this configuration several times.</p>
7061 <div class="paragraph
">
7062 <p>Does not have a default value; you must configure this variable to
7063 enable note rewriting. Set it to <code>refs/notes/commits</code> to enable
7064 rewriting for the default commit notes.</p>
7066 <div class="paragraph
">
7067 <p>Can be overridden with the <code>GIT_NOTES_REWRITE_REF</code> environment variable.
7068 See <code>notes.rewrite.</code><em><command></em> above for a further description of its format.</p>
7071 <dt class="hdlist1
">pack.window</dt>
7073 <p>The size of the window used by <a href="git-pack-objects.html
">git-pack-objects(1)</a> when no
7074 window size is given on the command line. Defaults to 10.</p>
7076 <dt class="hdlist1
">pack.depth</dt>
7078 <p>The maximum delta depth used by <a href="git-pack-objects.html
">git-pack-objects(1)</a> when no
7079 maximum depth is given on the command line. Defaults to 50.
7080 Maximum value is 4095.</p>
7082 <dt class="hdlist1
">pack.windowMemory</dt>
7084 <p>The maximum size of memory that is consumed by each thread
7085 in <a href="git-pack-objects.html
">git-pack-objects(1)</a> for pack window memory when
7086 no limit is given on the command line. The value can be
7087 suffixed with "k
", "m
", or "g
". When left unconfigured (or
7088 set explicitly to 0), there will be no limit.</p>
7090 <dt class="hdlist1
">pack.compression</dt>
7092 <p>An integer -1..9, indicating the compression level for objects
7093 in a pack file. -1 is the zlib default. 0 means no
7094 compression, and 1..9 are various speed/size tradeoffs, 9 being
7095 slowest. If not set, defaults to core.compression. If that is
7096 not set, defaults to -1, the zlib default, which is "a default
7097 compromise between speed and compression (currently equivalent
7099 <div class="paragraph
">
7100 <p>Note that changing the compression level will not automatically recompress
7101 all existing objects. You can force recompression by passing the -F option
7102 to <a href="git-repack.html
">git-repack(1)</a>.</p>
7105 <dt class="hdlist1
">pack.allowPackReuse</dt>
7107 <p>When true or "single
", and when reachability bitmaps are
7108 enabled, pack-objects will try to send parts of the bitmapped
7109 packfile verbatim. When "multi
", and when a multi-pack
7110 reachability bitmap is available, pack-objects will try to send
7111 parts of all packs in the MIDX.</p>
7112 <div class="paragraph
">
7113 <p>If only a single pack bitmap is available, and <code>pack.allowPackReuse</code>
7114 is set to "multi
", reuse parts of just the bitmapped packfile. This
7115 can reduce memory and CPU usage to serve fetches, but might result in
7116 sending a slightly larger pack. Defaults to true.</p>
7119 <dt class="hdlist1
">pack.island</dt>
7121 <p>An extended regular expression configuring a set of delta
7122 islands. See "DELTA ISLANDS
" in <a href="git-pack-objects.html
">git-pack-objects(1)</a>
7125 <dt class="hdlist1
">pack.islandCore</dt>
7127 <p>Specify an island name which gets to have its objects be
7128 packed first. This creates a kind of pseudo-pack at the front
7129 of one pack, so that the objects from the specified island are
7130 hopefully faster to copy into any pack that should be served
7131 to a user requesting these objects. In practice this means
7132 that the island specified should likely correspond to what is
7133 the most commonly cloned in the repo. See also "DELTA ISLANDS
"
7134 in <a href="git-pack-objects.html
">git-pack-objects(1)</a>.</p>
7136 <dt class="hdlist1
">pack.deltaCacheSize</dt>
7138 <p>The maximum memory in bytes used for caching deltas in
7139 <a href="git-pack-objects.html
">git-pack-objects(1)</a> before writing them out to a pack.
7140 This cache is used to speed up the writing object phase by not
7141 having to recompute the final delta result once the best match
7142 for all objects is found. Repacking large repositories on machines
7143 which are tight with memory might be badly impacted by this though,
7144 especially if this cache pushes the system into swapping.
7145 A value of 0 means no limit. The smallest size of 1 byte may be
7146 used to virtually disable this cache. Defaults to 256 MiB.</p>
7148 <dt class="hdlist1
">pack.deltaCacheLimit</dt>
7150 <p>The maximum size of a delta, that is cached in
7151 <a href="git-pack-objects.html
">git-pack-objects(1)</a>. This cache is used to speed up the
7152 writing object phase by not having to recompute the final delta
7153 result once the best match for all objects is found.
7154 Defaults to 1000. Maximum value is 65535.</p>
7156 <dt class="hdlist1
">pack.threads</dt>
7158 <p>Specifies the number of threads to spawn when searching for best
7159 delta matches. This requires that <a href="git-pack-objects.html
">git-pack-objects(1)</a>
7160 be compiled with pthreads otherwise this option is ignored with a
7161 warning. This is meant to reduce packing time on multiprocessor
7162 machines. The required amount of memory for the delta search window
7163 is however multiplied by the number of threads.
7164 Specifying 0 will cause Git to auto-detect the number of CPUs
7165 and set the number of threads accordingly.</p>
7167 <dt class="hdlist1
">pack.indexVersion</dt>
7169 <p>Specify the default pack index version. Valid values are 1 for
7170 legacy pack index used by Git versions prior to 1.5.2, and 2 for
7171 the new pack index with capabilities for packs larger than 4 GB
7172 as well as proper protection against the repacking of corrupted
7173 packs. Version 2 is the default. Note that version 2 is enforced
7174 and this config option is ignored whenever the corresponding pack is
7175 larger than 2 GB.</p>
7176 <div class="paragraph
">
7177 <p>If you have an old Git that does not understand the version 2 *.<code>idx</code> file,
7178 cloning or fetching over a non-native protocol (e.g. "http
")
7179 that will copy both *.<code>pack</code> file and corresponding *.<code>idx</code> file from the
7180 other side may give you a repository that cannot be accessed with your
7181 older version of Git. If the *.<code>pack</code> file is smaller than 2 GB, however,
7182 you can use <a href="git-index-pack.html
">git-index-pack(1)</a> on the *.pack file to regenerate
7183 the *.<code>idx</code> file.</p>
7186 <dt class="hdlist1
">pack.packSizeLimit</dt>
7188 <p>The maximum size of a pack. This setting only affects
7189 packing to a file when repacking, i.e. the git:// protocol
7190 is unaffected. It can be overridden by the <code>--max-pack-size</code>
7191 option of <a href="git-repack.html
">git-repack(1)</a>. Reaching this limit results
7192 in the creation of multiple packfiles.</p>
7193 <div class="paragraph
">
7194 <p>Note that this option is rarely useful, and may result in a larger total
7195 on-disk size (because Git will not store deltas between packs) and
7196 worse runtime performance (object lookup within multiple packs is
7197 slower than a single pack, and optimizations like reachability bitmaps
7198 cannot cope with multiple packs).</p>
7200 <div class="paragraph
">
7201 <p>If you need to actively run Git using smaller packfiles (e.g., because your
7202 filesystem does not support large files), this option may help. But if
7203 your goal is to transmit a packfile over a medium that supports limited
7204 sizes (e.g., removable media that cannot store the whole repository),
7205 you are likely better off creating a single large packfile and splitting
7206 it using a generic multi-volume archive tool (e.g., Unix <code>split</code>).</p>
7208 <div class="paragraph
">
7209 <p>The minimum size allowed is limited to 1 MiB. The default is unlimited.
7210 Common unit suffixes of <em>k</em>, <em>m</em>, or <em>g</em> are supported.</p>
7213 <dt class="hdlist1
">pack.useBitmaps</dt>
7215 <p>When true, git will use pack bitmaps (if available) when packing
7216 to stdout (e.g., during the server side of a fetch). Defaults to
7217 true. You should not generally need to turn this off unless
7218 you are debugging pack bitmaps.</p>
7220 <dt class="hdlist1
">pack.useBitmapBoundaryTraversal</dt>
7222 <p>When true, Git will use an experimental algorithm for computing
7223 reachability queries with bitmaps. Instead of building up
7224 complete bitmaps for all of the negated tips and then OR-ing
7225 them together, consider negated tips with existing bitmaps as
7226 additive (i.e. OR-ing them into the result if they exist,
7227 ignoring them otherwise), and build up a bitmap at the boundary
7229 <div class="paragraph
">
7230 <p>When using this algorithm, Git may include too many objects as a result
7231 of not opening up trees belonging to certain UNINTERESTING commits. This
7232 inexactness matches the non-bitmap traversal algorithm.</p>
7234 <div class="paragraph
">
7235 <p>In many cases, this can provide a speed-up over the exact algorithm,
7236 particularly when there is poor bitmap coverage of the negated side of
7240 <dt class="hdlist1
">pack.useSparse</dt>
7242 <p>When true, git will default to using the <em>--sparse</em> option in
7243 <em>git pack-objects</em> when the <em>--revs</em> option is present. This
7244 algorithm only walks trees that appear in paths that introduce new
7245 objects. This can have significant performance benefits when
7246 computing a pack to send a small change. However, it is possible
7247 that extra objects are added to the pack-file if the included
7248 commits contain certain types of direct renames. Default is
7249 <code>true</code>.</p>
7251 <dt class="hdlist1
">pack.preferBitmapTips</dt>
7253 <p>When selecting which commits will receive bitmaps, prefer a
7254 commit at the tip of any reference that is a suffix of any value
7255 of this configuration over any other commits in the "selection
7257 <div class="paragraph
">
7258 <p>Note that setting this configuration to <code>refs/foo</code> does not mean that
7259 the commits at the tips of <code>refs/foo/bar</code> and <code>refs/foo/baz</code> will
7260 necessarily be selected. This is because commits are selected for
7261 bitmaps from within a series of windows of variable length.</p>
7263 <div class="paragraph
">
7264 <p>If a commit at the tip of any reference which is a suffix of any value
7265 of this configuration is seen in a window, it is immediately given
7266 preference over any other commit in that window.</p>
7269 <dt class="hdlist1
">pack.writeBitmaps (deprecated)</dt>
7271 <p>This is a deprecated synonym for <code>repack.writeBitmaps</code>.</p>
7273 <dt class="hdlist1
">pack.writeBitmapHashCache</dt>
7275 <p>When true, git will include a "hash cache
" section in the bitmap
7276 index (if one is written). This cache can be used to feed git’s
7277 delta heuristics, potentially leading to better deltas between
7278 bitmapped and non-bitmapped objects (e.g., when serving a fetch
7279 between an older, bitmapped pack and objects that have been
7280 pushed since the last gc). The downside is that it consumes 4
7281 bytes per object of disk space. Defaults to true.</p>
7282 <div class="paragraph
">
7283 <p>When writing a multi-pack reachability bitmap, no new namehashes are
7284 computed; instead, any namehashes stored in an existing bitmap are
7285 permuted into their appropriate location when writing a new bitmap.</p>
7288 <dt class="hdlist1
">pack.writeBitmapLookupTable</dt>
7290 <p>When true, Git will include a "lookup table
" section in the
7291 bitmap index (if one is written). This table is used to defer
7292 loading individual bitmaps as late as possible. This can be
7293 beneficial in repositories that have relatively large bitmap
7294 indexes. Defaults to false.</p>
7296 <dt class="hdlist1
">pack.readReverseIndex</dt>
7298 <p>When true, git will read any .rev file(s) that may be available
7299 (see: <a href="gitformat-pack.html
">gitformat-pack(5)</a>). When false, the reverse index
7300 will be generated from scratch and stored in memory. Defaults to
7303 <dt class="hdlist1
">pack.writeReverseIndex</dt>
7305 <p>When true, git will write a corresponding .rev file (see:
7306 <a href="gitformat-pack.html
">gitformat-pack(5)</a>)
7307 for each new packfile that it writes in all places except for
7308 <a href="git-fast-import.html
">git-fast-import(1)</a> and in the bulk checkin mechanism.
7309 Defaults to true.</p>
7311 <dt class="hdlist1
">pager.<cmd></dt>
7313 <p>If the value is boolean, turns on or off pagination of the
7314 output of a particular Git subcommand when writing to a tty.
7315 Otherwise, turns on pagination for the subcommand using the
7316 pager specified by the value of <code>pager.</code><em><cmd></em>. If <code>--paginate</code>
7317 or <code>--no-pager</code> is specified on the command line, it takes
7318 precedence over this option. To disable pagination for all
7319 commands, set <code>core.pager</code> or <code>GIT_PAGER</code> to <code>cat</code>.</p>
7321 <dt class="hdlist1
">pretty.<name></dt>
7323 <p>Alias for a --pretty= format string, as specified in
7324 <a href="git-log.html
">git-log(1)</a>. Any aliases defined here can be used just
7325 as the built-in pretty formats could. For example,
7326 running <code>git</code> <code>config</code> <code>pretty.changelog</code> "format:* %H %s
"
7327 would cause the invocation <code>git</code> <code>log</code> <code>--pretty=changelog</code>
7328 to be equivalent to running <code>git</code> <code>log</code> "--pretty=format:* %H %s
".
7329 Note that an alias with the same name as a built-in format
7330 will be silently ignored.</p>
7332 <dt class="hdlist1
">promisor.quiet</dt>
7334 <p>If set to "true
" assume <code>--quiet</code> when fetching additional
7335 objects for a partial clone.</p>
7337 <dt class="hdlist1
">protocol.allow</dt>
7339 <p>If set, provide a user defined default policy for all protocols which
7340 don’t explicitly have a policy (<code>protocol.</code><em><name></em><code>.allow</code>). By default,
7341 if unset, known-safe protocols (http, https, git, ssh) have a
7342 default policy of <code>always</code>, known-dangerous protocols (ext) have a
7343 default policy of <code>never</code>, and all other protocols (including file)
7344 have a default policy of <code>user</code>. Supported policies:</p>
7345 <div class="openblock
">
7346 <div class="content
">
7350 <p><code>always</code> - protocol is always able to be used.</p>
7353 <p><code>never</code> - protocol is never able to be used.</p>
7356 <p><code>user</code> - protocol is only able to be used when <code>GIT_PROTOCOL_FROM_USER</code> is
7357 either unset or has a value of 1. This policy should be used when you want a
7358 protocol to be directly usable by the user but don’t want it used by commands which
7359 execute clone/fetch/push commands without user input, e.g. recursive
7360 submodule initialization.</p>
7367 <dt class="hdlist1
">protocol.<name>.allow</dt>
7369 <p>Set a policy to be used by protocol <em><name></em> with clone/fetch/push
7370 commands. See <code>protocol.allow</code> above for the available policies.</p>
7371 <div class="paragraph
">
7372 <p>The protocol names currently used by git are:</p>
7374 <div class="openblock
">
7375 <div class="content
">
7379 <p><code>file</code>: any local file-based path (including <code>file://</code> URLs,
7383 <p><code>git</code>: the anonymous git protocol over a direct TCP
7384 connection (or proxy, if configured)</p>
7387 <p><code>ssh</code>: git over ssh (including <code>host:path</code> syntax,
7388 <code>ssh://</code>, etc).</p>
7391 <p><code>http</code>: git over http, both "smart http
" and "dumb http
".
7392 Note that this does <em>not</em> include <code>https</code>; if you want to configure
7393 both, you must do so individually.</p>
7396 <p>any external helpers are named by their protocol (e.g., use
7397 <code>hg</code> to allow the <code>git-remote-hg</code> helper)</p>
7404 <dt class="hdlist1
">protocol.version</dt>
7406 <p>If set, clients will attempt to communicate with a server
7407 using the specified protocol version. If the server does
7408 not support it, communication falls back to version 0.
7409 If unset, the default is <code>2</code>.
7410 Supported versions:</p>
7411 <div class="openblock
">
7412 <div class="content
">
7416 <p><code>0</code> - the original wire protocol.</p>
7419 <p><code>1</code> - the original wire protocol with the addition of a version string
7420 in the initial response from the server.</p>
7423 <p><code>2</code> - Wire protocol version 2, see <a href="gitprotocol-v2.html
">gitprotocol-v2(5)</a>.</p>
7430 <dt class="hdlist1
">pull.ff</dt>
7432 <p>By default, Git does not create an extra merge commit when merging
7433 a commit that is a descendant of the current commit. Instead, the
7434 tip of the current branch is fast-forwarded. When set to <code>false</code>,
7435 this variable tells Git to create an extra merge commit in such
7436 a case (equivalent to giving the <code>--no-ff</code> option from the command
7437 line). When set to <code>only</code>, only such fast-forward merges are
7438 allowed (equivalent to giving the <code>--ff-only</code> option from the
7439 command line). This setting overrides <code>merge.ff</code> when pulling.</p>
7441 <dt class="hdlist1
">pull.rebase</dt>
7443 <p>When true, rebase branches on top of the fetched branch, instead
7444 of merging the default branch from the default remote when "git
7445 pull
" is run. See "branch.
<name
>.rebase
" for setting this on a
7446 per-branch basis.</p>
7447 <div class="paragraph
">
7448 <p>When <code>merges</code> (or just <em>m</em>), pass the <code>--rebase-merges</code> option to <em>git rebase</em>
7449 so that the local merge commits are included in the rebase (see
7450 <a href="git-rebase.html
">git-rebase(1)</a> for details).</p>
7452 <div class="paragraph
">
7453 <p>When the value is <code>interactive</code> (or just <em>i</em>), the rebase is run in interactive
7456 <div class="paragraph
">
7457 <p><strong>NOTE</strong>: this is a possibly dangerous operation; do <strong>not</strong> use
7458 it unless you understand the implications (see <a href="git-rebase.html
">git-rebase(1)</a>
7462 <dt class="hdlist1
">pull.octopus</dt>
7464 <p>The default merge strategy to use when pulling multiple branches
7467 <dt class="hdlist1
">pull.twohead</dt>
7469 <p>The default merge strategy to use when pulling a single branch.</p>
7471 <dt class="hdlist1
">push.autoSetupRemote</dt>
7473 <p>If set to "true
" assume <code>--set-upstream</code> on default push when no
7474 upstream tracking exists for the current branch; this option
7475 takes effect with push.default options <em>simple</em>, <em>upstream</em>,
7476 and <em>current</em>. It is useful if by default you want new branches
7477 to be pushed to the default remote (like the behavior of
7478 <em>push.default=current</em>) and you also want the upstream tracking
7479 to be set. Workflows most likely to benefit from this option are
7480 <em>simple</em> central workflows where all branches are expected to
7481 have the same name on the remote.</p>
7483 <dt class="hdlist1
">push.default</dt>
7485 <p>Defines the action <code>git</code> <code>push</code> should take if no refspec is
7486 given (whether from the command-line, config, or elsewhere).
7487 Different values are well-suited for
7488 specific workflows; for instance, in a purely central workflow
7489 (i.e. the fetch source is equal to the push destination),
7490 <code>upstream</code> is probably what you want. Possible values are:</p>
7491 <div class="openblock
">
7492 <div class="content
">
7496 <p><code>nothing</code> - do not push anything (error out) unless a refspec is
7497 given. This is primarily meant for people who want to
7498 avoid mistakes by always being explicit.</p>
7501 <p><code>current</code> - push the current branch to update a branch with the same
7502 name on the receiving end. Works in both central and non-central
7506 <p><code>upstream</code> - push the current branch back to the branch whose
7507 changes are usually integrated into the current branch (which is
7508 called <code>@</code>{upstream}). This mode only makes sense if you are
7509 pushing to the same repository you would normally pull from
7510 (i.e. central workflow).</p>
7513 <p><code>tracking</code> - This is a deprecated synonym for <code>upstream</code>.</p>
7516 <p><code>simple</code> - push the current branch with the same name on the remote.</p>
7517 <div class="paragraph
">
7518 <p>If you are working on a centralized workflow (pushing to the same repository you
7519 pull from, which is typically <code>origin</code>), then you need to configure an upstream
7520 branch with the same name.</p>
7522 <div class="paragraph
">
7523 <p>This mode is the default since Git 2.0, and is the safest option suited for
7528 <p><code>matching</code> - push all branches having the same name on both ends.
7529 This makes the repository you are pushing to remember the set of
7530 branches that will be pushed out (e.g. if you always push <em>maint</em>
7531 and <em>master</em> there and no other branches, the repository you push
7532 to will have these two branches, and your local <em>maint</em> and
7533 <em>master</em> will be pushed there).</p>
7534 <div class="paragraph
">
7535 <p>To use this mode effectively, you have to make sure <em>all</em> the
7536 branches you would push out are ready to be pushed out before
7537 running <em>git push</em>, as the whole point of this mode is to allow you
7538 to push all of the branches in one go. If you usually finish work
7539 on only one branch and push out the result, while other branches are
7540 unfinished, this mode is not for you. Also this mode is not
7541 suitable for pushing into a shared central repository, as other
7542 people may add new branches there, or update the tip of existing
7543 branches outside your control.</p>
7545 <div class="paragraph
">
7546 <p>This used to be the default, but not since Git 2.0 (<code>simple</code> is the
7555 <dt class="hdlist1
">push.followTags</dt>
7557 <p>If set to true, enable <code>--follow-tags</code> option by default. You
7558 may override this configuration at time of push by specifying
7559 <code>--no-follow-tags</code>.</p>
7561 <dt class="hdlist1
">push.gpgSign</dt>
7563 <p>May be set to a boolean value, or the string <em>if-asked</em>. A true
7564 value causes all pushes to be GPG signed, as if <code>--signed</code> is
7565 passed to <a href="git-push.html
">git-push(1)</a>. The string <em>if-asked</em> causes
7566 pushes to be signed if the server supports it, as if
7567 <code>--signed=if-asked</code> is passed to <em>git push</em>. A false value may
7568 override a value from a lower-priority config file. An explicit
7569 command-line flag always overrides this config option.</p>
7571 <dt class="hdlist1
">push.pushOption</dt>
7573 <p>When no <code>--push-option=</code><em><option></em> argument is given from the
7574 command line, <code>git</code> <code>push</code> behaves as if each <value> of
7575 this variable is given as <code>--push-option=</code><em><value></em>.</p>
7576 <div class="paragraph
">
7577 <p>This is a multi-valued variable, and an empty value can be used in a
7578 higher priority configuration file (e.g. .<code>git/config</code> in a
7579 repository) to clear the values inherited from a lower priority
7580 configuration files (e.g. <code>$HOME/.gitconfig</code>).</p>
7582 <div class="listingblock
">
7583 <div class="content
">
7597 This will result in only b (a and c are cleared).</pre>
7601 <dt class="hdlist1
">push.recurseSubmodules</dt>
7603 <p>May be "check
", "on-demand
", "only
", or "no
", with the same behavior
7604 as that of "push --recurse-submodules
".
7605 If not set, <em>no</em> is used by default, unless <em>submodule.recurse</em> is
7606 set (in which case a <em>true</em> value means <em>on-demand</em>).</p>
7608 <dt class="hdlist1
">push.useForceIfIncludes</dt>
7610 <p>If set to "true
", it is equivalent to specifying
7611 <code>--force-if-includes</code> as an option to <a href="git-push.html
">git-push(1)</a>
7612 in the command line. Adding <code>--no-force-if-includes</code> at the
7613 time of push overrides this configuration setting.</p>
7615 <dt class="hdlist1
">push.negotiate</dt>
7617 <p>If set to "true
", attempt to reduce the size of the packfile
7618 sent by rounds of negotiation in which the client and the
7619 server attempt to find commits in common. If "false
", Git will
7620 rely solely on the server’s ref advertisement to find commits
7623 <dt class="hdlist1
">push.useBitmaps</dt>
7625 <p>If set to "false
", disable use of bitmaps for "git push
" even if
7626 <code>pack.useBitmaps</code> is "true
", without preventing other git operations
7627 from using bitmaps. Default is true.</p>
7629 <dt class="hdlist1
">rebase.backend</dt>
7631 <p>Default backend to use for rebasing. Possible choices are
7632 <em>apply</em> or <em>merge</em>. In the future, if the merge backend gains
7633 all remaining capabilities of the apply backend, this setting
7634 may become unused.</p>
7636 <dt class="hdlist1
">rebase.stat</dt>
7638 <p>Whether to show a diffstat of what changed upstream since the last
7639 rebase. False by default.</p>
7641 <dt class="hdlist1
">rebase.autoSquash</dt>
7643 <p>If set to true, enable the <code>--autosquash</code> option of
7644 <a href="git-rebase.html
">git-rebase(1)</a> by default for interactive mode.
7645 This can be overridden with the <code>--no-autosquash</code> option.</p>
7647 <dt class="hdlist1
">rebase.autoStash</dt>
7649 <p>When set to true, automatically create a temporary stash entry
7650 before the operation begins, and apply it after the operation
7651 ends. This means that you can run rebase on a dirty worktree.
7652 However, use with care: the final stash application after a
7653 successful rebase might result in non-trivial conflicts.
7654 This option can be overridden by the <code>--no-autostash</code> and
7655 <code>--autostash</code> options of <a href="git-rebase.html
">git-rebase(1)</a>.
7656 Defaults to false.</p>
7658 <dt class="hdlist1
">rebase.updateRefs</dt>
7660 <p>If set to true enable <code>--update-refs</code> option by default.</p>
7662 <dt class="hdlist1
">rebase.missingCommitsCheck</dt>
7664 <p>If set to "warn
", git rebase -i will print a warning if some
7665 commits are removed (e.g. a line was deleted), however the
7666 rebase will still proceed. If set to "error
", it will print
7667 the previous warning and stop the rebase, <em>git rebase
7668 --edit-todo</em> can then be used to correct the error. If set to
7669 "ignore
", no checking is done.
7670 To drop a commit without warning or error, use the <code>drop</code>
7671 command in the todo list.
7672 Defaults to "ignore
".</p>
7674 <dt class="hdlist1
">rebase.instructionFormat</dt>
7676 <p>A format string, as specified in <a href="git-log.html
">git-log(1)</a>, to be used for the
7677 todo list during an interactive rebase. The format will
7678 automatically have the commit hash prepended to the format.</p>
7680 <dt class="hdlist1
">rebase.abbreviateCommands</dt>
7682 <p>If set to true, <code>git</code> <code>rebase</code> will use abbreviated command names in the
7683 todo list resulting in something like this:</p>
7684 <div class="listingblock
">
7685 <div class="content
">
7686 <pre> p deadbee The oneline of the commit
7687 p fa1afe1 The oneline of the next commit
7691 <div class="paragraph
">
7694 <div class="listingblock
">
7695 <div class="content
">
7696 <pre> pick deadbee The oneline of the commit
7697 pick fa1afe1 The oneline of the next commit
7701 <div class="paragraph
">
7702 <p>Defaults to false.</p>
7705 <dt class="hdlist1
">rebase.rescheduleFailedExec</dt>
7707 <p>Automatically reschedule <code>exec</code> commands that failed. This only makes
7708 sense in interactive mode (or when an <code>--exec</code> option was provided).
7709 This is the same as specifying the <code>--reschedule-failed-exec</code> option.</p>
7711 <dt class="hdlist1
">rebase.forkPoint</dt>
7713 <p>If set to false set <code>--no-fork-point</code> option by default.</p>
7715 <dt class="hdlist1
">rebase.rebaseMerges</dt>
7717 <p>Whether and how to set the <code>--rebase-merges</code> option by default. Can
7718 be <code>rebase-cousins</code>, <code>no-rebase-cousins</code>, or a boolean. Setting to
7719 true or to <code>no-rebase-cousins</code> is equivalent to
7720 <code>--rebase-merges=no-rebase-cousins</code>, setting to <code>rebase-cousins</code> is
7721 equivalent to <code>--rebase-merges=rebase-cousins</code>, and setting to false is
7722 equivalent to <code>--no-rebase-merges</code>. Passing <code>--rebase-merges</code> on the
7723 command line, with or without an argument, overrides any
7724 <code>rebase.rebaseMerges</code> configuration.</p>
7726 <dt class="hdlist1
">rebase.maxLabelLength</dt>
7728 <p>When generating label names from commit subjects, truncate the names to
7729 this length. By default, the names are truncated to a little less than
7730 <code>NAME_MAX</code> (to allow e.g. .<code>lock</code> files to be written for the
7731 corresponding loose refs).</p>
7733 <dt class="hdlist1
">receive.advertiseAtomic</dt>
7735 <p>By default, git-receive-pack will advertise the atomic push
7736 capability to its clients. If you don’t want to advertise this
7737 capability, set this variable to false.</p>
7739 <dt class="hdlist1
">receive.advertisePushOptions</dt>
7741 <p>When set to true, git-receive-pack will advertise the push options
7742 capability to its clients. False by default.</p>
7744 <dt class="hdlist1
">receive.autogc</dt>
7746 <p>By default, git-receive-pack will run "git maintenance run --auto
" after
7747 receiving data from git-push and updating refs. You can stop
7748 it by setting this variable to false.</p>
7750 <dt class="hdlist1
">receive.certNonceSeed</dt>
7752 <p>By setting this variable to a string, <code>git</code> <code>receive-pack</code>
7753 will accept a <code>git</code> <code>push</code> <code>--signed</code> and verify it by using
7754 a "nonce
" protected by HMAC using this string as a secret
7757 <dt class="hdlist1
">receive.certNonceSlop</dt>
7759 <p>When a <code>git</code> <code>push</code> <code>--signed</code> sends a push certificate with a
7760 "nonce
" that was issued by a receive-pack serving the same
7761 repository within this many seconds, export the "nonce
"
7762 found in the certificate to <code>GIT_PUSH_CERT_NONCE</code> to the
7763 hooks (instead of what the receive-pack asked the sending
7764 side to include). This may allow writing checks in
7765 <code>pre-receive</code> and <code>post-receive</code> a bit easier. Instead of
7766 checking <code>GIT_PUSH_CERT_NONCE_SLOP</code> environment variable
7767 that records by how many seconds the nonce is stale to
7768 decide if they want to accept the certificate, they only
7769 can check <code>GIT_PUSH_CERT_NONCE_STATUS</code> is <code>OK</code>.</p>
7771 <dt class="hdlist1
">receive.fsckObjects</dt>
7773 <p>If it is set to true, git-receive-pack will check all received
7774 objects. See <code>transfer.fsckObjects</code> for what’s checked.
7775 Defaults to false. If not set, the value of
7776 <code>transfer.fsckObjects</code> is used instead.</p>
7778 <dt class="hdlist1
">receive.fsck.<msg-id></dt>
7780 <p>Acts like <code>fsck.</code><em><msg-id></em>, but is used by
7781 <a href="git-receive-pack.html
">git-receive-pack(1)</a> instead of
7782 <a href="git-fsck.html
">git-fsck(1)</a>. See the <code>fsck.</code><em><msg-id></em> documentation for
7785 <dt class="hdlist1
">receive.fsck.skipList</dt>
7787 <p>Acts like <code>fsck.skipList</code>, but is used by
7788 <a href="git-receive-pack.html
">git-receive-pack(1)</a> instead of
7789 <a href="git-fsck.html
">git-fsck(1)</a>. See the <code>fsck.skipList</code> documentation for
7792 <dt class="hdlist1
">receive.keepAlive</dt>
7794 <p>After receiving the pack from the client, <code>receive-pack</code> may
7795 produce no output (if <code>--quiet</code> was specified) while processing
7796 the pack, causing some networks to drop the TCP connection.
7797 With this option set, if <code>receive-pack</code> does not transmit
7798 any data in this phase for <code>receive.keepAlive</code> seconds, it will
7799 send a short keepalive packet. The default is 5 seconds; set
7800 to 0 to disable keepalives entirely.</p>
7802 <dt class="hdlist1
">receive.unpackLimit</dt>
7804 <p>If the number of objects received in a push is below this
7805 limit then the objects will be unpacked into loose object
7806 files. However if the number of received objects equals or
7807 exceeds this limit then the received pack will be stored as
7808 a pack, after adding any missing delta bases. Storing the
7809 pack from a push can make the push operation complete faster,
7810 especially on slow filesystems. If not set, the value of
7811 <code>transfer.unpackLimit</code> is used instead.</p>
7813 <dt class="hdlist1
">receive.maxInputSize</dt>
7815 <p>If the size of the incoming pack stream is larger than this
7816 limit, then git-receive-pack will error out, instead of
7817 accepting the pack file. If not set or set to 0, then the size
7820 <dt class="hdlist1
">receive.denyDeletes</dt>
7822 <p>If set to true, git-receive-pack will deny a ref update that deletes
7823 the ref. Use this to prevent such a ref deletion via a push.</p>
7825 <dt class="hdlist1
">receive.denyDeleteCurrent</dt>
7827 <p>If set to true, git-receive-pack will deny a ref update that
7828 deletes the currently checked out branch of a non-bare repository.</p>
7830 <dt class="hdlist1
">receive.denyCurrentBranch</dt>
7832 <p>If set to true or "refuse
", git-receive-pack will deny a ref update
7833 to the currently checked out branch of a non-bare repository.
7834 Such a push is potentially dangerous because it brings the HEAD
7835 out of sync with the index and working tree. If set to "warn
",
7836 print a warning of such a push to stderr, but allow the push to
7837 proceed. If set to false or "ignore
", allow such pushes with no
7838 message. Defaults to "refuse
".</p>
7839 <div class="paragraph
">
7840 <p>Another option is "updateInstead
" which will update the working
7841 tree if pushing into the current branch. This option is
7842 intended for synchronizing working directories when one side is not easily
7843 accessible via interactive ssh (e.g. a live web site, hence the requirement
7844 that the working directory be clean). This mode also comes in handy when
7845 developing inside a VM to test and fix code on different Operating Systems.</p>
7847 <div class="paragraph
">
7848 <p>By default, "updateInstead
" will refuse the push if the working tree or
7849 the index have any difference from the HEAD, but the <code>push-to-checkout</code>
7850 hook can be used to customize this. See <a href="githooks.html
">githooks(5)</a>.</p>
7853 <dt class="hdlist1
">receive.denyNonFastForwards</dt>
7855 <p>If set to true, git-receive-pack will deny a ref update which is
7856 not a fast-forward. Use this to prevent such an update via a push,
7857 even if that push is forced. This configuration variable is
7858 set when initializing a shared repository.</p>
7860 <dt class="hdlist1
">receive.hideRefs</dt>
7862 <p>This variable is the same as <code>transfer.hideRefs</code>, but applies
7863 only to <code>receive-pack</code> (and so affects pushes, but not fetches).
7864 An attempt to update or delete a hidden ref by <code>git</code> <code>push</code> is
7867 <dt class="hdlist1
">receive.procReceiveRefs</dt>
7869 <p>This is a multi-valued variable that defines reference prefixes
7870 to match the commands in <code>receive-pack</code>. Commands matching the
7871 prefixes will be executed by an external hook "proc-receive
",
7872 instead of the internal <code>execute_commands</code> function. If this
7873 variable is not defined, the "proc-receive
" hook will never be
7874 used, and all commands will be executed by the internal
7875 <code>execute_commands</code> function.</p>
7876 <div class="paragraph
">
7877 <p>For example, if this variable is set to "refs/for
", pushing to reference
7878 such as "refs/for/master
" will not create or update a reference named
7879 "refs/for/master
", but may create or update a pull request directly by
7880 running the hook "proc-receive
".</p>
7882 <div class="paragraph
">
7883 <p>Optional modifiers can be provided in the beginning of the value to filter
7884 commands for specific actions: create (a), modify (m), delete (d).
7885 A ! can be included in the modifiers to negate the reference prefix entry.
7888 <div class="literalblock
">
7889 <div class="content
">
7890 <pre>git config --system --add receive.procReceiveRefs ad:refs/heads
7891 git config --system --add receive.procReceiveRefs !:refs/heads</pre>
7895 <dt class="hdlist1
">receive.updateServerInfo</dt>
7897 <p>If set to true, git-receive-pack will run git-update-server-info
7898 after receiving data from git-push and updating refs.</p>
7900 <dt class="hdlist1
">receive.shallowUpdate</dt>
7902 <p>If set to true, .git/shallow can be updated when new refs
7903 require new shallow roots. Otherwise those refs are rejected.</p>
7905 <dt class="hdlist1
">reftable.blockSize</dt>
7907 <p>The size in bytes used by the reftable backend when writing blocks.
7908 The block size is determined by the writer, and does not have to be a
7909 power of 2. The block size must be larger than the longest reference
7910 name or log entry used in the repository, as references cannot span
7912 <div class="paragraph
">
7913 <p>Powers of two that are friendly to the virtual memory system or
7914 filesystem (such as 4kB or 8kB) are recommended. Larger sizes (64kB) can
7915 yield better compression, with a possible increased cost incurred by
7916 readers during access.</p>
7918 <div class="paragraph
">
7919 <p>The largest block size is <code>16777215</code> bytes (15.99 MiB). The default value is
7920 <code>4096</code> bytes (4kB). A value of <code>0</code> will use the default value.</p>
7923 <dt class="hdlist1
">reftable.restartInterval</dt>
7925 <p>The interval at which to create restart points. The reftable backend
7926 determines the restart points at file creation. Every 16 may be
7927 more suitable for smaller block sizes (4k or 8k), every 64 for larger
7928 block sizes (64k).</p>
7929 <div class="paragraph
">
7930 <p>More frequent restart points reduces prefix compression and increases
7931 space consumed by the restart table, both of which increase file size.</p>
7933 <div class="paragraph
">
7934 <p>Less frequent restart points makes prefix compression more effective,
7935 decreasing overall file size, with increased penalties for readers
7936 walking through more records after the binary search step.</p>
7938 <div class="paragraph
">
7939 <p>A maximum of <code>65535</code> restart points per block is supported.</p>
7941 <div class="paragraph
">
7942 <p>The default value is to create restart points every 16 records. A value of <code>0</code>
7943 will use the default value.</p>
7946 <dt class="hdlist1
">reftable.indexObjects</dt>
7948 <p>Whether the reftable backend shall write object blocks. Object blocks
7949 are a reverse mapping of object ID to the references pointing to them.</p>
7950 <div class="paragraph
">
7951 <p>The default value is <code>true</code>.</p>
7954 <dt class="hdlist1
">reftable.geometricFactor</dt>
7956 <p>Whenever the reftable backend appends a new table to the stack, it
7957 performs auto compaction to ensure that there is only a handful of
7958 tables. The backend does this by ensuring that tables form a geometric
7959 sequence regarding the respective sizes of each table.</p>
7960 <div class="paragraph
">
7961 <p>By default, the geometric sequence uses a factor of 2, meaning that for any
7962 table, the next-biggest table must at least be twice as big. A maximum factor
7963 of 256 is supported.</p>
7966 <dt class="hdlist1
">reftable.lockTimeout</dt>
7968 <p>Whenever the reftable backend appends a new table to the stack, it has
7969 to lock the central "tables.list
" file before updating it. This config
7970 controls how long the process will wait to acquire the lock in case
7971 another process has already acquired it. Value 0 means not to retry at
7972 all; -1 means to try indefinitely. Default is 100 (i.e., retry for
7975 <dt class="hdlist1
">remote.pushDefault</dt>
7977 <p>The remote to push to by default. Overrides
7978 <code>branch.</code><em><name></em><code>.remote</code> for all branches, and is overridden by
7979 <code>branch.</code><em><name></em><code>.pushRemote</code> for specific branches.</p>
7981 <dt class="hdlist1
">remote.<name>.url</dt>
7983 <p>The URL of a remote repository. See <a href="git-fetch.html
">git-fetch(1)</a> or
7984 <a href="git-push.html
">git-push(1)</a>. A configured remote can have multiple URLs;
7985 in this case the first is used for fetching, and all are used
7986 for pushing (assuming no <code>remote.</code><em><name></em><code>.pushurl</code> is defined).
7987 Setting this key to the empty string clears the list of urls,
7988 allowing you to override earlier config.</p>
7990 <dt class="hdlist1
">remote.<name>.pushurl</dt>
7992 <p>The push URL of a remote repository. See <a href="git-push.html
">git-push(1)</a>.
7993 If a <code>pushurl</code> option is present in a configured remote, it
7994 is used for pushing instead of <code>remote.</code><em><name></em><code>.url</code>. A configured
7995 remote can have multiple push URLs; in this case a push goes to
7996 all of them. Setting this key to the empty string clears the
7997 list of urls, allowing you to override earlier config.</p>
7999 <dt class="hdlist1
">remote.<name>.proxy</dt>
8001 <p>For remotes that require curl (http, https and ftp), the URL to
8002 the proxy to use for that remote. Set to the empty string to
8003 disable proxying for that remote.</p>
8005 <dt class="hdlist1
">remote.<name>.proxyAuthMethod</dt>
8007 <p>For remotes that require curl (http, https and ftp), the method to use for
8008 authenticating against the proxy in use (probably set in
8009 <code>remote.</code><em><name></em><code>.proxy</code>). See <code>http.proxyAuthMethod</code>.</p>
8011 <dt class="hdlist1
">remote.<name>.fetch</dt>
8013 <p>The default set of "refspec
" for <a href="git-fetch.html
">git-fetch(1)</a>. See
8014 <a href="git-fetch.html
">git-fetch(1)</a>.</p>
8016 <dt class="hdlist1
">remote.<name>.push</dt>
8018 <p>The default set of "refspec
" for <a href="git-push.html
">git-push(1)</a>. See
8019 <a href="git-push.html
">git-push(1)</a>.</p>
8021 <dt class="hdlist1
">remote.<name>.mirror</dt>
8023 <p>If true, pushing to this remote will automatically behave
8024 as if the <code>--mirror</code> option was given on the command line.</p>
8026 <dt class="hdlist1
">remote.<name>.skipDefaultUpdate</dt>
8028 <p>A deprecated synonym to <code>remote.</code><em><name></em><code>.skipFetchAll</code> (if
8029 both are set in the configuration files with different
8030 values, the value of the last occurrence will be used).</p>
8032 <dt class="hdlist1
">remote.<name>.skipFetchAll</dt>
8034 <p>If true, this remote will be skipped when updating
8035 using <a href="git-fetch.html
">git-fetch(1)</a>, the <code>update</code> subcommand of
8036 <a href="git-remote.html
">git-remote(1)</a>, and ignored by the prefetch task
8037 of <code>git</code> <code>maintenance</code>.</p>
8039 <dt class="hdlist1
">remote.<name>.receivepack</dt>
8041 <p>The default program to execute on the remote side when pushing. See
8042 option --receive-pack of <a href="git-push.html
">git-push(1)</a>.</p>
8044 <dt class="hdlist1
">remote.<name>.uploadpack</dt>
8046 <p>The default program to execute on the remote side when fetching. See
8047 option --upload-pack of <a href="git-fetch-pack.html
">git-fetch-pack(1)</a>.</p>
8049 <dt class="hdlist1
">remote.<name>.tagOpt</dt>
8051 <p>Setting this value to --no-tags disables automatic tag following when
8052 fetching from remote <name>. Setting it to --tags will fetch every
8053 tag from remote <name>, even if they are not reachable from remote
8054 branch heads. Passing these flags directly to <a href="git-fetch.html
">git-fetch(1)</a> can
8055 override this setting. See options --tags and --no-tags of
8056 <a href="git-fetch.html
">git-fetch(1)</a>.</p>
8058 <dt class="hdlist1
">remote.<name>.vcs</dt>
8060 <p>Setting this to a value <vcs> will cause Git to interact with
8061 the remote with the git-remote-<vcs> helper.</p>
8063 <dt class="hdlist1
">remote.<name>.prune</dt>
8065 <p>When set to true, fetching from this remote by default will also
8066 remove any remote-tracking references that no longer exist on the
8067 remote (as if the <code>--prune</code> option was given on the command line).
8068 Overrides <code>fetch.prune</code> settings, if any.</p>
8070 <dt class="hdlist1
">remote.<name>.pruneTags</dt>
8072 <p>When set to true, fetching from this remote by default will also
8073 remove any local tags that no longer exist on the remote if pruning
8074 is activated in general via <code>remote.</code><em><name></em><code>.prune</code>, <code>fetch.prune</code> or
8075 <code>--prune</code>. Overrides <code>fetch.pruneTags</code> settings, if any.</p>
8076 <div class="paragraph
">
8077 <p>See also <code>remote.</code><em><name></em><code>.prune</code> and the PRUNING section of
8078 <a href="git-fetch.html
">git-fetch(1)</a>.</p>
8081 <dt class="hdlist1
">remote.<name>.promisor</dt>
8083 <p>When set to true, this remote will be used to fetch promisor
8086 <dt class="hdlist1
">remote.<name>.partialclonefilter</dt>
8088 <p>The filter that will be applied when fetching from this promisor remote.
8089 Changing or clearing this value will only affect fetches for new commits.
8090 To fetch associated objects for commits already present in the local object
8091 database, use the <code>--refetch</code> option of <a href="git-fetch.html
">git-fetch(1)</a>.</p>
8093 <dt class="hdlist1
">remote.<name>.serverOption</dt>
8095 <p>The default set of server options used when fetching from this remote.
8096 These server options can be overridden by the <code>--server-option=</code> command
8098 <div class="paragraph
">
8099 <p>This is a multi-valued variable, and an empty value can be used in a higher
8100 priority configuration file (e.g. .<code>git/config</code> in a repository) to clear
8101 the values inherited from a lower priority configuration files (e.g.
8102 <code>$HOME/.gitconfig</code>).</p>
8105 <dt class="hdlist1
">remotes.<group></dt>
8107 <p>The list of remotes which are fetched by "git remote update
8108 <group
>". See <a href="git-remote.html
">git-remote(1)</a>.</p>
8110 <dt class="hdlist1
">repack.useDeltaBaseOffset</dt>
8112 <p>By default, <a href="git-repack.html
">git-repack(1)</a> creates packs that use
8113 delta-base offset. If you need to share your repository with
8114 Git older than version 1.4.4, either directly or via a dumb
8115 protocol such as http, then you need to set this option to
8116 "false
" and repack. Access from old Git versions over the
8117 native protocol are unaffected by this option.</p>
8119 <dt class="hdlist1
">repack.packKeptObjects</dt>
8121 <p>If set to true, makes <code>git</code> <code>repack</code> act as if
8122 <code>--pack-kept-objects</code> was passed. See <a href="git-repack.html
">git-repack(1)</a> for
8123 details. Defaults to <code>false</code> normally, but <code>true</code> if a bitmap
8124 index is being written (either via <code>--write-bitmap-index</code> or
8125 <code>repack.writeBitmaps</code>).</p>
8127 <dt class="hdlist1
">repack.useDeltaIslands</dt>
8129 <p>If set to true, makes <code>git</code> <code>repack</code> act as if <code>--delta-islands</code>
8130 was passed. Defaults to <code>false</code>.</p>
8132 <dt class="hdlist1
">repack.writeBitmaps</dt>
8134 <p>When true, git will write a bitmap index when packing all
8135 objects to disk (e.g., when <code>git</code> <code>repack</code> <code>-a</code> is run). This
8136 index can speed up the "counting objects
" phase of subsequent
8137 packs created for clones and fetches, at the cost of some disk
8138 space and extra time spent on the initial repack. This has
8139 no effect if multiple packfiles are created.
8140 Defaults to true on bare repos, false otherwise.</p>
8142 <dt class="hdlist1
">repack.updateServerInfo</dt>
8144 <p>If set to false, <a href="git-repack.html
">git-repack(1)</a> will not run
8145 <a href="git-update-server-info.html
">git-update-server-info(1)</a>. Defaults to true. Can be overridden
8146 when true by the <code>-n</code> option of <a href="git-repack.html
">git-repack(1)</a>.</p>
8148 <dt class="hdlist1
">repack.cruftWindow</dt>
8149 <dt class="hdlist1
">repack.cruftWindowMemory</dt>
8150 <dt class="hdlist1
">repack.cruftDepth</dt>
8151 <dt class="hdlist1
">repack.cruftThreads</dt>
8153 <p>Parameters used by <a href="git-pack-objects.html
">git-pack-objects(1)</a> when generating
8154 a cruft pack and the respective parameters are not given over
8155 the command line. See similarly named <code>pack.</code>* configuration
8156 variables for defaults and meaning.</p>
8158 <dt class="hdlist1
">rerere.autoUpdate</dt>
8160 <p>When set to true, <code>git-rerere</code> updates the index with the
8161 resulting contents after it cleanly resolves conflicts using
8162 previously recorded resolutions. Defaults to false.</p>
8164 <dt class="hdlist1
">rerere.enabled</dt>
8166 <p>Activate recording of resolved conflicts, so that identical
8167 conflict hunks can be resolved automatically, should they be
8168 encountered again. By default, <a href="git-rerere.html
">git-rerere(1)</a> is
8169 enabled if there is an <code>rr-cache</code> directory under the
8170 <code>$GIT_DIR</code>, e.g. if "rerere
" was previously used in the
8173 <dt class="hdlist1
">revert.reference</dt>
8175 <p>Setting this variable to true makes <code>git</code> <code>revert</code> behave
8176 as if the <code>--reference</code> option is given.</p>
8178 <dt class="hdlist1
">safe.bareRepository</dt>
8180 <p>Specifies which bare repositories Git will work with. The currently
8181 supported values are:</p>
8185 <p><code>all</code>: Git works with all bare repositories. This is the default.</p>
8188 <p><code>explicit</code>: Git only works with bare repositories specified via
8189 the top-level <code>--git-dir</code> command-line option, or the <code>GIT_DIR</code>
8190 environment variable (see <a href="git.html
">git(1)</a>).</p>
8191 <div class="paragraph
">
8192 <p>If you do not use bare repositories in your workflow, then it may be
8193 beneficial to set <code>safe.bareRepository</code> to <code>explicit</code> in your global
8194 config. This will protect you from attacks that involve cloning a
8195 repository that contains a bare repository and running a Git command
8196 within that directory.</p>
8198 <div class="paragraph
">
8199 <p>This config setting is only respected in protected configuration (see
8200 <a href="#SCOPES
">SCOPES</a>). This prevents untrusted repositories from tampering with
8207 <dt class="hdlist1
">safe.directory</dt>
8209 <p>These config entries specify Git-tracked directories that are
8210 considered safe even if they are owned by someone other than the
8211 current user. By default, Git will refuse to even parse a Git
8212 config of a repository owned by someone else, let alone run its
8213 hooks, and this config setting allows users to specify exceptions,
8214 e.g. for intentionally shared repositories (see the <code>--shared</code>
8215 option in <a href="git-init.html
">git-init(1)</a>).</p>
8216 <div class="paragraph
">
8217 <p>This is a multi-valued setting, i.e. you can add more than one directory
8218 via <code>git</code> <code>config</code> <code>--add</code>. To reset the list of safe directories (e.g. to
8219 override any such directories specified in the system config), add a
8220 <code>safe.directory</code> entry with an empty value.</p>
8222 <div class="paragraph
">
8223 <p>This config setting is only respected in protected configuration (see
8224 <a href="#SCOPES
">SCOPES</a>). This prevents untrusted repositories from tampering with this
8227 <div class="paragraph
">
8228 <p>The value of this setting is interpolated, i.e. <code>~/</code><em><path></em> expands to a
8229 path relative to the home directory and %(<code>prefix</code>)<code>/</code><em><path></em> expands to a
8230 path relative to Git’s (runtime) prefix.</p>
8232 <div class="paragraph
">
8233 <p>To completely opt-out of this security check, set <code>safe.directory</code> to the
8234 string *. This will allow all repositories to be treated as if their
8235 directory was listed in the <code>safe.directory</code> list. If <code>safe.directory=</code>*
8236 is set in system config and you want to re-enable this protection, then
8237 initialize your list with an empty value before listing the repositories
8238 that you deem safe. Giving a directory with <code>/</code>* appended to it will
8239 allow access to all repositories under the named directory.</p>
8241 <div class="paragraph
">
8242 <p>As explained, Git only allows you to access repositories owned by
8243 yourself, i.e. the user who is running Git, by default. When Git
8244 is running as <em>root</em> in a non Windows platform that provides sudo,
8245 however, git checks the SUDO_UID environment variable that sudo creates
8246 and will allow access to the uid recorded as its value in addition to
8247 the id from <em>root</em>.
8248 This is to make it easy to perform a common sequence during installation
8249 "make
&& sudo make install
". A git process running under <em>sudo</em> runs as
8250 <em>root</em> but the <em>sudo</em> command exports the environment variable to record
8251 which id the original user has.
8252 If that is not what you would prefer and want git to only trust
8253 repositories that are owned by root instead, then you can remove
8254 the <code>SUDO_UID</code> variable from root’s environment before invoking git.</p>
8257 <dt class="hdlist1
">sendemail.identity</dt>
8259 <p>A configuration identity. When given, causes values in the
8260 <em>sendemail.<identity></em> subsection to take precedence over
8261 values in the <em>sendemail</em> section. The default identity is
8262 the value of <code>sendemail.identity</code>.</p>
8264 <dt class="hdlist1
">sendemail.smtpEncryption</dt>
8266 <p>See <a href="git-send-email.html
">git-send-email(1)</a> for description. Note that this
8267 setting is not subject to the <em>identity</em> mechanism.</p>
8269 <dt class="hdlist1
">sendemail.smtpSSLCertPath</dt>
8271 <p>Path to ca-certificates (either a directory or a single file).
8272 Set it to an empty string to disable certificate verification.</p>
8274 <dt class="hdlist1
">sendemail.<identity>.*</dt>
8276 <p>Identity-specific versions of the <em>sendemail.*</em> parameters
8277 found below, taking precedence over those when this
8278 identity is selected, through either the command-line or
8279 <code>sendemail.identity</code>.</p>
8281 <dt class="hdlist1
">sendemail.multiEdit</dt>
8283 <p>If true (default), a single editor instance will be spawned to edit
8284 files you have to edit (patches when <code>--annotate</code> is used, and the
8285 summary when <code>--compose</code> is used). If false, files will be edited one
8286 after the other, spawning a new editor each time.</p>
8288 <dt class="hdlist1
">sendemail.confirm</dt>
8290 <p>Sets the default for whether to confirm before sending. Must be
8291 one of <em>always</em>, <em>never</em>, <em>cc</em>, <em>compose</em>, or <em>auto</em>. See <code>--confirm</code>
8292 in the <a href="git-send-email.html
">git-send-email(1)</a> documentation for the meaning of these
8295 <dt class="hdlist1
">sendemail.mailmap</dt>
8297 <p>If true, makes <a href="git-send-email.html
">git-send-email(1)</a> assume <code>--mailmap</code>,
8298 otherwise assume <code>--no-mailmap</code>. False by default.</p>
8300 <dt class="hdlist1
">sendemail.mailmap.file</dt>
8302 <p>The location of a <a href="git-send-email.html
">git-send-email(1)</a> specific augmenting
8303 mailmap file. The default mailmap and <code>mailmap.file</code> are loaded
8304 first. Thus, entries in this file take precedence over entries in
8305 the default mailmap locations. See <a href="gitmailmap.html
">gitmailmap(5)</a>.</p>
8307 <dt class="hdlist1
">sendemail.mailmap.blob</dt>
8309 <p>Like <code>sendemail.mailmap.file</code>, but consider the value as a reference
8310 to a blob in the repository. Entries in <code>sendemail.mailmap.file</code>
8311 take precedence over entries here. See <a href="gitmailmap.html
">gitmailmap(5)</a>.</p>
8313 <dt class="hdlist1
">sendemail.aliasesFile</dt>
8315 <p>To avoid typing long email addresses, point this to one or more
8316 email aliases files. You must also supply <code>sendemail.aliasFileType</code>.</p>
8318 <dt class="hdlist1
">sendemail.aliasFileType</dt>
8320 <p>Format of the file(s) specified in sendemail.aliasesFile. Must be
8321 one of <em>mutt</em>, <em>mailrc</em>, <em>pine</em>, <em>elm</em>, <em>gnus</em>, or <em>sendmail</em>.</p>
8322 <div class="paragraph
">
8323 <p>What an alias file in each format looks like can be found in
8324 the documentation of the email program of the same name. The
8325 differences and limitations from the standard formats are
8326 described below:</p>
8328 <div class="openblock
">
8329 <div class="content
">
8332 <dt class="hdlist1
">sendmail</dt>
8337 <p>Quoted aliases and quoted addresses are not supported: lines that
8338 contain a " symbol are ignored.
</p>
8341 <p>Redirection to a file (
<code>/path/name
</code>) or pipe (|
<code>command
</code>) is not
8345 <p>File inclusion (
<code>:include:
</code> <code>/path/name
</code>) is not supported.
</p>
8348 <p>Warnings are printed on the standard error output for any
8349 explicitly unsupported constructs, and any other lines that are not
8350 recognized by the parser.
</p>
8360 <dt class=
"hdlist1">sendemail.annotate
</dt>
8361 <dt class=
"hdlist1">sendemail.bcc
</dt>
8362 <dt class=
"hdlist1">sendemail.cc
</dt>
8363 <dt class=
"hdlist1">sendemail.ccCmd
</dt>
8364 <dt class=
"hdlist1">sendemail.chainReplyTo
</dt>
8365 <dt class=
"hdlist1">sendemail.envelopeSender
</dt>
8366 <dt class=
"hdlist1">sendemail.from
</dt>
8367 <dt class=
"hdlist1">sendemail.headerCmd
</dt>
8368 <dt class=
"hdlist1">sendemail.signedOffByCc
</dt>
8369 <dt class=
"hdlist1">sendemail.smtpPass
</dt>
8370 <dt class=
"hdlist1">sendemail.suppressCc
</dt>
8371 <dt class=
"hdlist1">sendemail.suppressFrom
</dt>
8372 <dt class=
"hdlist1">sendemail.to
</dt>
8373 <dt class=
"hdlist1">sendemail.toCmd
</dt>
8374 <dt class=
"hdlist1">sendemail.smtpDomain
</dt>
8375 <dt class=
"hdlist1">sendemail.smtpServer
</dt>
8376 <dt class=
"hdlist1">sendemail.smtpServerPort
</dt>
8377 <dt class=
"hdlist1">sendemail.smtpServerOption
</dt>
8378 <dt class=
"hdlist1">sendemail.smtpUser
</dt>
8379 <dt class=
"hdlist1">sendemail.thread
</dt>
8380 <dt class=
"hdlist1">sendemail.transferEncoding
</dt>
8381 <dt class=
"hdlist1">sendemail.validate
</dt>
8382 <dt class=
"hdlist1">sendemail.xmailer
</dt>
8384 <p>These configuration variables all provide a default for
8385 <a href=
"git-send-email.html">git-send-email(
1)
</a> command-line options. See its
8386 documentation for details.
</p>
8388 <dt class=
"hdlist1">sendemail.signedOffCc (deprecated)
</dt>
8390 <p>Deprecated alias for
<code>sendemail.signedOffByCc
</code>.
</p>
8392 <dt class=
"hdlist1">sendemail.smtpBatchSize
</dt>
8394 <p>Number of messages to be sent per connection, after that a relogin
8395 will happen. If the value is
0 or undefined, send all messages in
8397 See also the
<code>--batch-size
</code> option of
<a href=
"git-send-email.html">git-send-email(
1)
</a>.
</p>
8399 <dt class=
"hdlist1">sendemail.smtpReloginDelay
</dt>
8401 <p>Seconds to wait before reconnecting to the smtp server.
8402 See also the
<code>--relogin-delay
</code> option of
<a href=
"git-send-email.html">git-send-email(
1)
</a>.
</p>
8404 <dt class=
"hdlist1">sendemail.forbidSendmailVariables
</dt>
8406 <p>To avoid common misconfiguration mistakes,
<a href=
"git-send-email.html">git-send-email(
1)
</a>
8407 will abort with a warning if any configuration options for
"sendmail"
8408 exist. Set this variable to bypass the check.
</p>
8410 <dt class=
"hdlist1">sequence.editor
</dt>
8412 <p>Text editor used by
<code>git
</code> <code>rebase
</code> <code>-i
</code> for editing the rebase instruction file.
8413 The value is meant to be interpreted by the shell when it is used.
8414 It can be overridden by the
<code>GIT_SEQUENCE_EDITOR
</code> environment variable.
8415 When not configured, the default commit message editor is used instead.
</p>
8417 <dt class=
"hdlist1">showBranch.default
</dt>
8419 <p>The default set of branches for
<a href=
"git-show-branch.html">git-show-branch(
1)
</a>.
8420 See
<a href=
"git-show-branch.html">git-show-branch(
1)
</a>.
</p>
8422 <dt class=
"hdlist1">sparse.expectFilesOutsideOfPatterns
</dt>
8424 <p>Typically with sparse checkouts, files not matching any
8425 sparsity patterns are marked with a SKIP_WORKTREE bit in the
8426 index and are missing from the working tree. Accordingly, Git
8427 will ordinarily check whether files with the SKIP_WORKTREE bit
8428 are in fact present in the working tree contrary to
8429 expectations. If Git finds any, it marks those paths as
8430 present by clearing the relevant SKIP_WORKTREE bits. This
8431 option can be used to tell Git that such
8432 present-despite-skipped files are expected and to stop
8433 checking for them.
</p>
8434 <div class=
"paragraph">
8435 <p>The default is
<code>false
</code>, which allows Git to automatically recover
8436 from the list of files in the index and working tree falling out of
8439 <div class=
"paragraph">
8440 <p>Set this to
<code>true
</code> if you are in a setup where some external factor
8441 relieves Git of the responsibility for maintaining the consistency
8442 between the presence of working tree files and sparsity patterns. For
8443 example, if you have a Git-aware virtual file system that has a robust
8444 mechanism for keeping the working tree and the sparsity patterns up to
8445 date based on access patterns.
</p>
8447 <div class=
"paragraph">
8448 <p>Regardless of this setting, Git does not check for
8449 present-despite-skipped files unless sparse checkout is enabled, so
8450 this config option has no effect unless
<code>core.sparseCheckout
</code> is
8451 <code>true
</code>.
</p>
8454 <dt class=
"hdlist1">splitIndex.maxPercentChange
</dt>
8456 <p>When the split index feature is used, this specifies the
8457 percent of entries the split index can contain compared to the
8458 total number of entries in both the split index and the shared
8459 index before a new shared index is written.
8460 The value should be between
0 and
100. If the value is
0, then
8461 a new shared index is always written; if it is
100, a new
8462 shared index is never written.
8463 By default, the value is
20, so a new shared index is written
8464 if the number of entries in the split index would be greater
8465 than
20 percent of the total number of entries.
8466 See
<a href=
"git-update-index.html">git-update-index(
1)
</a>.
</p>
8468 <dt class=
"hdlist1">splitIndex.sharedIndexExpire
</dt>
8470 <p>When the split index feature is used, shared index files that
8471 were not modified since the time this variable specifies will
8472 be removed when a new shared index file is created. The value
8473 "now" expires all entries immediately, and
"never" suppresses
8474 expiration altogether.
8475 The default value is
"2.weeks.ago".
8476 Note that a shared index file is considered modified (for the
8477 purpose of expiration) each time a new split-index file is
8478 either created based on it or read from it.
8479 See
<a href=
"git-update-index.html">git-update-index(
1)
</a>.
</p>
8481 <dt class=
"hdlist1">ssh.variant
</dt>
8483 <p>By default, Git determines the command line arguments to use
8484 based on the basename of the configured SSH command (configured
8485 using the environment variable
<code>GIT_SSH
</code> or
<code>GIT_SSH_COMMAND
</code> or
8486 the config setting
<code>core.sshCommand
</code>). If the basename is
8487 unrecognized, Git will attempt to detect support of OpenSSH
8488 options by first invoking the configured SSH command with the
8489 <code>-G
</code> (print configuration) option and will subsequently use
8490 OpenSSH options (if that is successful) or no options besides
8491 the host and remote command (if it fails).
</p>
8492 <div class=
"paragraph">
8493 <p>The config variable
<code>ssh.variant
</code> can be set to override this detection.
8494 Valid values are
<code>ssh
</code> (to use OpenSSH options),
<code>plink
</code>,
<code>putty
</code>,
8495 <code>tortoiseplink
</code>,
<code>simple
</code> (no options except the host and remote command).
8496 The default auto-detection can be explicitly requested using the value
8497 <code>auto
</code>. Any other value is treated as
<code>ssh
</code>. This setting can also be
8498 overridden via the environment variable
<code>GIT_SSH_VARIANT
</code>.
</p>
8500 <div class=
"paragraph">
8501 <p>The current command-line parameters used for each variant are as
8504 <div class=
"openblock">
8505 <div class=
"content">
8509 <p><code>ssh
</code> - [-p port] [-
4] [-
6] [-o option] [username@]host command
</p>
8512 <p><code>simple
</code> - [username@]host command
</p>
8515 <p><code>plink
</code> or
<code>putty
</code> - [-P port] [-
4] [-
6] [username@]host command
</p>
8518 <p><code>tortoiseplink
</code> - [-P port] [-
4] [-
6] -batch [username@]host command
</p>
8524 <div class=
"paragraph">
8525 <p>Except for the
<code>simple
</code> variant, command-line parameters are likely to
8526 change as git gains new features.
</p>
8529 <dt class=
"hdlist1">stash.showIncludeUntracked
</dt>
8531 <p>If this is set to true, the
<code>git
</code> <code>stash
</code> <code>show
</code> command will show
8532 the untracked files of a stash entry. Defaults to false. See
8533 the description of the
<em>show
</em> command in
<a href=
"git-stash.html">git-stash(
1)
</a>.
</p>
8535 <dt class=
"hdlist1">stash.showPatch
</dt>
8537 <p>If this is set to true, the
<code>git
</code> <code>stash
</code> <code>show
</code> command without an
8538 option will show the stash entry in patch form. Defaults to false.
8539 See the description of the
<em>show
</em> command in
<a href=
"git-stash.html">git-stash(
1)
</a>.
</p>
8541 <dt class=
"hdlist1">stash.showStat
</dt>
8543 <p>If this is set to true, the
<code>git
</code> <code>stash
</code> <code>show
</code> command without an
8544 option will show a diffstat of the stash entry. Defaults to true.
8545 See the description of the
<em>show
</em> command in
<a href=
"git-stash.html">git-stash(
1)
</a>.
</p>
8547 <dt class=
"hdlist1">status.relativePaths
</dt>
8549 <p>By default,
<a href=
"git-status.html">git-status(
1)
</a> shows paths relative to the
8550 current directory. Setting this variable to
<code>false
</code> shows paths
8551 relative to the repository root (this was the default for Git
8552 prior to v1.5
.4).
</p>
8554 <dt class=
"hdlist1">status.short
</dt>
8556 <p>Set to true to enable --short by default in
<a href=
"git-status.html">git-status(
1)
</a>.
8557 The option --no-short takes precedence over this variable.
</p>
8559 <dt class=
"hdlist1">status.branch
</dt>
8561 <p>Set to true to enable --branch by default in
<a href=
"git-status.html">git-status(
1)
</a>.
8562 The option --no-branch takes precedence over this variable.
</p>
8564 <dt class=
"hdlist1">status.aheadBehind
</dt>
8566 <p>Set to true to enable
<code>--ahead-behind
</code> and false to enable
8567 <code>--no-ahead-behind
</code> by default in
<a href=
"git-status.html">git-status(
1)
</a> for
8568 non-porcelain status formats. Defaults to true.
</p>
8570 <dt class=
"hdlist1">status.displayCommentPrefix
</dt>
8572 <p>If set to true,
<a href=
"git-status.html">git-status(
1)
</a> will insert a comment
8573 prefix before each output line (starting with
8574 <code>core.commentChar
</code>, i.e. # by default). This was the
8575 behavior of
<a href=
"git-status.html">git-status(
1)
</a> in Git
1.8.4 and previous.
8576 Defaults to false.
</p>
8578 <dt class=
"hdlist1">status.renameLimit
</dt>
8580 <p>The number of files to consider when performing rename detection
8581 in
<a href=
"git-status.html">git-status(
1)
</a> and
<a href=
"git-commit.html">git-commit(
1)
</a>. Defaults to
8582 the value of diff.renameLimit.
</p>
8584 <dt class=
"hdlist1">status.renames
</dt>
8586 <p>Whether and how Git detects renames in
<a href=
"git-status.html">git-status(
1)
</a> and
8587 <a href=
"git-commit.html">git-commit(
1)
</a> . If set to
"false", rename detection is
8588 disabled. If set to
"true", basic rename detection is enabled.
8589 If set to
"copies" or
"copy", Git will detect copies, as well.
8590 Defaults to the value of diff.renames.
</p>
8592 <dt class=
"hdlist1">status.showStash
</dt>
8594 <p>If set to true,
<a href=
"git-status.html">git-status(
1)
</a> will display the number of
8595 entries currently stashed away.
8596 Defaults to false.
</p>
8598 <dt class=
"hdlist1">status.showUntrackedFiles
</dt>
8600 <p>By default,
<a href=
"git-status.html">git-status(
1)
</a> and
<a href=
"git-commit.html">git-commit(
1)
</a> show
8601 files which are not currently tracked by Git. Directories which
8602 contain only untracked files, are shown with the directory name
8603 only. Showing untracked files means that Git needs to lstat() all
8604 the files in the whole repository, which might be slow on some
8605 systems. So, this variable controls how the commands display
8606 the untracked files. Possible values are:
</p>
8607 <div class=
"openblock">
8608 <div class=
"content">
8612 <p><code>no
</code> - Show no untracked files.
</p>
8615 <p><code>normal
</code> - Show untracked files and directories.
</p>
8618 <p><code>all
</code> - Show also individual files in untracked directories.
</p>
8624 <div class=
"paragraph">
8625 <p>If this variable is not specified, it defaults to
<em>normal
</em>.
8626 All usual spellings for Boolean value
<code>true
</code> are taken as
<code>normal
</code>
8627 and
<code>false
</code> as
<code>no
</code>.
8628 This variable can be overridden with the -u|--untracked-files option
8629 of
<a href=
"git-status.html">git-status(
1)
</a> and
<a href=
"git-commit.html">git-commit(
1)
</a>.
</p>
8632 <dt class=
"hdlist1">status.submoduleSummary
</dt>
8634 <p>Defaults to false.
8635 If this is set to a non-zero number or true (identical to -
1 or an
8636 unlimited number), the submodule summary will be enabled and a
8637 summary of commits for modified submodules will be shown (see
8638 --summary-limit option of
<a href=
"git-submodule.html">git-submodule(
1)
</a>). Please note
8639 that the summary output command will be suppressed for all
8640 submodules when
<code>diff.ignoreSubmodules
</code> is set to
<em>all
</em> or only
8641 for those submodules where
<code>submodule.
</code><em><name
></em><code>.ignore=all
</code>. The only
8642 exception to that rule is that status and commit will show staged
8643 submodule changes. To
8644 also view the summary for ignored submodules you can either use
8645 the --ignore-submodules=dirty command-line option or the
<em>git
8646 submodule summary
</em> command, which shows a similar output but does
8647 not honor these settings.
</p>
8649 <dt class=
"hdlist1">submodule.
<name
>.url
</dt>
8651 <p>The URL for a submodule. This variable is copied from the .gitmodules
8652 file to the git config via
<em>git submodule init
</em>. The user can change
8653 the configured URL before obtaining the submodule via
<em>git submodule
8654 update
</em>. If neither submodule.
<name
>.active nor submodule.active are
8655 set, the presence of this variable is used as a fallback to indicate
8656 whether the submodule is of interest to git commands.
8657 See
<a href=
"git-submodule.html">git-submodule(
1)
</a> and
<a href=
"gitmodules.html">gitmodules(
5)
</a> for details.
</p>
8659 <dt class=
"hdlist1">submodule.
<name
>.update
</dt>
8661 <p>The method by which a submodule is updated by
<em>git submodule update
</em>,
8662 which is the only affected command, others such as
8663 <em>git checkout --recurse-submodules
</em> are unaffected. It exists for
8664 historical reasons, when
<em>git submodule
</em> was the only command to
8665 interact with submodules; settings like
<code>submodule.active
</code>
8666 and
<code>pull.rebase
</code> are more specific. It is populated by
8667 <code>git
</code> <code>submodule
</code> <code>init
</code> from the
<a href=
"gitmodules.html">gitmodules(
5)
</a> file.
8668 See description of
<em>update
</em> command in
<a href=
"git-submodule.html">git-submodule(
1)
</a>.
</p>
8670 <dt class=
"hdlist1">submodule.
<name
>.branch
</dt>
8672 <p>The remote branch name for a submodule, used by
<code>git
</code> <code>submodule
</code>
8673 <code>update
</code> <code>--remote
</code>. Set this option to override the value found in
8674 the .
<code>gitmodules
</code> file. See
<a href=
"git-submodule.html">git-submodule(
1)
</a> and
8675 <a href=
"gitmodules.html">gitmodules(
5)
</a> for details.
</p>
8677 <dt class=
"hdlist1">submodule.
<name
>.fetchRecurseSubmodules
</dt>
8679 <p>This option can be used to control recursive fetching of this
8680 submodule. It can be overridden by using the --[no-]recurse-submodules
8681 command-line option to
"git fetch" and
"git pull".
8682 This setting will override that from in the
<a href=
"gitmodules.html">gitmodules(
5)
</a>
8685 <dt class=
"hdlist1">submodule.
<name
>.ignore
</dt>
8687 <p>Defines under what circumstances
"git status" and the diff family show
8688 a submodule as modified. When set to
"all", it will never be considered
8689 modified (but it will nonetheless show up in the output of status and
8690 commit when it has been staged),
"dirty" will ignore all changes
8691 to the submodule
’s work tree and
8692 takes only differences between the HEAD of the submodule and the commit
8693 recorded in the superproject into account.
"untracked" will additionally
8694 let submodules with modified tracked files in their work tree show up.
8695 Using
"none" (the default when this option is not set) also shows
8696 submodules that have untracked files in their work tree as changed.
8697 This setting overrides any setting made in .gitmodules for this submodule,
8698 both settings can be overridden on the command line by using the
8699 "--ignore-submodules" option. The
<em>git submodule
</em> commands are not
8700 affected by this setting.
</p>
8702 <dt class=
"hdlist1">submodule.
<name
>.active
</dt>
8704 <p>Boolean value indicating if the submodule is of interest to git
8705 commands. This config option takes precedence over the
8706 submodule.active config option. See
<a href=
"gitsubmodules.html">gitsubmodules(
7)
</a> for
8709 <dt class=
"hdlist1">submodule.active
</dt>
8711 <p>A repeated field which contains a pathspec used to match against a
8712 submodule
’s path to determine if the submodule is of interest to git
8713 commands. See
<a href=
"gitsubmodules.html">gitsubmodules(
7)
</a> for details.
</p>
8715 <dt class=
"hdlist1">submodule.recurse
</dt>
8717 <p>A boolean indicating if commands should enable the
<code>--recurse-submodules
</code>
8718 option by default. Defaults to false.
</p>
8719 <div class=
"paragraph">
8720 <p>When set to true, it can be deactivated via the
8721 <code>--no-recurse-submodules
</code> option. Note that some Git commands
8722 lacking this option may call some of the above commands affected by
8723 <code>submodule.recurse
</code>; for instance
<code>git
</code> <code>remote
</code> <code>update
</code> will call
8724 <code>git
</code> <code>fetch
</code> but does not have a
<code>--no-recurse-submodules
</code> option.
8725 For these commands a workaround is to temporarily change the
8726 configuration value by using
<code>git
</code> <code>-c
</code> <code>submodule.recurse=
0</code>.
</p>
8728 <div class=
"paragraph">
8729 <p>The following list shows the commands that accept
8730 <code>--recurse-submodules
</code> and whether they are supported by this
8736 <p><code>checkout
</code>,
<code>fetch
</code>,
<code>grep
</code>,
<code>pull
</code>,
<code>push
</code>,
<code>read-tree
</code>,
8737 <code>reset
</code>,
<code>restore
</code> and
<code>switch
</code> are always supported.
</p>
8740 <p><code>clone
</code> and
<code>ls-files
</code> are not supported.
</p>
8743 <p><code>branch
</code> is supported only if
<code>submodule.propagateBranches
</code> is
8749 <dt class=
"hdlist1">submodule.propagateBranches
</dt>
8751 <p>[EXPERIMENTAL] A boolean that enables branching support when
8752 using
<code>--recurse-submodules
</code> or
<code>submodule.recurse=true
</code>.
8753 Enabling this will allow certain commands to accept
8754 <code>--recurse-submodules
</code> and certain commands that already accept
8755 <code>--recurse-submodules
</code> will now consider branches.
8756 Defaults to false.
</p>
8758 <dt class=
"hdlist1">submodule.fetchJobs
</dt>
8760 <p>Specifies how many submodules are fetched/cloned at the same time.
8761 A positive integer allows up to that number of submodules fetched
8762 in parallel. A value of
0 will give some reasonable default.
8763 If unset, it defaults to
1.
</p>
8765 <dt class=
"hdlist1">submodule.alternateLocation
</dt>
8767 <p>Specifies how the submodules obtain alternates when submodules are
8768 cloned. Possible values are
<code>no
</code>,
<code>superproject
</code>.
8769 By default
<code>no
</code> is assumed, which doesn
’t add references. When the
8770 value is set to
<code>superproject
</code> the submodule to be cloned computes
8771 its alternates location relative to the superprojects alternate.
</p>
8773 <dt class=
"hdlist1">submodule.alternateErrorStrategy
</dt>
8775 <p>Specifies how to treat errors with the alternates for a submodule
8776 as computed via
<code>submodule.alternateLocation
</code>. Possible values are
8777 <code>ignore
</code>,
<code>info
</code>,
<code>die
</code>. Default is
<code>die
</code>. Note that if set to
<code>ignore
</code>
8778 or
<code>info
</code>, and if there is an error with the computed alternate, the
8779 clone proceeds as if no alternate was specified.
</p>
8781 <dt class=
"hdlist1">tag.forceSignAnnotated
</dt>
8783 <p>A boolean to specify whether annotated tags created should be GPG signed.
8784 If
<code>--annotate
</code> is specified on the command line, it takes
8785 precedence over this option.
</p>
8787 <dt class=
"hdlist1">tag.sort
</dt>
8789 <p>This variable controls the sort ordering of tags when displayed by
8790 <a href=
"git-tag.html">git-tag(
1)
</a>. Without the
"--sort=<value>" option provided, the
8791 value of this variable will be used as the default.
</p>
8793 <dt class=
"hdlist1">tag.gpgSign
</dt>
8795 <p>A boolean to specify whether all tags should be GPG signed.
8796 Use of this option when running in an automated script can
8797 result in a large number of tags being signed. It is therefore
8798 convenient to use an agent to avoid typing your gpg passphrase
8799 several times. Note that this option doesn
’t affect tag signing
8800 behavior enabled by
"-u <keyid>" or
"--local-user=<keyid>" options.
</p>
8802 <dt class=
"hdlist1">tar.umask
</dt>
8804 <p>This variable can be used to restrict the permission bits of
8805 tar archive entries. The default is
0002, which turns off the
8806 world write bit. The special value
"user" indicates that the
8807 archiving user
’s umask will be used instead. See umask(
2) and
8808 <a href=
"git-archive.html">git-archive(
1)
</a>.
</p>
8812 <div class=
"paragraph">
8813 <p>Trace2 config settings are only read from the system and global
8814 config files; repository local and worktree config files and
<code>-c
</code>
8815 command line arguments are not respected.
</p>
8819 <dt class=
"hdlist1">trace2.normalTarget
</dt>
8821 <p>This variable controls the normal target destination.
8822 It may be overridden by the
<code>GIT_TRACE2
</code> environment variable.
8823 The following table shows possible values.
</p>
8825 <dt class=
"hdlist1">trace2.perfTarget
</dt>
8827 <p>This variable controls the performance target destination.
8828 It may be overridden by the
<code>GIT_TRACE2_PERF
</code> environment variable.
8829 The following table shows possible values.
</p>
8831 <dt class=
"hdlist1">trace2.eventTarget
</dt>
8833 <p>This variable controls the event target destination.
8834 It may be overridden by the
<code>GIT_TRACE2_EVENT
</code> environment variable.
8835 The following table shows possible values.
</p>
8836 <div class=
"openblock">
8837 <div class=
"content">
8841 <p><code>0</code> or
<code>false
</code> - Disables the target.
</p>
8844 <p><code>1</code> or
<code>true
</code> - Writes to
<code>STDERR
</code>.
</p>
8847 <p>[
<code>2-
9</code>] - Writes to the already opened file descriptor.
</p>
8850 <p><em><absolute-pathname
></em> - Writes to the file in append mode. If the target
8851 already exists and is a directory, the traces will be written to files (one
8852 per process) underneath the given directory.
</p>
8855 <p><code>af_unix:
</code>[
<em><socket-type
></em><code>:
</code>]
<em><absolute-pathname
></em> - Write to a
8856 Unix DomainSocket (on platforms that support them). Socket
8857 type can be either
<code>stream
</code> or
<code>dgram
</code>; if omitted Git will
8865 <dt class=
"hdlist1">trace2.normalBrief
</dt>
8867 <p>Boolean. When true
<code>time
</code>,
<code>filename
</code>, and
<code>line
</code> fields are
8868 omitted from normal output. May be overridden by the
8869 <code>GIT_TRACE2_BRIEF
</code> environment variable. Defaults to false.
</p>
8871 <dt class=
"hdlist1">trace2.perfBrief
</dt>
8873 <p>Boolean. When true
<code>time
</code>,
<code>filename
</code>, and
<code>line
</code> fields are
8874 omitted from PERF output. May be overridden by the
8875 <code>GIT_TRACE2_PERF_BRIEF
</code> environment variable. Defaults to false.
</p>
8877 <dt class=
"hdlist1">trace2.eventBrief
</dt>
8879 <p>Boolean. When true
<code>time
</code>,
<code>filename
</code>, and
<code>line
</code> fields are
8880 omitted from event output. May be overridden by the
8881 <code>GIT_TRACE2_EVENT_BRIEF
</code> environment variable. Defaults to false.
</p>
8883 <dt class=
"hdlist1">trace2.eventNesting
</dt>
8885 <p>Integer. Specifies desired depth of nested regions in the
8886 event output. Regions deeper than this value will be
8887 omitted. May be overridden by the
<code>GIT_TRACE2_EVENT_NESTING
</code>
8888 environment variable. Defaults to
2.
</p>
8890 <dt class=
"hdlist1">trace2.configParams
</dt>
8892 <p>A comma-separated list of patterns of
"important" config
8893 settings that should be recorded in the trace2 output.
8894 For example,
<code>core.
</code>*,remote.*.
<code>url
</code> would cause the trace2
8895 output to contain events listing each configured remote.
8896 May be overridden by the
<code>GIT_TRACE2_CONFIG_PARAMS
</code> environment
8897 variable. Unset by default.
</p>
8899 <dt class=
"hdlist1">trace2.envVars
</dt>
8901 <p>A comma-separated list of
"important" environment variables that should
8902 be recorded in the trace2 output. For example,
8903 <code>GIT_HTTP_USER_AGENT,GIT_CONFIG
</code> would cause the trace2 output to
8904 contain events listing the overrides for HTTP user agent and the
8905 location of the Git configuration file (assuming any are set). May be
8906 overridden by the
<code>GIT_TRACE2_ENV_VARS
</code> environment variable. Unset by
8909 <dt class=
"hdlist1">trace2.destinationDebug
</dt>
8911 <p>Boolean. When true Git will print error messages when a
8912 trace target destination cannot be opened for writing.
8913 By default, these errors are suppressed and tracing is
8914 silently disabled. May be overridden by the
8915 <code>GIT_TRACE2_DST_DEBUG
</code> environment variable.
</p>
8917 <dt class=
"hdlist1">trace2.maxFiles
</dt>
8919 <p>Integer. When writing trace files to a target directory, do not
8920 write additional traces if doing so would exceed this many files. Instead,
8921 write a sentinel file that will block further tracing to this
8922 directory. Defaults to
0, which disables this check.
</p>
8924 <dt class=
"hdlist1">transfer.credentialsInUrl
</dt>
8926 <p>A configured URL can contain plaintext credentials in the form
8927 <em><protocol
></em><code>://
</code><em><user
></em><code>:
</code><em><password
></em><code>@
</code><em><domain
></em><code>/
</code><em><path
></em>. You may want
8928 to warn or forbid the use of such configuration (in favor of
8929 using
<a href=
"git-credential.html">git-credential(
1)
</a>). This will be used on
8930 <a href=
"git-clone.html">git-clone(
1)
</a>,
<a href=
"git-fetch.html">git-fetch(
1)
</a>,
<a href=
"git-push.html">git-push(
1)
</a>,
8931 and any other direct use of the configured URL.
</p>
8932 <div class=
"paragraph">
8933 <p>Note that this is currently limited to detecting credentials in
8934 <code>remote.
</code><em><name
></em><code>.url
</code> configuration; it won
’t detect credentials in
8935 <code>remote.
</code><em><name
></em><code>.pushurl
</code> configuration.
</p>
8937 <div class=
"paragraph">
8938 <p>You might want to enable this to prevent inadvertent credentials
8939 exposure, e.g. because:
</p>
8944 <p>The OS or system where you
’re running git may not provide a way or
8945 otherwise allow you to configure the permissions of the
8946 configuration file where the username and/or password are stored.
</p>
8949 <p>Even if it does, having such data stored
"at rest" might expose you
8950 in other ways, e.g. a backup process might copy the data to another
8954 <p>The git programs will pass the full URL to one another as arguments
8955 on the command-line, meaning the credentials will be exposed to other
8956 unprivileged users on systems that allow them to see the full
8957 process list of other users. On linux the
"hidepid" setting
8958 documented in procfs(
5) allows for configuring this behavior.
</p>
8959 <div class=
"paragraph">
8960 <p>If such concerns don
’t apply to you then you probably don
’t need to be
8961 concerned about credentials exposure due to storing sensitive
8962 data in git
’s configuration files. If you do want to use this, set
8963 <code>transfer.credentialsInUrl
</code> to one of these values:
</p>
8967 <p><code>allow
</code> (default): Git will proceed with its activity without warning.
</p>
8970 <p><code>warn
</code>: Git will write a warning message to
<code>stderr
</code> when parsing a URL
8971 with a plaintext credential.
</p>
8974 <p><code>die
</code>: Git will write a failure message to
<code>stderr
</code> when parsing a URL
8975 with a plaintext credential.
</p>
8980 <dt class=
"hdlist1">transfer.fsckObjects
</dt>
8982 <p>When
<code>fetch.fsckObjects
</code> or
<code>receive.fsckObjects
</code> are
8983 not set, the value of this variable is used instead.
8984 Defaults to false.
</p>
8985 <div class=
"paragraph">
8986 <p>When set, the fetch or receive will abort in the case of a malformed
8987 object or a link to a nonexistent object. In addition, various other
8988 issues are checked for, including legacy issues (see
<code>fsck.
</code><em><msg-id
></em>),
8989 and potential security issues like the existence of a .
<code>GIT
</code> directory
8990 or a malicious .
<code>gitmodules
</code> file (see the release notes for v2.2
.1
8991 and v2.17
.1 for details). Other sanity and security checks may be
8992 added in future releases.
</p>
8994 <div class=
"paragraph">
8995 <p>On the receiving side, failing fsckObjects will make those objects
8996 unreachable, see
"QUARANTINE ENVIRONMENT" in
8997 <a href=
"git-receive-pack.html">git-receive-pack(
1)
</a>. On the fetch side, malformed objects will
8998 instead be left unreferenced in the repository.
</p>
9000 <div class=
"paragraph">
9001 <p>Due to the non-quarantine nature of the
<code>fetch.fsckObjects
</code>
9002 implementation it cannot be relied upon to leave the object store
9003 clean like
<code>receive.fsckObjects
</code> can.
</p>
9005 <div class=
"paragraph">
9006 <p>As objects are unpacked they
’re written to the object store, so there
9007 can be cases where malicious objects get introduced even though the
9008 "fetch" failed, only to have a subsequent
"fetch" succeed because only
9009 new incoming objects are checked, not those that have already been
9010 written to the object store. That difference in behavior should not be
9011 relied upon. In the future, such objects may be quarantined for
9012 "fetch" as well.
</p>
9014 <div class=
"paragraph">
9015 <p>For now, the paranoid need to find some way to emulate the quarantine
9016 environment if they
’d like the same protection as
"push". E.g. in the
9017 case of an internal mirror do the mirroring in two steps, one to fetch
9018 the untrusted objects, and then do a second
"push" (which will use the
9019 quarantine) to another internal repo, and have internal clients
9020 consume this pushed-to repository, or embargo internal fetches and
9021 only allow them once a full
"fsck" has run (and no new fetches have
9022 happened in the meantime).
</p>
9025 <dt class=
"hdlist1">transfer.hideRefs
</dt>
9027 <p>String(s)
<code>receive-pack
</code> and
<code>upload-pack
</code> use to decide which
9028 refs to omit from their initial advertisements. Use more than
9029 one definition to specify multiple prefix strings. A ref that is
9030 under the hierarchies listed in the value of this variable is
9031 excluded, and is hidden when responding to
<code>git
</code> <code>push
</code> or
<code>git
</code>
9032 <code>fetch
</code>. See
<code>receive.hideRefs
</code> and
<code>uploadpack.hideRefs
</code> for
9033 program-specific versions of this config.
</p>
9034 <div class=
"paragraph">
9035 <p>You may also include a ! in front of the ref name to negate the entry,
9036 explicitly exposing it, even if an earlier entry marked it as hidden.
9037 If you have multiple hideRefs values, later entries override earlier ones
9038 (and entries in more-specific config files override less-specific ones).
</p>
9040 <div class=
"paragraph">
9041 <p>If a namespace is in use, the namespace prefix is stripped from each
9042 reference before it is matched against
<code>transfer.hiderefs
</code> patterns. In
9043 order to match refs before stripping, add a
<code>^
</code> in front of the ref name. If
9044 you combine ! and
<code>^
</code>, ! must be specified first.
</p>
9046 <div class=
"paragraph">
9047 <p>For example, if
<code>refs/heads/master
</code> is specified in
<code>transfer.hideRefs
</code> and
9048 the current namespace is
<code>foo
</code>, then
<code>refs/namespaces/foo/refs/heads/master
</code>
9049 is omitted from the advertisements. If
<code>uploadpack.allowRefInWant
</code> is set,
9050 <code>upload-pack
</code> will treat
<code>want-ref
</code> <code>refs/heads/master
</code> in a protocol v2
9051 <code>fetch
</code> command as if
<code>refs/namespaces/foo/refs/heads/master
</code> did not exist.
9052 <code>receive-pack
</code>, on the other hand, will still advertise the object id the
9053 ref is pointing to without mentioning its name (a so-called
".have" line).
</p>
9055 <div class=
"paragraph">
9056 <p>Even if you hide refs, a client may still be able to steal the target
9057 objects via the techniques described in the
"SECURITY" section of the
9058 <a href=
"gitnamespaces.html">gitnamespaces(
7)
</a> man page; it
’s best to keep private data in a
9059 separate repository.
</p>
9062 <dt class=
"hdlist1">transfer.unpackLimit
</dt>
9064 <p>When
<code>fetch.unpackLimit
</code> or
<code>receive.unpackLimit
</code> are
9065 not set, the value of this variable is used instead.
9066 The default value is
100.
</p>
9068 <dt class=
"hdlist1">transfer.advertiseSID
</dt>
9070 <p>Boolean. When true, client and server processes will advertise their
9071 unique session IDs to their remote counterpart. Defaults to false.
</p>
9073 <dt class=
"hdlist1">transfer.bundleURI
</dt>
9075 <p>When
<code>true
</code>, local
<code>git
</code> <code>clone
</code> commands will request bundle
9076 information from the remote server (if advertised) and download
9077 bundles before continuing the clone through the Git protocol.
9078 Defaults to
<code>false
</code>.
</p>
9080 <dt class=
"hdlist1">transfer.advertiseObjectInfo
</dt>
9082 <p>When
<code>true
</code>, the
<code>object-info
</code> capability is advertised by
9083 servers. Defaults to false.
</p>
9085 <dt class=
"hdlist1">uploadarchive.allowUnreachable
</dt>
9087 <p>If true, allow clients to use
<code>git
</code> <code>archive
</code> <code>--remote
</code> to request
9088 any tree, whether reachable from the ref tips or not. See the
9089 discussion in the
"SECURITY" section of
9090 <a href=
"git-upload-archive.html">git-upload-archive(
1)
</a> for more details. Defaults to
9091 <code>false
</code>.
</p>
9093 <dt class=
"hdlist1">uploadpack.hideRefs
</dt>
9095 <p>This variable is the same as
<code>transfer.hideRefs
</code>, but applies
9096 only to
<code>upload-pack
</code> (and so affects only fetches, not pushes).
9097 An attempt to fetch a hidden ref by
<code>git
</code> <code>fetch
</code> will fail. See
9098 also
<code>uploadpack.allowTipSHA1InWant
</code>.
</p>
9100 <dt class=
"hdlist1">uploadpack.allowTipSHA1InWant
</dt>
9102 <p>When
<code>uploadpack.hideRefs
</code> is in effect, allow
<code>upload-pack
</code>
9103 to accept a fetch request that asks for an object at the tip
9104 of a hidden ref (by default, such a request is rejected).
9105 See also
<code>uploadpack.hideRefs
</code>. Even if this is false, a client
9106 may be able to steal objects via the techniques described in the
9107 "SECURITY" section of the
<a href=
"gitnamespaces.html">gitnamespaces(
7)
</a> man page; it
’s
9108 best to keep private data in a separate repository.
</p>
9110 <dt class=
"hdlist1">uploadpack.allowReachableSHA1InWant
</dt>
9112 <p>Allow
<code>upload-pack
</code> to accept a fetch request that asks for an
9113 object that is reachable from any ref tip. However, note that
9114 calculating object reachability is computationally expensive.
9115 Defaults to
<code>false
</code>. Even if this is false, a client may be able
9116 to steal objects via the techniques described in the
"SECURITY"
9117 section of the
<a href=
"gitnamespaces.html">gitnamespaces(
7)
</a> man page; it
’s best to
9118 keep private data in a separate repository.
</p>
9120 <dt class=
"hdlist1">uploadpack.allowAnySHA1InWant
</dt>
9122 <p>Allow
<code>upload-pack
</code> to accept a fetch request that asks for any
9124 It implies
<code>uploadpack.allowTipSHA1InWant
</code> and
9125 <code>uploadpack.allowReachableSHA1InWant
</code>. If set to
<code>true
</code> it will
9126 enable both of them, it set to
<code>false
</code> it will disable both of
9128 By default not set.
</p>
9130 <dt class=
"hdlist1">uploadpack.keepAlive
</dt>
9132 <p>When
<code>upload-pack
</code> has started
<code>pack-objects
</code>, there may be a
9133 quiet period while
<code>pack-objects
</code> prepares the pack. Normally
9134 it would output progress information, but if
<code>--quiet
</code> was used
9135 for the fetch,
<code>pack-objects
</code> will output nothing at all until
9136 the pack data begins. Some clients and networks may consider
9137 the server to be hung and give up. Setting this option instructs
9138 <code>upload-pack
</code> to send an empty keepalive packet every
9139 <code>uploadpack.keepAlive
</code> seconds. Setting this option to
0
9140 disables keepalive packets entirely. The default is
5 seconds.
</p>
9142 <dt class=
"hdlist1">uploadpack.packObjectsHook
</dt>
9144 <p>If this option is set, when
<code>upload-pack
</code> would run
9145 <code>git
</code> <code>pack-objects
</code> to create a packfile for a client, it will
9146 run this shell command instead. The
<code>pack-objects
</code> command and
9147 arguments it
<em>would
</em> have run (including the
<code>git
</code> <code>pack-objects
</code>
9148 at the beginning) are appended to the shell command. The stdin
9149 and stdout of the hook are treated as if
<code>pack-objects
</code> itself
9150 was run. I.e.,
<code>upload-pack
</code> will feed input intended for
9151 <code>pack-objects
</code> to the hook, and expects a completed packfile on
9153 <div class=
"paragraph">
9154 <p>Note that this configuration variable is only respected when it is specified
9155 in protected configuration (see
<a href=
"#SCOPES">SCOPES
</a>). This is a safety measure
9156 against fetching from untrusted repositories.
</p>
9159 <dt class=
"hdlist1">uploadpack.allowFilter
</dt>
9161 <p>If this option is set,
<code>upload-pack
</code> will support partial
9162 clone and partial fetch object filtering.
</p>
9164 <dt class=
"hdlist1">uploadpackfilter.allow
</dt>
9166 <p>Provides a default value for unspecified object filters (see: the
9167 below configuration variable). If set to
<code>true
</code>, this will also
9168 enable all filters which get added in the future.
9169 Defaults to
<code>true
</code>.
</p>
9171 <dt class=
"hdlist1">uploadpackfilter.
<filter
>.allow
</dt>
9173 <p>Explicitly allow or ban the object filter corresponding to
9174 <em><filter
></em>, where
<em><filter
></em> may be one of:
<code>blob:none
</code>,
9175 <code>blob:limit
</code>,
<code>object:type
</code>,
<code>tree
</code>,
<code>sparse:oid
</code>, or
<code>combine
</code>.
9176 If using combined filters, both
<code>combine
</code> and all of the nested
9177 filter kinds must be allowed. Defaults to
<code>uploadpackfilter.allow
</code>.
</p>
9179 <dt class=
"hdlist1">uploadpackfilter.tree.maxDepth
</dt>
9181 <p>Only allow
<code>--filter=tree:
</code><em><n
></em> when
<em><n
></em> is no more than the value of
9182 <code>uploadpackfilter.tree.maxDepth
</code>. If set, this also implies
9183 <code>uploadpackfilter.tree.allow=true
</code>, unless this configuration
9184 variable had already been set. Has no effect if unset.
</p>
9186 <dt class=
"hdlist1">uploadpack.allowRefInWant
</dt>
9188 <p>If this option is set,
<code>upload-pack
</code> will support the
<code>ref-in-want
</code>
9189 feature of the protocol version
2 <code>fetch
</code> command. This feature
9190 is intended for the benefit of load-balanced servers which may
9191 not have the same view of what OIDs their refs point to due to
9192 replication delay.
</p>
9194 <dt class=
"hdlist1">url.
<base
>.insteadOf
</dt>
9196 <p>Any URL that starts with this value will be rewritten to
9197 start, instead, with
<base
>. In cases where some site serves a
9198 large number of repositories, and serves them with multiple
9199 access methods, and some users need to use different access
9200 methods, this feature allows people to specify any of the
9201 equivalent URLs and have Git automatically rewrite the URL to
9202 the best alternative for the particular user, even for a
9203 never-before-seen repository on the site. When more than one
9204 insteadOf strings match a given URL, the longest match is used.
</p>
9205 <div class=
"paragraph">
9206 <p>Note that any protocol restrictions will be applied to the rewritten
9207 URL. If the rewrite changes the URL to use a custom protocol or remote
9208 helper, you may need to adjust the
<code>protocol.
</code>*.
<code>allow
</code> config to permit
9209 the request. In particular, protocols you expect to use for submodules
9210 must be set to
<code>always
</code> rather than the default of
<code>user
</code>. See the
9211 description of
<code>protocol.allow
</code> above.
</p>
9214 <dt class=
"hdlist1">url.
<base
>.pushInsteadOf
</dt>
9216 <p>Any URL that starts with this value will not be pushed to;
9217 instead, it will be rewritten to start with
<base
>, and the
9218 resulting URL will be pushed to. In cases where some site serves
9219 a large number of repositories, and serves them with multiple
9220 access methods, some of which do not allow push, this feature
9221 allows people to specify a pull-only URL and have Git
9222 automatically use an appropriate URL to push, even for a
9223 never-before-seen repository on the site. When more than one
9224 pushInsteadOf strings match a given URL, the longest match is
9225 used. If a remote has an explicit pushurl, Git will ignore this
9226 setting for that remote.
</p>
9228 <dt class=
"hdlist1">user.name
</dt>
9229 <dt class=
"hdlist1">user.email
</dt>
9230 <dt class=
"hdlist1">author.name
</dt>
9231 <dt class=
"hdlist1">author.email
</dt>
9232 <dt class=
"hdlist1">committer.name
</dt>
9233 <dt class=
"hdlist1">committer.email
</dt>
9235 <p>The
<code>user.name
</code> and
<code>user.email
</code> variables determine what ends
9236 up in the
<code>author
</code> and
<code>committer
</code> fields of commit
9238 If you need the
<code>author
</code> or
<code>committer
</code> to be different, the
9239 <code>author.name
</code>,
<code>author.email
</code>,
<code>committer.name
</code>, or
9240 <code>committer.email
</code> variables can be set.
9241 All of these can be overridden by the
<code>GIT_AUTHOR_NAME
</code>,
9242 <code>GIT_AUTHOR_EMAIL
</code>,
<code>GIT_COMMITTER_NAME
</code>,
9243 <code>GIT_COMMITTER_EMAIL
</code>, and
<code>EMAIL
</code> environment variables.
</p>
9244 <div class=
"paragraph">
9245 <p>Note that the
<code>name
</code> forms of these variables conventionally refer to
9246 some form of a personal name. See
<a href=
"git-commit.html">git-commit(
1)
</a> and the
9247 environment variables section of
<a href=
"git.html">git(
1)
</a> for more information on
9248 these settings and the
<code>credential.username
</code> option if you
’re looking
9249 for authentication credentials instead.
</p>
9252 <dt class=
"hdlist1">user.useConfigOnly
</dt>
9254 <p>Instruct Git to avoid trying to guess defaults for
<code>user.email
</code>
9255 and
<code>user.name
</code>, and instead retrieve the values only from the
9256 configuration. For example, if you have multiple email addresses
9257 and would like to use a different one for each repository, then
9258 with this configuration option set to
<code>true
</code> in the global config
9259 along with a name, Git will prompt you to set up an email before
9260 making new commits in a newly cloned repository.
9261 Defaults to
<code>false
</code>.
</p>
9263 <dt class=
"hdlist1">user.signingKey
</dt>
9265 <p>If
<a href=
"git-tag.html">git-tag(
1)
</a> or
<a href=
"git-commit.html">git-commit(
1)
</a> is not selecting the
9266 key you want it to automatically when creating a signed tag or
9267 commit, you can override the default selection with this variable.
9268 This option is passed unchanged to gpg
’s --local-user parameter,
9269 so you may specify a key using any method that gpg supports.
9270 If gpg.format is set to
<code>ssh
</code> this can contain the path to either
9271 your private ssh key or the public key when ssh-agent is used.
9272 Alternatively it can contain a public key prefixed with
<code>key::
</code>
9273 directly (e.g.:
"key::ssh-rsa XXXXXX identifier"). The private key
9274 needs to be available via ssh-agent. If not set Git will call
9275 gpg.ssh.defaultKeyCommand (e.g.:
"ssh-add -L") and try to use the
9276 first key available. For backward compatibility, a raw key which
9277 begins with
"ssh-", such as
"ssh-rsa XXXXXX identifier", is treated
9278 as
"key::ssh-rsa XXXXXX identifier", but this form is deprecated;
9279 use the
<code>key::
</code> form instead.
</p>
9281 <dt class=
"hdlist1">versionsort.prereleaseSuffix (deprecated)
</dt>
9283 <p>Deprecated alias for
<code>versionsort.suffix
</code>. Ignored if
9284 <code>versionsort.suffix
</code> is set.
</p>
9286 <dt class=
"hdlist1">versionsort.suffix
</dt>
9288 <p>Even when version sort is used in
<a href=
"git-tag.html">git-tag(
1)
</a>, tagnames
9289 with the same base version but different suffixes are still sorted
9290 lexicographically, resulting e.g. in prerelease tags appearing
9291 after the main release (e.g.
"1.0-rc1" after
"1.0"). This
9292 variable can be specified to determine the sorting order of tags
9293 with different suffixes.
</p>
9294 <div class=
"paragraph">
9295 <p>By specifying a single suffix in this variable, any tagname containing
9296 that suffix will appear before the corresponding main release. E.g. if
9297 the variable is set to
"-rc", then all
"1.0-rcX" tags will appear before
9298 "1.0". If specified multiple times, once per suffix, then the order of
9299 suffixes in the configuration will determine the sorting order of tagnames
9300 with those suffixes. E.g. if
"-pre" appears before
"-rc" in the
9301 configuration, then all
"1.0-preX" tags will be listed before any
9302 "1.0-rcX" tags. The placement of the main release tag relative to tags
9303 with various suffixes can be determined by specifying the empty suffix
9304 among those other suffixes. E.g. if the suffixes
"-rc",
"",
"-ck", and
9305 "-bfs" appear in the configuration in this order, then all
"v4.8-rcX" tags
9306 are listed first, followed by
"v4.8", then
"v4.8-ckX" and finally
9309 <div class=
"paragraph">
9310 <p>If more than one suffix matches the same tagname, then that tagname will
9311 be sorted according to the suffix which starts at the earliest position in
9312 the tagname. If more than one different matching suffix starts at
9313 that earliest position, then that tagname will be sorted according to the
9314 longest of those suffixes.
9315 The sorting order between different suffixes is undefined if they are
9316 in multiple config files.
</p>
9319 <dt class=
"hdlist1">web.browser
</dt>
9321 <p>Specify a web browser that may be used by some commands.
9322 Currently only
<a href=
"git-instaweb.html">git-instaweb(
1)
</a> and
<a href=
"git-help.html">git-help(
1)
</a>
9325 <dt class=
"hdlist1">worktree.guessRemote
</dt>
9327 <p>If no branch is specified and neither
<code>-b
</code> nor
<code>-B
</code> nor
9328 <code>--detach
</code> is used, then
<code>git
</code> <code>worktree
</code> <code>add
</code> defaults to
9329 creating a new branch from HEAD. If
<code>worktree.guessRemote
</code> is
9330 set to true,
<code>worktree
</code> <code>add
</code> tries to find a remote-tracking
9331 branch whose name uniquely matches the new branch name. If
9332 such a branch exists, it is checked out and set as
"upstream"
9333 for the new branch. If no such match can be found, it falls
9334 back to creating a new branch from the current HEAD.
</p>
9342 <h2 id=
"_bugs">BUGS
</h2>
9343 <div class=
"sectionbody">
9344 <div class=
"paragraph">
9345 <p>When using the deprecated [
<code>section.subsection
</code>] syntax, changing a value
9346 will result in adding a multi-line key instead of a change, if the subsection
9347 is given with at least one uppercase character. For example when the config
9350 <div class=
"listingblock">
9351 <div class=
"content">
9352 <pre> [section.subsection]
9356 <div class=
"paragraph">
9357 <p>and running
<code>git
</code> <code>config
</code> <code>section.Subsection.key
</code> <code>value2
</code> will result in
</p>
9359 <div class=
"listingblock">
9360 <div class=
"content">
9361 <pre> [section.subsection]
9369 <h2 id=
"_git">GIT
</h2>
9370 <div class=
"sectionbody">
9371 <div class=
"paragraph">
9372 <p>Part of the
<a href=
"git.html">git(
1)
</a> suite
</p>
9378 <div id=
"footer-text">
9379 Last updated
2024-
11-
02 14:
46:
55 +
0900