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.sanitizePrompt</dt>
3898 <p>By default, user names and hosts that are shown as part of the
3899 password prompt are not allowed to contain control characters (they
3900 will be URL-encoded by default). Configure this setting to <code>false</code> to
3901 override that behavior.</p>
3903 <dt class="hdlist1
">credential.protectProtocol</dt>
3905 <p>By default, Carriage Return characters are not allowed in the protocol
3906 that is used when Git talks to a credential helper. This setting allows
3907 users to override this default.</p>
3909 <dt class="hdlist1
">credential.username</dt>
3911 <p>If no username is set for a network authentication, use this username
3912 by default. See credential.<context>.* below, and
3913 <a href="gitcredentials.html
">gitcredentials(7)</a>.</p>
3915 <dt class="hdlist1
">credential.<url>.*</dt>
3917 <p>Any of the credential.* options above can be applied selectively to
3918 some credentials. For example, "credential.https://example.com.username
"
3919 would set the default username only for https connections to
3920 example.com. See <a href="gitcredentials.html
">gitcredentials(7)</a> for details on how URLs are
3923 <dt class="hdlist1
">credentialCache.ignoreSIGHUP</dt>
3925 <p>Tell git-credential-cache—​daemon to ignore SIGHUP, instead of quitting.</p>
3927 <dt class="hdlist1
">credentialStore.lockTimeoutMS</dt>
3929 <p>The length of time, in milliseconds, for git-credential-store to retry
3930 when trying to lock the credentials file. A value of 0 means not to retry at
3931 all; -1 means to try indefinitely. Default is 1000 (i.e., retry for
3934 <dt class="hdlist1
"><code>diff.autoRefreshIndex</code></dt>
3936 <p>When using <code>git</code> <code>diff</code> to compare with work tree
3937 files, do not consider stat-only changes as changed.
3938 Instead, silently run <code>git</code> <code>update-index</code> <code>--refresh</code> to
3939 update the cached stat information for paths whose
3940 contents in the work tree match the contents in the
3941 index. This option defaults to <code>true</code>. Note that this
3942 affects only <code>git</code> <code>diff</code> Porcelain, and not lower level
3943 <code>diff</code> commands such as <code>git</code> <code>diff-files</code>.</p>
3945 <dt class="hdlist1
"><code>diff.dirstat</code></dt>
3947 <p>A comma separated list of <code>--dirstat</code> parameters specifying the
3948 default behavior of the <code>--dirstat</code> option to <a href="git-diff.html
">git-diff(1)</a>
3950 The defaults can be overridden on the command line
3951 (using <code>--dirstat=</code><em><param></em><code>,..</code>.). The fallback defaults
3952 (when not changed by <code>diff.dirstat</code>) are <code>changes,noncumulative,3</code>.
3953 The following parameters are available:</p>
3954 <div class="openblock
">
3955 <div class="content
">
3958 <dt class="hdlist1
"><code>changes</code></dt>
3960 <p>Compute the dirstat numbers by counting the lines that have been
3961 removed from the source, or added to the destination. This ignores
3962 the amount of pure code movements within a file. In other words,
3963 rearranging lines in a file is not counted as much as other changes.
3964 This is the default behavior when no parameter is given.</p>
3966 <dt class="hdlist1
"><code>lines</code></dt>
3968 <p>Compute the dirstat numbers by doing the regular line-based diff
3969 analysis, and summing the removed/added line counts. (For binary
3970 files, count 64-byte chunks instead, since binary files have no
3971 natural concept of lines). This is a more expensive <code>--dirstat</code>
3972 behavior than the <code>changes</code> behavior, but it does count rearranged
3973 lines within a file as much as other changes. The resulting output
3974 is consistent with what you get from the other <code>--</code>*stat options.</p>
3976 <dt class="hdlist1
"><code>files</code></dt>
3978 <p>Compute the dirstat numbers by counting the number of files changed.
3979 Each changed file counts equally in the dirstat analysis. This is
3980 the computationally cheapest <code>--dirstat</code> behavior, since it does
3981 not have to look at the file contents at all.</p>
3983 <dt class="hdlist1
"><code>cumulative</code></dt>
3985 <p>Count changes in a child directory for the parent directory as well.
3986 Note that when using <code>cumulative</code>, the sum of the percentages
3987 reported may exceed 100%. The default (non-cumulative) behavior can
3988 be specified with the <code>noncumulative</code> parameter.</p>
3990 <dt class="hdlist1
"><em><limit></em></dt>
3992 <p>An integer parameter specifies a cut-off percent (3% by default).
3993 Directories contributing less than this percentage of the changes
3994 are not shown in the output.</p>
4000 <div class="paragraph
">
4001 <p>Example: The following will count changed files, while ignoring
4002 directories with less than 10% of the total amount of changed files,
4003 and accumulating child directory counts in the parent directories:
4004 <code>files,10,cumulative</code>.</p>
4007 <dt class="hdlist1
"><code>diff.statNameWidth</code></dt>
4009 <p>Limit the width of the filename part in <code>--stat</code> output. If set, applies
4010 to all commands generating <code>--stat</code> output except <code>format-patch</code>.</p>
4012 <dt class="hdlist1
"><code>diff.statGraphWidth</code></dt>
4014 <p>Limit the width of the graph part in <code>--stat</code> output. If set, applies
4015 to all commands generating <code>--stat</code> output except <code>format-patch</code>.</p>
4017 <dt class="hdlist1
"><code>diff.context</code></dt>
4019 <p>Generate diffs with <em><n></em> lines of context instead of the default
4020 of 3. This value is overridden by the <code>-U</code> option.</p>
4022 <dt class="hdlist1
"><code>diff.interHunkContext</code></dt>
4024 <p>Show the context between diff hunks, up to the specified number
4025 of lines, thereby fusing the hunks that are close to each other.
4026 This value serves as the default for the <code>--inter-hunk-context</code>
4027 command line option.</p>
4029 <dt class="hdlist1
"><code>diff.external</code></dt>
4031 <p>If this config variable is set, diff generation is not
4032 performed using the internal diff machinery, but using the
4033 given command. Can be overridden with the <code>GIT_EXTERNAL_DIFF</code>
4034 environment variable. The command is called with parameters
4035 as described under "git Diffs
" in <a href="git.html
">git(1)</a>. Note: if
4036 you want to use an external diff program only on a subset of
4037 your files, you might want to use <a href="gitattributes.html
">gitattributes(5)</a> instead.</p>
4039 <dt class="hdlist1
"><code>diff.trustExitCode</code></dt>
4041 <p>If this boolean value is set to <code>true</code> then the
4042 <code>diff.external</code> command is expected to return exit code
4043 0 if it considers the input files to be equal or 1 if it
4044 considers them to be different, like <code>diff</code>(1).
4045 If it is set to <code>false</code>, which is the default, then the command
4046 is expected to return exit code <code>0</code> regardless of equality.
4047 Any other exit code causes Git to report a fatal error.</p>
4049 <dt class="hdlist1
"><code>diff.ignoreSubmodules</code></dt>
4051 <p>Sets the default value of <code>--ignore-submodules</code>. Note that this
4052 affects only <code>git</code> <code>diff</code> Porcelain, and not lower level <code>diff</code>
4053 commands such as <code>git</code> <code>diff-files</code>. <code>git</code> <code>checkout</code>
4054 and <code>git</code> <code>switch</code> also honor
4055 this setting when reporting uncommitted changes. Setting it to
4056 <code>all</code> disables the submodule summary normally shown by <code>git</code> <code>commit</code>
4057 and <code>git</code> <code>status</code> when <code>status.submoduleSummary</code> is set unless it is
4058 overridden by using the <code>--ignore-submodules</code> command-line option.
4059 The <code>git</code> <code>submodule</code> commands are not affected by this setting.
4060 By default this is set to untracked so that any untracked
4061 submodules are ignored.</p>
4063 <dt class="hdlist1
"><code>diff.mnemonicPrefix</code></dt>
4065 <p>If set, <code>git</code> <code>diff</code> uses a prefix pair that is different from the
4066 standard <code>a/</code> and <code>b/</code> depending on what is being compared. When
4067 this configuration is in effect, reverse diff output also swaps
4068 the order of the prefixes:</p>
4071 <dt class="hdlist1
"><code>git</code> <code>diff</code></dt>
4073 <p>compares the (i)ndex and the (w)ork tree;</p>
4075 <dt class="hdlist1
"><code>git</code> <code>diff</code> <code>HEAD</code></dt>
4077 <p>compares a (c)ommit and the (w)ork tree;</p>
4079 <dt class="hdlist1
"><code>git</code> <code>diff</code> <code>--cached</code></dt>
4081 <p>compares a (c)ommit and the (i)ndex;</p>
4083 <dt class="hdlist1
"><code>git</code> <code>diff</code> <code>HEAD:</code><em><file1></em> <em><file2></em></dt>
4085 <p>compares an (o)bject and a (w)ork tree entity;</p>
4087 <dt class="hdlist1
"><code>git</code> <code>diff</code> <code>--no-index</code> <em><a></em> <em><b></em></dt>
4089 <p>compares two non-git things <em><a></em> and <em><b></em>.</p>
4094 <dt class="hdlist1
"><code>diff.noPrefix</code></dt>
4096 <p>If set, <code>git</code> <code>diff</code> does not show any source or destination prefix.</p>
4098 <dt class="hdlist1
"><code>diff.srcPrefix</code></dt>
4100 <p>If set, <code>git</code> <code>diff</code> uses this source prefix. Defaults to <code>a/</code>.</p>
4102 <dt class="hdlist1
"><code>diff.dstPrefix</code></dt>
4104 <p>If set, <code>git</code> <code>diff</code> uses this destination prefix. Defaults to <code>b/</code>.</p>
4106 <dt class="hdlist1
"><code>diff.relative</code></dt>
4108 <p>If set to <code>true</code>, <code>git</code> <code>diff</code> does not show changes outside of the directory
4109 and show pathnames relative to the current directory.</p>
4111 <dt class="hdlist1
"><code>diff.orderFile</code></dt>
4113 <p>File indicating how to order files within a diff.
4114 See the <code>-O</code> option to <a href="git-diff.html
">git-diff(1)</a> for details.
4115 If <code>diff.orderFile</code> is a relative pathname, it is treated as
4116 relative to the top of the working tree.</p>
4118 <dt class="hdlist1
"><code>diff.renameLimit</code></dt>
4120 <p>The number of files to consider in the exhaustive portion of
4121 copy/rename detection; equivalent to the <code>git</code> <code>diff</code> option
4122 <code>-l</code>. If not set, the default value is currently 1000. This
4123 setting has no effect if rename detection is turned off.</p>
4125 <dt class="hdlist1
"><code>diff.renames</code></dt>
4127 <p>Whether and how Git detects renames. If set to <code>false</code>,
4128 rename detection is disabled. If set to <code>true</code>, basic rename
4129 detection is enabled. If set to <code>copies</code> or <code>copy</code>, Git will
4130 detect copies, as well. Defaults to <code>true</code>. Note that this
4131 affects only <code>git</code> <code>diff</code> Porcelain like <a href="git-diff.html
">git-diff(1)</a> and
4132 <a href="git-log.html
">git-log(1)</a>, and not lower level commands such as
4133 <a href="git-diff-files.html
">git-diff-files(1)</a>.</p>
4135 <dt class="hdlist1
"><code>diff.suppressBlankEmpty</code></dt>
4137 <p>A boolean to inhibit the standard behavior of printing a space
4138 before each empty output line. Defaults to <code>false</code>.</p>
4140 <dt class="hdlist1
"><code>diff.submodule</code></dt>
4142 <p>Specify the format in which differences in submodules are
4143 shown. The <code>short</code> format just shows the names of the commits
4144 at the beginning and end of the range. The <code>log</code> format lists
4145 the commits in the range like <a href="git-submodule.html
">git-submodule(1)</a> <code>summary</code>
4146 does. The <code>diff</code> format shows an inline diff of the changed
4147 contents of the submodule. Defaults to <code>short</code>.</p>
4149 <dt class="hdlist1
"><code>diff.wordRegex</code></dt>
4151 <p>A POSIX Extended Regular Expression used to determine what is a "word
"
4152 when performing word-by-word difference calculations. Character
4153 sequences that match the regular expression are "words
", all other
4154 characters are <strong>ignorable</strong> whitespace.</p>
4156 <dt class="hdlist1
"><code>diff.</code><em><driver></em><code>.command</code></dt>
4158 <p>The custom diff driver command. See <a href="gitattributes.html
">gitattributes(5)</a>
4161 <dt class="hdlist1
"><code>diff.</code><em><driver></em><code>.trustExitCode</code></dt>
4163 <p>If this boolean value is set to <code>true</code> then the
4164 <code>diff.</code><em><driver></em><code>.command</code> command is expected to return exit code
4165 0 if it considers the input files to be equal or 1 if it
4166 considers them to be different, like <code>diff</code>(1).
4167 If it is set to <code>false</code>, which is the default, then the command
4168 is expected to return exit code 0 regardless of equality.
4169 Any other exit code causes Git to report a fatal error.</p>
4171 <dt class="hdlist1
"><code>diff.</code><em><driver></em><code>.xfuncname</code></dt>
4173 <p>The regular expression that the diff driver should use to
4174 recognize the hunk header. A built-in pattern may also be used.
4175 See <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
4177 <dt class="hdlist1
"><code>diff.</code><em><driver></em><code>.binary</code></dt>
4179 <p>Set this option to <code>true</code> to make the diff driver treat files as
4180 binary. See <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
4182 <dt class="hdlist1
"><code>diff.</code><em><driver></em><code>.textconv</code></dt>
4184 <p>The command that the diff driver should call to generate the
4185 text-converted version of a file. The result of the
4186 conversion is used to generate a human-readable diff. See
4187 <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
4189 <dt class="hdlist1
"><code>diff.</code><em><driver></em><code>.wordRegex</code></dt>
4191 <p>The regular expression that the diff driver should use to
4192 split words in a line. See <a href="gitattributes.html
">gitattributes(5)</a> for
4195 <dt class="hdlist1
"><code>diff.</code><em><driver></em><code>.cachetextconv</code></dt>
4197 <p>Set this option to <code>true</code> to make the diff driver cache the text
4198 conversion outputs. See <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
4201 <dt class="hdlist1
"><code>araxis</code></dt>
4203 <p>Use Araxis Merge (requires a graphical session)</p>
4205 <dt class="hdlist1
"><code>bc</code></dt>
4207 <p>Use Beyond Compare (requires a graphical session)</p>
4209 <dt class="hdlist1
"><code>bc3</code></dt>
4211 <p>Use Beyond Compare (requires a graphical session)</p>
4213 <dt class="hdlist1
"><code>bc4</code></dt>
4215 <p>Use Beyond Compare (requires a graphical session)</p>
4217 <dt class="hdlist1
"><code>codecompare</code></dt>
4219 <p>Use Code Compare (requires a graphical session)</p>
4221 <dt class="hdlist1
"><code>deltawalker</code></dt>
4223 <p>Use DeltaWalker (requires a graphical session)</p>
4225 <dt class="hdlist1
"><code>diffmerge</code></dt>
4227 <p>Use DiffMerge (requires a graphical session)</p>
4229 <dt class="hdlist1
"><code>diffuse</code></dt>
4231 <p>Use Diffuse (requires a graphical session)</p>
4233 <dt class="hdlist1
"><code>ecmerge</code></dt>
4235 <p>Use ECMerge (requires a graphical session)</p>
4237 <dt class="hdlist1
"><code>emerge</code></dt>
4239 <p>Use Emacs' Emerge</p>
4241 <dt class="hdlist1
"><code>examdiff</code></dt>
4243 <p>Use ExamDiff Pro (requires a graphical session)</p>
4245 <dt class="hdlist1
"><code>guiffy</code></dt>
4247 <p>Use Guiffy’s Diff Tool (requires a graphical session)</p>
4249 <dt class="hdlist1
"><code>gvimdiff</code></dt>
4251 <p>Use gVim (requires a graphical session)</p>
4253 <dt class="hdlist1
"><code>kdiff3</code></dt>
4255 <p>Use KDiff3 (requires a graphical session)</p>
4257 <dt class="hdlist1
"><code>kompare</code></dt>
4259 <p>Use Kompare (requires a graphical session)</p>
4261 <dt class="hdlist1
"><code>meld</code></dt>
4263 <p>Use Meld (requires a graphical session)</p>
4265 <dt class="hdlist1
"><code>nvimdiff</code></dt>
4269 <dt class="hdlist1
"><code>opendiff</code></dt>
4271 <p>Use FileMerge (requires a graphical session)</p>
4273 <dt class="hdlist1
"><code>p4merge</code></dt>
4275 <p>Use HelixCore P4Merge (requires a graphical session)</p>
4277 <dt class="hdlist1
"><code>smerge</code></dt>
4279 <p>Use Sublime Merge (requires a graphical session)</p>
4281 <dt class="hdlist1
"><code>tkdiff</code></dt>
4283 <p>Use TkDiff (requires a graphical session)</p>
4285 <dt class="hdlist1
"><code>vimdiff</code></dt>
4289 <dt class="hdlist1
"><code>vscode</code></dt>
4291 <p>Use Visual Studio Code (requires a graphical session)</p>
4293 <dt class="hdlist1
"><code>winmerge</code></dt>
4295 <p>Use WinMerge (requires a graphical session)</p>
4297 <dt class="hdlist1
"><code>xxdiff</code></dt>
4299 <p>Use xxdiff (requires a graphical session)</p>
4304 <dt class="hdlist1
"><code>diff.indentHeuristic</code></dt>
4306 <p>Set this option to <code>false</code> to disable the default heuristics
4307 that shift diff hunk boundaries to make patches easier to read.</p>
4309 <dt class="hdlist1
"><code>diff.algorithm</code></dt>
4311 <p>Choose a diff algorithm. The variants are as follows:</p>
4312 <div class="openblock
">
4313 <div class="content
">
4316 <dt class="hdlist1
"><code>default</code></dt>
4317 <dt class="hdlist1
"><code>myers</code></dt>
4319 <p>The basic greedy diff algorithm. Currently, this is the default.</p>
4321 <dt class="hdlist1
"><code>minimal</code></dt>
4323 <p>Spend extra time to make sure the smallest possible diff is
4326 <dt class="hdlist1
"><code>patience</code></dt>
4328 <p>Use "patience diff
" algorithm when generating patches.</p>
4330 <dt class="hdlist1
"><code>histogram</code></dt>
4332 <p>This algorithm extends the patience algorithm to "support
4333 low-occurrence common elements
".</p>
4340 <dt class="hdlist1
"><code>diff.wsErrorHighlight</code></dt>
4342 <p>Highlight whitespace errors in the <code>context</code>, <code>old</code> or <code>new</code>
4343 lines of the diff. Multiple values are separated by comma,
4344 <code>none</code> resets previous values, <code>default</code> reset the list to
4345 <code>new</code> and <code>all</code> is a shorthand for <code>old,new,context</code>. The
4346 whitespace errors are colored with <code>color.diff.whitespace</code>.
4347 The command line option <code>--ws-error-highlight=</code><em><kind></em>
4348 overrides this setting.</p>
4350 <dt class="hdlist1
"><code>diff.colorMoved</code></dt>
4352 <p>If set to either a valid <em><mode></em> or a <code>true</code> value, moved lines
4353 in a diff are colored differently.
4354 For details of valid modes see <code>--color-moved</code> in <a href="git-diff.html
">git-diff(1)</a>.
4355 If simply set to <code>true</code> the default color mode will be used. When
4356 set to <code>false</code>, moved lines are not colored.</p>
4358 <dt class="hdlist1
"><code>diff.colorMovedWS</code></dt>
4360 <p>When moved lines are colored using e.g. the <code>diff.colorMoved</code> setting,
4361 this option controls the mode how spaces are treated.
4362 For details of valid modes see <code>--color-moved-ws</code> in <a href="git-diff.html
">git-diff(1)</a>.</p>
4364 <dt class="hdlist1
">diff.tool</dt>
4366 <p>Controls which diff tool is used by <a href="git-difftool.html
">git-difftool(1)</a>.
4367 This variable overrides the value configured in <code>merge.tool</code>.
4368 The list below shows the valid built-in values.
4369 Any other value is treated as a custom diff tool and requires
4370 that a corresponding difftool.<tool>.cmd variable is defined.</p>
4372 <dt class="hdlist1
">diff.guitool</dt>
4374 <p>Controls which diff tool is used by <a href="git-difftool.html
">git-difftool(1)</a> when
4375 the -g/--gui flag is specified. This variable overrides the value
4376 configured in <code>merge.guitool</code>. The list below shows the valid
4377 built-in values. Any other value is treated as a custom diff tool
4378 and requires that a corresponding difftool.<guitool>.cmd variable
4381 <dt class="hdlist1
">difftool.<tool>.cmd</dt>
4383 <p>Specify the command to invoke the specified diff tool.
4384 The specified command is evaluated in shell with the following
4385 variables available: <em>LOCAL</em> is set to the name of the temporary
4386 file containing the contents of the diff pre-image and <em>REMOTE</em>
4387 is set to the name of the temporary file containing the contents
4388 of the diff post-image.</p>
4389 <div class="paragraph
">
4390 <p>See the <code>--tool=</code><em><tool></em> option in <a href="git-difftool.html
">git-difftool(1)</a> for more details.</p>
4393 <dt class="hdlist1
">difftool.<tool>.path</dt>
4395 <p>Override the path for the given tool. This is useful in case
4396 your tool is not in the PATH.</p>
4398 <dt class="hdlist1
">difftool.trustExitCode</dt>
4400 <p>Exit difftool if the invoked diff tool returns a non-zero exit status.</p>
4401 <div class="paragraph
">
4402 <p>See the <code>--trust-exit-code</code> option in <a href="git-difftool.html
">git-difftool(1)</a> for more details.</p>
4405 <dt class="hdlist1
">difftool.prompt</dt>
4407 <p>Prompt before each invocation of the diff tool.</p>
4409 <dt class="hdlist1
">difftool.guiDefault</dt>
4411 <p>Set <code>true</code> to use the <code>diff.guitool</code> by default (equivalent to specifying
4412 the <code>--gui</code> argument), or <code>auto</code> to select <code>diff.guitool</code> or <code>diff.tool</code>
4413 depending on the presence of a <code>DISPLAY</code> environment variable value. The
4414 default is <code>false</code>, where the <code>--gui</code> argument must be provided
4415 explicitly for the <code>diff.guitool</code> to be used.</p>
4417 <dt class="hdlist1
">extensions.*</dt>
4419 <p>Unless otherwise stated, is an error to specify an extension if
4420 <code>core.repositoryFormatVersion</code> is not <code>1</code>. See
4421 <a href="gitrepository-layout.html
">gitrepository-layout(5)</a>.</p>
4422 <div class="openblock
">
4423 <div class="content
">
4426 <dt class="hdlist1
">compatObjectFormat</dt>
4428 <p>Specify a compatibility hash algorithm to use. The acceptable values
4429 are <code>sha1</code> and <code>sha256</code>. The value specified must be different from the
4430 value of <code>extensions.objectFormat</code>. This allows client level
4431 interoperability between git repositories whose objectFormat matches
4432 this compatObjectFormat. In particular when fully implemented the
4433 pushes and pulls from a repository in whose objectFormat matches
4434 compatObjectFormat. As well as being able to use oids encoded in
4435 compatObjectFormat in addition to oids encoded with objectFormat to
4436 locally specify objects.</p>
4438 <dt class="hdlist1
">noop</dt>
4440 <p>This extension does not change git’s behavior at all. It is useful only
4441 for testing format-1 compatibility.</p>
4442 <div class="paragraph
">
4443 <p>For historical reasons, this extension is respected regardless of the
4444 <code>core.repositoryFormatVersion</code> setting.</p>
4447 <dt class="hdlist1
">noop-v1</dt>
4449 <p>This extension does not change git’s behavior at all. It is useful only
4450 for testing format-1 compatibility.</p>
4452 <dt class="hdlist1
">objectFormat</dt>
4454 <p>Specify the hash algorithm to use. The acceptable values are <code>sha1</code> and
4455 <code>sha256</code>. If not specified, <code>sha1</code> is assumed.</p>
4456 <div class="paragraph
">
4457 <p>Note that this setting should only be set by <a href="git-init.html
">git-init(1)</a> or
4458 <a href="git-clone.html
">git-clone(1)</a>. Trying to change it after initialization will not
4459 work and will produce hard-to-diagnose issues.</p>
4462 <dt class="hdlist1
">partialClone</dt>
4464 <p>When enabled, indicates that the repo was created with a partial clone
4465 (or later performed a partial fetch) and that the remote may have
4466 omitted sending certain unwanted objects. Such a remote is called a
4467 "promisor remote
" and it promises that all such omitted objects can
4468 be fetched from it in the future.</p>
4469 <div class="paragraph
">
4470 <p>The value of this key is the name of the promisor remote.</p>
4472 <div class="paragraph
">
4473 <p>For historical reasons, this extension is respected regardless of the
4474 <code>core.repositoryFormatVersion</code> setting.</p>
4477 <dt class="hdlist1
">preciousObjects</dt>
4479 <p>If enabled, indicates that objects in the repository MUST NOT be deleted
4480 (e.g., by <code>git-prune</code> or <code>git</code> <code>repack</code> <code>-d</code>).</p>
4481 <div class="paragraph
">
4482 <p>For historical reasons, this extension is respected regardless of the
4483 <code>core.repositoryFormatVersion</code> setting.</p>
4486 <dt class="hdlist1
">refStorage</dt>
4488 <p>Specify the ref storage format to use. The acceptable values are:</p>
4492 <p><code>files</code> for loose files with packed-refs. This is the default.</p>
4495 <p><code>reftable</code> for the reftable format. This format is experimental and its
4496 internals are subject to change.</p>
4500 <div class="paragraph
">
4501 <p>Note that this setting should only be set by <a href="git-init.html
">git-init(1)</a> or
4502 <a href="git-clone.html
">git-clone(1)</a>. Trying to change it after initialization will not
4503 work and will produce hard-to-diagnose issues.</p>
4506 <dt class="hdlist1
">relativeWorktrees</dt>
4508 <p>If enabled, indicates at least one worktree has been linked with
4509 relative paths. Automatically set if a worktree has been created or
4510 repaired with either the <code>--relative-paths</code> option or with the
4511 <code>worktree.useRelativePaths</code> config set to <code>true</code>.</p>
4513 <dt class="hdlist1
">worktreeConfig</dt>
4515 <p>If enabled, then worktrees will load config settings from the
4516 <code>$GIT_DIR/config.worktree</code> file in addition to the
4517 <code>$GIT_COMMON_DIR/config</code> file. Note that <code>$GIT_COMMON_DIR</code> and
4518 <code>$GIT_DIR</code> are the same for the main working tree, while other
4519 working trees have <code>$GIT_DIR</code> equal to
4520 <code>$GIT_COMMON_DIR/worktrees/</code><em><id></em><code>/</code>. The settings in the
4521 <code>config.worktree</code> file will override settings from any other
4523 <div class="paragraph
">
4524 <p>When enabling this extension, you must be careful to move
4525 certain values from the common config file to the main working tree’s
4526 <code>config.worktree</code> file, if present:</p>
4531 <p><code>core.worktree</code> must be moved from <code>$GIT_COMMON_DIR/config</code> to
4532 <code>$GIT_COMMON_DIR/config.worktree</code>.</p>
4535 <p>If <code>core.bare</code> is true, then it must be moved from <code>$GIT_COMMON_DIR/config</code>
4536 to <code>$GIT_COMMON_DIR/config.worktree</code>.</p>
4540 <div class="paragraph
">
4541 <p>It may also be beneficial to adjust the locations of <code>core.sparseCheckout</code>
4542 and <code>core.sparseCheckoutCone</code> depending on your desire for customizable
4543 sparse-checkout settings for each worktree. By default, the <code>git</code>
4544 <code>sparse-checkout</code> builtin enables this extension, assigns
4545 these config values on a per-worktree basis, and uses the
4546 <code>$GIT_DIR/info/sparse-checkout</code> file to specify the sparsity for each
4547 worktree independently. See <a href="git-sparse-checkout.html
">git-sparse-checkout(1)</a> for more
4550 <div class="paragraph
">
4552 For historical reasons, this extension is respected regardless of the
4553 <code>core.repositoryFormatVersion</code> setting.</p>
4561 <dt class="hdlist1
">fastimport.unpackLimit</dt>
4563 <p>If the number of objects imported by <a href="git-fast-import.html
">git-fast-import(1)</a>
4564 is below this limit, then the objects will be unpacked into
4565 loose object files. However, if the number of imported objects
4566 equals or exceeds this limit, then the pack will be stored as a
4567 pack. Storing the pack from a fast-import can make the import
4568 operation complete faster, especially on slow filesystems. If
4569 not set, the value of <code>transfer.unpackLimit</code> is used instead.</p>
4571 <dt class="hdlist1
">feature.*</dt>
4573 <p>The config settings that start with <code>feature.</code> modify the defaults of
4574 a group of other config settings. These groups are created by the Git
4575 developer community as recommended defaults and are subject to change.
4576 In particular, new config options may be added with different defaults.</p>
4578 <dt class="hdlist1
">feature.experimental</dt>
4580 <p>Enable config options that are new to Git, and are being considered for
4581 future defaults. Config settings included here may be added or removed
4582 with each release, including minor version updates. These settings may
4583 have unintended interactions since they are so new. Please enable this
4584 setting if you are interested in providing feedback on experimental
4585 features. The new default values are:</p>
4589 <p><code>fetch.negotiationAlgorithm=skipping</code> may improve fetch negotiation times by
4590 skipping more commits at a time, reducing the number of round trips.</p>
4593 <p><code>pack.useBitmapBoundaryTraversal=true</code> may improve bitmap traversal times by
4594 walking fewer objects.</p>
4597 <p><code>pack.allowPackReuse=multi</code> may improve the time it takes to create a pack by
4598 reusing objects from multiple packs instead of just one.</p>
4603 <dt class="hdlist1
">feature.manyFiles</dt>
4605 <p>Enable config options that optimize for repos with many files in the
4606 working directory. With many files, commands such as <code>git</code> <code>status</code> and
4607 <code>git</code> <code>checkout</code> may be slow and these new defaults improve performance:</p>
4611 <p><code>index.skipHash=true</code> speeds up index writes by not computing a trailing
4612 checksum. Note that this will cause Git versions earlier than 2.13.0 to
4613 refuse to parse the index and Git versions earlier than 2.40.0 will report
4614 a corrupted index during <code>git</code> <code>fsck</code>.</p>
4617 <p><code>index.version=4</code> enables path-prefix compression in the index.</p>
4620 <p><code>core.untrackedCache=true</code> enables the untracked cache. This setting assumes
4621 that mtime is working on your machine.</p>
4626 <dt class="hdlist1
">fetch.recurseSubmodules</dt>
4628 <p>This option controls whether <code>git</code> <code>fetch</code> (and the underlying fetch
4629 in <code>git</code> <code>pull</code>) will recursively fetch into populated submodules.
4630 This option can be set either to a boolean value or to <em>on-demand</em>.
4631 Setting it to a boolean changes the behavior of fetch and pull to
4632 recurse unconditionally into submodules when set to true or to not
4633 recurse at all when set to false. When set to <em>on-demand</em>, fetch and
4634 pull will only recurse into a populated submodule when its
4635 superproject retrieves a commit that updates the submodule’s
4637 Defaults to <em>on-demand</em>, or to the value of <em>submodule.recurse</em> if set.</p>
4639 <dt class="hdlist1
">fetch.fsckObjects</dt>
4641 <p>If it is set to true, git-fetch-pack will check all fetched
4642 objects. See <code>transfer.fsckObjects</code> for what’s
4643 checked. Defaults to false. If not set, the value of
4644 <code>transfer.fsckObjects</code> is used instead.</p>
4646 <dt class="hdlist1
">fetch.fsck.<msg-id></dt>
4648 <p>Acts like <code>fsck.</code><em><msg-id></em>, but is used by
4649 <a href="git-fetch-pack.html
">git-fetch-pack(1)</a> instead of <a href="git-fsck.html
">git-fsck(1)</a>. See
4650 the <code>fsck.</code><em><msg-id></em> documentation for details.</p>
4652 <dt class="hdlist1
">fetch.fsck.skipList</dt>
4654 <p>Acts like <code>fsck.skipList</code>, but is used by
4655 <a href="git-fetch-pack.html
">git-fetch-pack(1)</a> instead of <a href="git-fsck.html
">git-fsck(1)</a>. See
4656 the <code>fsck.skipList</code> documentation for details.</p>
4658 <dt class="hdlist1
">fetch.unpackLimit</dt>
4660 <p>If the number of objects fetched over the Git native
4661 transfer is below this
4662 limit, then the objects will be unpacked into loose object
4663 files. However if the number of received objects equals or
4664 exceeds this limit then the received pack will be stored as
4665 a pack, after adding any missing delta bases. Storing the
4666 pack from a push can make the push operation complete faster,
4667 especially on slow filesystems. If not set, the value of
4668 <code>transfer.unpackLimit</code> is used instead.</p>
4670 <dt class="hdlist1
">fetch.prune</dt>
4672 <p>If true, fetch will automatically behave as if the <code>--prune</code>
4673 option was given on the command line. See also <code>remote.</code><em><name></em><code>.prune</code>
4674 and the PRUNING section of <a href="git-fetch.html
">git-fetch(1)</a>.</p>
4676 <dt class="hdlist1
">fetch.pruneTags</dt>
4678 <p>If true, fetch will automatically behave as if the
4679 <code>refs/tags/</code>*:refs/tags/* refspec was provided when pruning,
4680 if not set already. This allows for setting both this option
4681 and <code>fetch.prune</code> to maintain a 1=1 mapping to upstream
4682 refs. See also <code>remote.</code><em><name></em><code>.pruneTags</code> and the PRUNING
4683 section of <a href="git-fetch.html
">git-fetch(1)</a>.</p>
4685 <dt class="hdlist1
">fetch.all</dt>
4687 <p>If true, fetch will attempt to update all available remotes.
4688 This behavior can be overridden by passing <code>--no-all</code> or by
4689 explicitly specifying one or more remote(s) to fetch from.
4690 Defaults to false.</p>
4692 <dt class="hdlist1
">fetch.output</dt>
4694 <p>Control how ref update status is printed. Valid values are
4695 <code>full</code> and <code>compact</code>. Default value is <code>full</code>. See the
4696 OUTPUT section in <a href="git-fetch.html
">git-fetch(1)</a> for details.</p>
4698 <dt class="hdlist1
">fetch.negotiationAlgorithm</dt>
4700 <p>Control how information about the commits in the local repository
4701 is sent when negotiating the contents of the packfile to be sent by
4702 the server. Set to "consecutive
" to use an algorithm that walks
4703 over consecutive commits checking each one. Set to "skipping
" to
4704 use an algorithm that skips commits in an effort to converge
4705 faster, but may result in a larger-than-necessary packfile; or set
4706 to "noop
" to not send any information at all, which will almost
4707 certainly result in a larger-than-necessary packfile, but will skip
4708 the negotiation step. Set to "default
" to override settings made
4709 previously and use the default behaviour. The default is normally
4710 "consecutive
", but if <code>feature.experimental</code> is true, then the
4711 default is "skipping
". Unknown values will cause <em>git fetch</em> to
4713 <div class="paragraph
">
4714 <p>See also the <code>--negotiate-only</code> and <code>--negotiation-tip</code> options to
4715 <a href="git-fetch.html
">git-fetch(1)</a>.</p>
4718 <dt class="hdlist1
">fetch.showForcedUpdates</dt>
4720 <p>Set to false to enable <code>--no-show-forced-updates</code> in
4721 <a href="git-fetch.html
">git-fetch(1)</a> and <a href="git-pull.html
">git-pull(1)</a> commands.
4722 Defaults to true.</p>
4724 <dt class="hdlist1
">fetch.parallel</dt>
4726 <p>Specifies the maximal number of fetch operations to be run in parallel
4727 at a time (submodules, or remotes when the <code>--multiple</code> option of
4728 <a href="git-fetch.html
">git-fetch(1)</a> is in effect).</p>
4729 <div class="paragraph
">
4730 <p>A value of 0 will give some reasonable default. If unset, it defaults to 1.</p>
4732 <div class="paragraph
">
4733 <p>For submodules, this setting can be overridden using the <code>submodule.fetchJobs</code>
4737 <dt class="hdlist1
">fetch.writeCommitGraph</dt>
4739 <p>Set to true to write a commit-graph after every <code>git</code> <code>fetch</code> command
4740 that downloads a pack-file from a remote. Using the <code>--split</code> option,
4741 most executions will create a very small commit-graph file on top of
4742 the existing commit-graph file(s). Occasionally, these files will
4743 merge and the write may take longer. Having an updated commit-graph
4744 file helps performance of many Git commands, including <code>git</code> <code>merge-base</code>,
4745 <code>git</code> <code>push</code> <code>-f</code>, and <code>git</code> <code>log</code> <code>--graph</code>. Defaults to false.</p>
4747 <dt class="hdlist1
">fetch.bundleURI</dt>
4749 <p>This value stores a URI for downloading Git object data from a bundle
4750 URI before performing an incremental fetch from the origin Git server.
4751 This is similar to how the <code>--bundle-uri</code> option behaves in
4752 <a href="git-clone.html
">git-clone(1)</a>. <code>git</code> <code>clone</code> <code>--bundle-uri</code> will set the
4753 <code>fetch.bundleURI</code> value if the supplied bundle URI contains a bundle
4754 list that is organized for incremental fetches.</p>
4755 <div class="paragraph
">
4756 <p>If you modify this value and your repository has a <code>fetch.bundleCreationToken</code>
4757 value, then remove that <code>fetch.bundleCreationToken</code> value before fetching from
4758 the new bundle URI.</p>
4761 <dt class="hdlist1
">fetch.bundleCreationToken</dt>
4763 <p>When using <code>fetch.bundleURI</code> to fetch incrementally from a bundle
4764 list that uses the "creationToken
" heuristic, this config value
4765 stores the maximum <code>creationToken</code> value of the downloaded bundles.
4766 This value is used to prevent downloading bundles in the future
4767 if the advertised <code>creationToken</code> is not strictly larger than this
4769 <div class="paragraph
">
4770 <p>The creation token values are chosen by the provider serving the specific
4771 bundle URI. If you modify the URI at <code>fetch.bundleURI</code>, then be sure to
4772 remove the value for the <code>fetch.bundleCreationToken</code> value before fetching.</p>
4775 <dt class="hdlist1
">filter.<driver>.clean</dt>
4777 <p>The command which is used to convert the content of a worktree
4778 file to a blob upon checkin. See <a href="gitattributes.html
">gitattributes(5)</a> for
4781 <dt class="hdlist1
">filter.<driver>.smudge</dt>
4783 <p>The command which is used to convert the content of a blob
4784 object to a worktree file upon checkout. See
4785 <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
4787 <dt class="hdlist1
">format.attach</dt>
4789 <p>Enable multipart/mixed attachments as the default for
4790 <em>format-patch</em>. The value can also be a double quoted string
4791 which will enable attachments as the default and set the
4792 value as the boundary. See the --attach option in
4793 <a href="git-format-patch.html
">git-format-patch(1)</a>. To countermand an earlier
4794 value, set it to an empty string.</p>
4796 <dt class="hdlist1
">format.from</dt>
4798 <p>Provides the default value for the <code>--from</code> option to format-patch.
4799 Accepts a boolean value, or a name and email address. If false,
4800 format-patch defaults to <code>--no-from</code>, using commit authors directly in
4801 the "From:
" field of patch mails. If true, format-patch defaults to
4802 <code>--from</code>, using your committer identity in the "From:
" field of patch
4803 mails and including a "From:
" field in the body of the patch mail if
4804 different. If set to a non-boolean value, format-patch uses that
4805 value instead of your committer identity. Defaults to false.</p>
4807 <dt class="hdlist1
">format.forceInBodyFrom</dt>
4809 <p>Provides the default value for the <code>--</code>[<code>no-</code>]<code>force-in-body-from</code>
4810 option to format-patch. Defaults to false.</p>
4812 <dt class="hdlist1
">format.numbered</dt>
4814 <p>A boolean which can enable or disable sequence numbers in patch
4815 subjects. It defaults to "auto
" which enables it only if there
4816 is more than one patch. It can be enabled or disabled for all
4817 messages by setting it to "true
" or "false
". See --numbered
4818 option in <a href="git-format-patch.html
">git-format-patch(1)</a>.</p>
4820 <dt class="hdlist1
">format.headers</dt>
4822 <p>Additional email headers to include in a patch to be submitted
4823 by mail. See <a href="git-format-patch.html
">git-format-patch(1)</a>.</p>
4825 <dt class="hdlist1
">format.to</dt>
4826 <dt class="hdlist1
">format.cc</dt>
4828 <p>Additional recipients to include in a patch to be submitted
4829 by mail. See the --to and --cc options in
4830 <a href="git-format-patch.html
">git-format-patch(1)</a>.</p>
4832 <dt class="hdlist1
">format.subjectPrefix</dt>
4834 <p>The default for format-patch is to output files with the <em>[PATCH]</em>
4835 subject prefix. Use this variable to change that prefix.</p>
4837 <dt class="hdlist1
">format.coverFromDescription</dt>
4839 <p>The default mode for format-patch to determine which parts of
4840 the cover letter will be populated using the branch’s
4841 description. See the <code>--cover-from-description</code> option in
4842 <a href="git-format-patch.html
">git-format-patch(1)</a>.</p>
4844 <dt class="hdlist1
">format.signature</dt>
4846 <p>The default for format-patch is to output a signature containing
4847 the Git version number. Use this variable to change that default.
4848 Set this variable to the empty string ("") to suppress
4849 signature generation.</p>
4851 <dt class="hdlist1
">format.signatureFile</dt>
4853 <p>Works just like format.signature except the contents of the
4854 file specified by this variable will be used as the signature.</p>
4856 <dt class="hdlist1
">format.suffix</dt>
4858 <p>The default for format-patch is to output files with the suffix
4859 .<code>patch</code>. Use this variable to change that suffix (make sure to
4860 include the dot if you want it).</p>
4862 <dt class="hdlist1
">format.encodeEmailHeaders</dt>
4864 <p>Encode email headers that have non-ASCII characters with
4865 "Q-encoding
" (described in RFC 2047) for email transmission.
4866 Defaults to true.</p>
4868 <dt class="hdlist1
">format.pretty</dt>
4870 <p>The default pretty format for log/show/whatchanged command.
4871 See <a href="git-log.html
">git-log(1)</a>, <a href="git-show.html
">git-show(1)</a>,
4872 <a href="git-whatchanged.html
">git-whatchanged(1)</a>.</p>
4874 <dt class="hdlist1
">format.thread</dt>
4876 <p>The default threading style for <em>git format-patch</em>. Can be
4877 a boolean value, or <code>shallow</code> or <code>deep</code>. <code>shallow</code> threading
4878 makes every mail a reply to the head of the series,
4879 where the head is chosen from the cover letter, the
4880 <code>--in-reply-to</code>, and the first patch mail, in this order.
4881 <code>deep</code> threading makes every mail a reply to the previous one.
4882 A true boolean value is the same as <code>shallow</code>, and a false
4883 value disables threading.</p>
4885 <dt class="hdlist1
">format.signOff</dt>
4887 <p>A boolean value which lets you enable the <code>-s/--signoff</code> option of
4888 format-patch by default. <strong>Note:</strong> Adding the <code>Signed-off-by</code> trailer to a
4889 patch should be a conscious act and means that you certify you have
4890 the rights to submit this work under the same open source license.
4891 Please see the <em>SubmittingPatches</em> document for further discussion.</p>
4893 <dt class="hdlist1
">format.coverLetter</dt>
4895 <p>A boolean that controls whether to generate a cover-letter when
4896 format-patch is invoked, but in addition can be set to "auto
", to
4897 generate a cover-letter only when there’s more than one patch.
4898 Default is false.</p>
4900 <dt class="hdlist1
">format.outputDirectory</dt>
4902 <p>Set a custom directory to store the resulting files instead of the
4903 current working directory. All directory components will be created.</p>
4905 <dt class="hdlist1
">format.filenameMaxLength</dt>
4907 <p>The maximum length of the output filenames generated by the
4908 <code>format-patch</code> command; defaults to 64. Can be overridden
4909 by the <code>--filename-max-length=</code><em><n></em> command line option.</p>
4911 <dt class="hdlist1
">format.useAutoBase</dt>
4913 <p>A boolean value which lets you enable the <code>--base=auto</code> option of
4914 format-patch by default. Can also be set to "whenAble
" to allow
4915 enabling <code>--base=auto</code> if a suitable base is available, but to skip
4916 adding base info otherwise without the format dying.</p>
4918 <dt class="hdlist1
">format.notes</dt>
4920 <p>Provides the default value for the <code>--notes</code> option to
4921 format-patch. Accepts a boolean value, or a ref which specifies
4922 where to get notes. If false, format-patch defaults to
4923 <code>--no-notes</code>. If true, format-patch defaults to <code>--notes</code>. If
4924 set to a non-boolean value, format-patch defaults to
4925 <code>--notes=</code><em><ref></em>, where <code>ref</code> is the non-boolean value. Defaults
4927 <div class="paragraph
">
4928 <p>If one wishes to use the ref <code>refs/notes/true</code>, please use that literal
4931 <div class="paragraph
">
4932 <p>This configuration can be specified multiple times in order to allow
4933 multiple notes refs to be included. In that case, it will behave
4934 similarly to multiple <code>--</code>[<code>no-</code>]<code>notes</code>[<code>=</code>] options passed in. That is, a
4935 value of <code>true</code> will show the default notes, a value of <em><ref></em> will
4936 also show notes from that notes ref and a value of <code>false</code> will negate
4937 previous configurations and not show notes.</p>
4939 <div class="paragraph
">
4942 <div class="listingblock
">
4943 <div class="content
">
4951 <div class="paragraph
">
4952 <p>will only show notes from <code>refs/notes/bar</code>.</p>
4955 <dt class="hdlist1
">format.mboxrd</dt>
4957 <p>A boolean value which enables the robust "mboxrd
" format when
4958 <code>--stdout</code> is in use to escape "^
>+From
" lines.</p>
4960 <dt class="hdlist1
">format.noprefix</dt>
4962 <p>If set, do not show any source or destination prefix in patches.
4963 This is equivalent to the <code>diff.noprefix</code> option used by <code>git</code>
4964 <code>diff</code> (but which is not respected by <code>format-patch</code>). Note that
4965 by setting this, the receiver of any patches you generate will
4966 have to apply them using the <code>-p0</code> option.</p>
4968 <dt class="hdlist1
">fsck.<msg-id></dt>
4970 <p>During fsck git may find issues with legacy data which
4971 wouldn’t be generated by current versions of git, and which
4972 wouldn’t be sent over the wire if <code>transfer.fsckObjects</code> was
4973 set. This feature is intended to support working with legacy
4974 repositories containing such data.</p>
4975 <div class="paragraph
">
4976 <p>Setting <code>fsck.</code><em><msg-id></em> will be picked up by <a href="git-fsck.html
">git-fsck(1)</a>, but
4977 to accept pushes of such data set <code>receive.fsck.</code><em><msg-id></em> instead, or
4978 to clone or fetch it set <code>fetch.fsck.</code><em><msg-id></em>.</p>
4980 <div class="paragraph
">
4981 <p>The rest of the documentation discusses <code>fsck.</code>* for brevity, but the
4982 same applies for the corresponding <code>receive.fsck.</code>* and
4983 <code>fetch.fsck.</code>*. variables.</p>
4985 <div class="paragraph
">
4986 <p>Unlike variables like <code>color.ui</code> and <code>core.editor</code>, the
4987 <code>receive.fsck.</code><em><msg-id></em> and <code>fetch.fsck.</code><em><msg-id></em> variables will not
4988 fall back on the <code>fsck.</code><em><msg-id></em> configuration if they aren’t set. To
4989 uniformly configure the same fsck settings in different circumstances,
4990 all three of them must be set to the same values.</p>
4992 <div class="paragraph
">
4993 <p>When <code>fsck.</code><em><msg-id></em> is set, errors can be switched to warnings and
4994 vice versa by configuring the <code>fsck.</code><em><msg-id></em> setting where the
4995 <em><msg-id></em> is the fsck message ID and the value is one of <code>error</code>,
4996 <code>warn</code> or <code>ignore</code>. For convenience, fsck prefixes the error/warning
4997 with the message ID, e.g. "missingEmail: invalid author/committer
4998 line - missing email
" means that setting <code>fsck.missingEmail</code> <code>=</code> <code>ignore</code>
4999 will hide that issue.</p>
5001 <div class="paragraph
">
5002 <p>In general, it is better to enumerate existing objects with problems
5003 with <code>fsck.skipList</code>, instead of listing the kind of breakages these
5004 problematic objects share to be ignored, as doing the latter will
5005 allow new instances of the same breakages go unnoticed.</p>
5007 <div class="paragraph
">
5008 <p>Setting an unknown <code>fsck.</code><em><msg-id></em> value will cause fsck to die, but
5009 doing the same for <code>receive.fsck.</code><em><msg-id></em> and <code>fetch.fsck.</code><em><msg-id></em>
5010 will only cause git to warn.</p>
5012 <div class="paragraph
">
5013 <p>See the <code>Fsck</code> <code>Messages</code> section of <a href="git-fsck.html
">git-fsck(1)</a> for supported
5014 values of <em><msg-id></em>.</p>
5017 <dt class="hdlist1
">fsck.skipList</dt>
5019 <p>The path to a list of object names (i.e. one unabbreviated SHA-1 per
5020 line) that are known to be broken in a non-fatal way and should
5021 be ignored. On versions of Git 2.20 and later, comments (<em>#</em>), empty
5022 lines, and any leading and trailing whitespace are ignored. Everything
5023 but a SHA-1 per line will error out on older versions.</p>
5024 <div class="paragraph
">
5025 <p>This feature is useful when an established project should be accepted
5026 despite early commits containing errors that can be safely ignored,
5027 such as invalid committer email addresses. Note: corrupt objects
5028 cannot be skipped with this setting.</p>
5030 <div class="paragraph
">
5031 <p>Like <code>fsck.</code><em><msg-id></em> this variable has corresponding
5032 <code>receive.fsck.skipList</code> and <code>fetch.fsck.skipList</code> variants.</p>
5034 <div class="paragraph
">
5035 <p>Unlike variables like <code>color.ui</code> and <code>core.editor</code> the
5036 <code>receive.fsck.skipList</code> and <code>fetch.fsck.skipList</code> variables will not
5037 fall back on the <code>fsck.skipList</code> configuration if they aren’t set. To
5038 uniformly configure the same fsck settings in different circumstances,
5039 all three of them must be set to the same values.</p>
5041 <div class="paragraph
">
5042 <p>Older versions of Git (before 2.20) documented that the object names
5043 list should be sorted. This was never a requirement; the object names
5044 could appear in any order, but when reading the list we tracked whether
5045 the list was sorted for the purposes of an internal binary search
5046 implementation, which could save itself some work with an already sorted
5047 list. Unless you had a humongous list there was no reason to go out of
5048 your way to pre-sort the list. After Git version 2.20 a hash implementation
5049 is used instead, so there’s now no reason to pre-sort the list.</p>
5052 <dt class="hdlist1
">fsmonitor.allowRemote</dt>
5054 <p>By default, the fsmonitor daemon refuses to work with network-mounted
5055 repositories. Setting <code>fsmonitor.allowRemote</code> to <code>true</code> overrides this
5056 behavior. Only respected when <code>core.fsmonitor</code> is set to <code>true</code>.</p>
5058 <dt class="hdlist1
">fsmonitor.socketDir</dt>
5060 <p>This Mac OS-specific option, if set, specifies the directory in
5061 which to create the Unix domain socket used for communication
5062 between the fsmonitor daemon and various Git commands. The directory must
5063 reside on a native Mac OS filesystem. Only respected when <code>core.fsmonitor</code>
5064 is set to <code>true</code>.</p>
5066 <dt class="hdlist1
">gc.aggressiveDepth</dt>
5068 <p>The depth parameter used in the delta compression
5069 algorithm used by <em>git gc --aggressive</em>. This defaults
5070 to 50, which is the default for the <code>--depth</code> option when
5071 <code>--aggressive</code> isn’t in use.</p>
5072 <div class="paragraph
">
5073 <p>See the documentation for the <code>--depth</code> option in
5074 <a href="git-repack.html
">git-repack(1)</a> for more details.</p>
5077 <dt class="hdlist1
">gc.aggressiveWindow</dt>
5079 <p>The window size parameter used in the delta compression
5080 algorithm used by <em>git gc --aggressive</em>. This defaults
5081 to 250, which is a much more aggressive window size than
5082 the default <code>--window</code> of 10.</p>
5083 <div class="paragraph
">
5084 <p>See the documentation for the <code>--window</code> option in
5085 <a href="git-repack.html
">git-repack(1)</a> for more details.</p>
5088 <dt class="hdlist1
">gc.auto</dt>
5090 <p>When there are approximately more than this many loose
5091 objects in the repository, <code>git</code> <code>gc</code> <code>--auto</code> will pack them.
5092 Some Porcelain commands use this command to perform a
5093 light-weight garbage collection from time to time. The
5094 default value is 6700.</p>
5095 <div class="paragraph
">
5096 <p>Setting this to 0 disables not only automatic packing based on the
5097 number of loose objects, but also any other heuristic <code>git</code> <code>gc</code> <code>--auto</code> will
5098 otherwise use to determine if there’s work to do, such as
5099 <code>gc.autoPackLimit</code>.</p>
5102 <dt class="hdlist1
">gc.autoPackLimit</dt>
5104 <p>When there are more than this many packs that are not
5105 marked with *.<code>keep</code> file in the repository, <code>git</code> <code>gc</code>
5106 <code>--auto</code> consolidates them into one larger pack. The
5107 default value is 50. Setting this to 0 disables it.
5108 Setting <code>gc.auto</code> to 0 will also disable this.</p>
5109 <div class="paragraph
">
5110 <p>See the <code>gc.bigPackThreshold</code> configuration variable below. When in
5111 use, it’ll affect how the auto pack limit works.</p>
5114 <dt class="hdlist1
">gc.autoDetach</dt>
5116 <p>Make <code>git</code> <code>gc</code> <code>--auto</code> return immediately and run in the background
5117 if the system supports it. Default is true. This config variable acts
5118 as a fallback in case <code>maintenance.autoDetach</code> is not set.</p>
5120 <dt class="hdlist1
">gc.bigPackThreshold</dt>
5122 <p>If non-zero, all non-cruft packs larger than this limit are kept
5123 when <code>git</code> <code>gc</code> is run. This is very similar to
5124 <code>--keep-largest-pack</code> except that all non-cruft packs that meet
5125 the threshold are kept, not just the largest pack. Defaults to
5126 zero. Common unit suffixes of <em>k</em>, <em>m</em>, or <em>g</em> are supported.</p>
5127 <div class="paragraph
">
5128 <p>Note that if the number of kept packs is more than gc.autoPackLimit,
5129 this configuration variable is ignored, all packs except the base pack
5130 will be repacked. After this the number of packs should go below
5131 gc.autoPackLimit and gc.bigPackThreshold should be respected again.</p>
5133 <div class="paragraph
">
5134 <p>If the amount of memory estimated for <code>git</code> <code>repack</code> to run smoothly is
5135 not available and <code>gc.bigPackThreshold</code> is not set, the largest pack
5136 will also be excluded (this is the equivalent of running <code>git</code> <code>gc</code> with
5137 <code>--keep-largest-pack</code>).</p>
5140 <dt class="hdlist1
">gc.writeCommitGraph</dt>
5142 <p>If true, then gc will rewrite the commit-graph file when
5143 <a href="git-gc.html
">git-gc(1)</a> is run. When using <code>git</code> <code>gc</code> <code>--auto</code>
5144 the commit-graph will be updated if housekeeping is
5145 required. Default is true. See <a href="git-commit-graph.html
">git-commit-graph(1)</a>
5148 <dt class="hdlist1
">gc.logExpiry</dt>
5150 <p>If the file gc.log exists, then <code>git</code> <code>gc</code> <code>--auto</code> will print
5151 its content and exit with status zero instead of running
5152 unless that file is more than <em>gc.logExpiry</em> old. Default is
5153 "1.day
". See <code>gc.pruneExpire</code> for more ways to specify its
5156 <dt class="hdlist1
">gc.packRefs</dt>
5158 <p>Running <code>git</code> <code>pack-refs</code> in a repository renders it
5159 unclonable by Git versions prior to 1.5.1.2 over dumb
5160 transports such as HTTP. This variable determines whether
5161 <em>git gc</em> runs <code>git</code> <code>pack-refs</code>. This can be set to <code>notbare</code>
5162 to enable it within all non-bare repos or it can be set to a
5163 boolean value. The default is <code>true</code>.</p>
5165 <dt class="hdlist1
">gc.cruftPacks</dt>
5167 <p>Store unreachable objects in a cruft pack (see
5168 <a href="git-repack.html
">git-repack(1)</a>) instead of as loose objects. The default
5169 is <code>true</code>.</p>
5171 <dt class="hdlist1
">gc.maxCruftSize</dt>
5173 <p>Limit the size of new cruft packs when repacking. When
5174 specified in addition to <code>--max-cruft-size</code>, the command line
5175 option takes priority. See the <code>--max-cruft-size</code> option of
5176 <a href="git-repack.html
">git-repack(1)</a>.</p>
5178 <dt class="hdlist1
">gc.pruneExpire</dt>
5180 <p>When <em>git gc</em> is run, it will call <em>prune --expire 2.weeks.ago</em>
5181 (and <em>repack --cruft --cruft-expiration 2.weeks.ago</em> if using
5182 cruft packs via <code>gc.cruftPacks</code> or <code>--cruft</code>). Override the
5183 grace period with this config variable. The value "now
" may be
5184 used to disable this grace period and always prune unreachable
5185 objects immediately, or "never
" may be used to suppress pruning.
5186 This feature helps prevent corruption when <em>git gc</em> runs
5187 concurrently with another process writing to the repository; see
5188 the "NOTES
" section of <a href="git-gc.html
">git-gc(1)</a>.</p>
5190 <dt class="hdlist1
">gc.worktreePruneExpire</dt>
5192 <p>When <em>git gc</em> is run, it calls
5193 <em>git worktree prune --expire 3.months.ago</em>.
5194 This config variable can be used to set a different grace
5195 period. The value "now
" may be used to disable the grace
5196 period and prune <code>$GIT_DIR/worktrees</code> immediately, or "never
"
5197 may be used to suppress pruning.</p>
5199 <dt class="hdlist1
">gc.reflogExpire</dt>
5200 <dt class="hdlist1
">gc.<pattern>.reflogExpire</dt>
5202 <p><em>git reflog expire</em> removes reflog entries older than
5203 this time; defaults to 90 days. The value "now
" expires all
5204 entries immediately, and "never
" suppresses expiration
5205 altogether. With "<pattern
>" (e.g.
5206 "refs/stash
") in the middle the setting applies only to
5207 the refs that match the <pattern>.</p>
5209 <dt class="hdlist1
">gc.reflogExpireUnreachable</dt>
5210 <dt class="hdlist1
">gc.<pattern>.reflogExpireUnreachable</dt>
5212 <p><em>git reflog expire</em> removes reflog entries older than
5213 this time and are not reachable from the current tip;
5214 defaults to 30 days. The value "now
" expires all entries
5215 immediately, and "never
" suppresses expiration altogether.
5216 With "<pattern
>" (e.g. "refs/stash
")
5217 in the middle, the setting applies only to the refs that
5218 match the <pattern>.</p>
5219 <div class="paragraph
">
5220 <p>These types of entries are generally created as a result of using <code>git</code>
5221 <code>commit</code> <code>--amend</code> or <code>git</code> <code>rebase</code> and are the commits prior to the amend
5222 or rebase occurring. Since these changes are not part of the current
5223 project most users will want to expire them sooner, which is why the
5224 default is more aggressive than <code>gc.reflogExpire</code>.</p>
5227 <dt class="hdlist1
">gc.recentObjectsHook</dt>
5229 <p>When considering whether or not to remove an object (either when
5230 generating a cruft pack or storing unreachable objects as
5231 loose), use the shell to execute the specified command(s).
5232 Interpret their output as object IDs which Git will consider as
5233 "recent
", regardless of their age. By treating their mtimes as
5234 "now
", any objects (and their descendants) mentioned in the
5235 output will be kept regardless of their true age.</p>
5236 <div class="paragraph
">
5237 <p>Output must contain exactly one hex object ID per line, and nothing
5238 else. Objects which cannot be found in the repository are ignored.
5239 Multiple hooks are supported, but all must exit successfully, else the
5240 operation (either generating a cruft pack or unpacking unreachable
5241 objects) will be halted.</p>
5244 <dt class="hdlist1
">gc.repackFilter</dt>
5246 <p>When repacking, use the specified filter to move certain
5247 objects into a separate packfile. See the
5248 <code>--filter=</code><em><filter-spec></em> option of <a href="git-repack.html
">git-repack(1)</a>.</p>
5250 <dt class="hdlist1
">gc.repackFilterTo</dt>
5252 <p>When repacking and using a filter, see <code>gc.repackFilter</code>, the
5253 specified location will be used to create the packfile
5254 containing the filtered out objects. <strong>WARNING:</strong> The
5255 specified location should be accessible, using for example the
5256 Git alternates mechanism, otherwise the repo could be
5257 considered corrupt by Git as it might not be able to access the
5258 objects in that packfile. See the <code>--filter-to=</code><em><dir></em> option
5259 of <a href="git-repack.html
">git-repack(1)</a> and the <code>objects/info/alternates</code>
5260 section of <a href="gitrepository-layout.html
">gitrepository-layout(5)</a>.</p>
5262 <dt class="hdlist1
">gc.rerereResolved</dt>
5264 <p>Records of conflicted merge you resolved earlier are
5265 kept for this many days when <em>git rerere gc</em> is run.
5266 You can also use more human-readable "1.month.ago
", etc.
5267 The default is 60 days. See <a href="git-rerere.html
">git-rerere(1)</a>.</p>
5269 <dt class="hdlist1
">gc.rerereUnresolved</dt>
5271 <p>Records of conflicted merge you have not resolved are
5272 kept for this many days when <em>git rerere gc</em> is run.
5273 You can also use more human-readable "1.month.ago
", etc.
5274 The default is 15 days. See <a href="git-rerere.html
">git-rerere(1)</a>.</p>
5276 <dt class="hdlist1
">gitcvs.commitMsgAnnotation</dt>
5278 <p>Append this string to each commit message. Set to empty string
5279 to disable this feature. Defaults to "via git-CVS emulator
".</p>
5281 <dt class="hdlist1
">gitcvs.enabled</dt>
5283 <p>Whether the CVS server interface is enabled for this repository.
5284 See <a href="git-cvsserver.html
">git-cvsserver(1)</a>.</p>
5286 <dt class="hdlist1
">gitcvs.logFile</dt>
5288 <p>Path to a log file where the CVS server interface well…​ logs
5289 various stuff. See <a href="git-cvsserver.html
">git-cvsserver(1)</a>.</p>
5291 <dt class="hdlist1
">gitcvs.usecrlfattr</dt>
5293 <p>If true, the server will look up the end-of-line conversion
5294 attributes for files to determine the <code>-k</code> modes to use. If
5295 the attributes force Git to treat a file as text,
5296 the <code>-k</code> mode will be left blank so CVS clients will
5297 treat it as text. If they suppress text conversion, the file
5298 will be set with <em>-kb</em> mode, which suppresses any newline munging
5299 the client might otherwise do. If the attributes do not allow
5300 the file type to be determined, then <code>gitcvs.allBinary</code> is
5301 used. See <a href="gitattributes.html
">gitattributes(5)</a>.</p>
5303 <dt class="hdlist1
">gitcvs.allBinary</dt>
5305 <p>This is used if <code>gitcvs.usecrlfattr</code> does not resolve
5306 the correct <em>-kb</em> mode to use. If true, all
5307 unresolved files are sent to the client in
5308 mode <em>-kb</em>. This causes the client to treat them
5309 as binary files, which suppresses any newline munging it
5310 otherwise might do. Alternatively, if it is set to "guess
",
5311 then the contents of the file are examined to decide if
5312 it is binary, similar to <code>core.autocrlf</code>.</p>
5314 <dt class="hdlist1
">gitcvs.dbName</dt>
5316 <p>Database used by git-cvsserver to cache revision information
5317 derived from the Git repository. The exact meaning depends on the
5318 used database driver, for SQLite (which is the default driver) this
5319 is a filename. Supports variable substitution (see
5320 <a href="git-cvsserver.html
">git-cvsserver(1)</a> for details). May not contain semicolons (;).
5321 Default: <em>%Ggitcvs.%m.sqlite</em></p>
5323 <dt class="hdlist1
">gitcvs.dbDriver</dt>
5325 <p>Used Perl DBI driver. You can specify any available driver
5326 for this here, but it might not work. git-cvsserver is tested
5327 with <em>DBD::SQLite</em>, reported to work with <em>DBD::Pg</em>, and
5328 reported <strong>not</strong> to work with <em>DBD::mysql</em>. Experimental feature.
5329 May not contain double colons (<code>:</code>). Default: <em>SQLite</em>.
5330 See <a href="git-cvsserver.html
">git-cvsserver(1)</a>.</p>
5332 <dt class="hdlist1
">gitcvs.dbUser, gitcvs.dbPass</dt>
5334 <p>Database user and password. Only useful if setting <code>gitcvs.dbDriver</code>,
5335 since SQLite has no concept of database users and/or passwords.
5336 <em>gitcvs.dbUser</em> supports variable substitution (see
5337 <a href="git-cvsserver.html
">git-cvsserver(1)</a> for details).</p>
5339 <dt class="hdlist1
">gitcvs.dbTableNamePrefix</dt>
5341 <p>Database table name prefix. Prepended to the names of any
5342 database tables used, allowing a single database to be used
5343 for several repositories. Supports variable substitution (see
5344 <a href="git-cvsserver.html
">git-cvsserver(1)</a> for details). Any non-alphabetic
5345 characters will be replaced with underscores.</p>
5349 <div class="paragraph
">
5350 <p>All gitcvs variables except for <code>gitcvs.usecrlfattr</code> and
5351 <code>gitcvs.allBinary</code> can also be specified as
5352 <em>gitcvs.<access_method>.<varname></em> (where <em>access_method</em>
5353 is one of "ext
" and "pserver
") to make them apply only for the given
5358 <dt class="hdlist1
">gitweb.category</dt>
5359 <dt class="hdlist1
">gitweb.description</dt>
5360 <dt class="hdlist1
">gitweb.owner</dt>
5361 <dt class="hdlist1
">gitweb.url</dt>
5363 <p>See <a href="gitweb.html
">gitweb(1)</a> for description.</p>
5365 <dt class="hdlist1
">gitweb.avatar</dt>
5366 <dt class="hdlist1
">gitweb.blame</dt>
5367 <dt class="hdlist1
">gitweb.grep</dt>
5368 <dt class="hdlist1
">gitweb.highlight</dt>
5369 <dt class="hdlist1
">gitweb.patches</dt>
5370 <dt class="hdlist1
">gitweb.pickaxe</dt>
5371 <dt class="hdlist1
">gitweb.remote_heads</dt>
5372 <dt class="hdlist1
">gitweb.showSizes</dt>
5373 <dt class="hdlist1
">gitweb.snapshot</dt>
5375 <p>See <a href="gitweb.conf.html
">gitweb.conf(5)</a> for description.</p>
5377 <dt class="hdlist1
">gpg.program</dt>
5379 <p>Use this custom program instead of "<code>gpg
</code>" found on <code>$PATH</code> when
5380 making or verifying a PGP signature. The program must support the
5381 same command-line interface as GPG, namely, to verify a detached
5382 signature, "<code>gpg
</code> <code>--verify
</code> <code>$signature
</code> <code>-
</code> <$file
" is run, and the
5383 program is expected to signal a good signature by exiting with
5384 code 0. To generate an ASCII-armored detached signature, the
5385 standard input of "<code>gpg
</code> <code>-bsau
</code> <code>$key
</code>" is fed with the contents to be
5386 signed, and the program is expected to send the result to its
5387 standard output.</p>
5389 <dt class="hdlist1
">gpg.format</dt>
5391 <p>Specifies which key format to use when signing with <code>--gpg-sign</code>.
5392 Default is "openpgp
". Other possible values are "x509
", "ssh
".</p>
5393 <div class="paragraph
">
5394 <p>See <a href="gitformat-signature.html
">gitformat-signature(5)</a> for the signature format, which differs
5395 based on the selected <code>gpg.format</code>.</p>
5398 <dt class="hdlist1
">gpg.<format>.program</dt>
5400 <p>Use this to customize the program used for the signing format you
5401 chose. (see <code>gpg.program</code> and <code>gpg.format</code>) <code>gpg.program</code> can still
5402 be used as a legacy synonym for <code>gpg.openpgp.program</code>. The default
5403 value for <code>gpg.x509.program</code> is "gpgsm
" and <code>gpg.ssh.program</code> is "ssh-keygen
".</p>
5405 <dt class="hdlist1
">gpg.minTrustLevel</dt>
5407 <p>Specifies a minimum trust level for signature verification. If
5408 this option is unset, then signature verification for merge
5409 operations requires a key with at least <code>marginal</code> trust. Other
5410 operations that perform signature verification require a key
5411 with at least <code>undefined</code> trust. Setting this option overrides
5412 the required trust-level for all operations. Supported values,
5413 in increasing order of significance:</p>
5417 <p><code>undefined</code></p>
5420 <p><code>never</code></p>
5423 <p><code>marginal</code></p>
5426 <p><code>fully</code></p>
5429 <p><code>ultimate</code></p>
5434 <dt class="hdlist1
">gpg.ssh.defaultKeyCommand</dt>
5436 <p>This command will be run when user.signingkey is not set and a ssh
5437 signature is requested. On successful exit a valid ssh public key
5438 prefixed with <code>key::</code> is expected in the first line of its output.
5439 This allows for a script doing a dynamic lookup of the correct public
5440 key when it is impractical to statically configure <code>user.signingKey</code>.
5441 For example when keys or SSH Certificates are rotated frequently or
5442 selection of the right key depends on external factors unknown to git.</p>
5444 <dt class="hdlist1
">gpg.ssh.allowedSignersFile</dt>
5446 <p>A file containing ssh public keys which you are willing to trust.
5447 The file consists of one or more lines of principals followed by an ssh
5449 e.g.: <code>user1@example.com,user2@example.com</code> <code>ssh-rsa</code> <code>AAAAX1..</code>.
5450 See ssh-keygen(1) "ALLOWED SIGNERS
" for details.
5451 The principal is only used to identify the key and is available when
5452 verifying a signature.</p>
5453 <div class="paragraph
">
5454 <p>SSH has no concept of trust levels like gpg does. To be able to differentiate
5455 between valid signatures and trusted signatures the trust level of a signature
5456 verification is set to <code>fully</code> when the public key is present in the allowedSignersFile.
5457 Otherwise the trust level is <code>undefined</code> and git verify-commit/tag will fail.</p>
5459 <div class="paragraph
">
5460 <p>This file can be set to a location outside of the repository and every developer
5461 maintains their own trust store. A central repository server could generate this
5462 file automatically from ssh keys with push access to verify the code against.
5463 In a corporate setting this file is probably generated at a global location
5464 from automation that already handles developer ssh keys.</p>
5466 <div class="paragraph
">
5467 <p>A repository that only allows signed commits can store the file
5468 in the repository itself using a path relative to the top-level of the working tree.
5469 This way only committers with an already valid key can add or change keys in the keyring.</p>
5471 <div class="paragraph
">
5472 <p>Since OpensSSH 8.8 this file allows specifying a key lifetime using valid-after &
5473 valid-before options. Git will mark signatures as valid if the signing key was
5474 valid at the time of the signature’s creation. This allows users to change a
5475 signing key without invalidating all previously made signatures.</p>
5477 <div class="paragraph
">
5478 <p>Using a SSH CA key with the cert-authority option
5479 (see ssh-keygen(1) "CERTIFICATES
") is also valid.</p>
5482 <dt class="hdlist1
">gpg.ssh.revocationFile</dt>
5484 <p>Either a SSH KRL or a list of revoked public keys (without the principal prefix).
5485 See ssh-keygen(1) for details.
5486 If a public key is found in this file then it will always be treated
5487 as having trust level "never
" and signatures will show as invalid.</p>
5489 <dt class="hdlist1
">grep.lineNumber</dt>
5491 <p>If set to true, enable <code>-n</code> option by default.</p>
5493 <dt class="hdlist1
">grep.column</dt>
5495 <p>If set to true, enable the <code>--column</code> option by default.</p>
5497 <dt class="hdlist1
">grep.patternType</dt>
5499 <p>Set the default matching behavior. Using a value of <em>basic</em>, <em>extended</em>,
5500 <em>fixed</em>, or <em>perl</em> will enable the <code>--basic-regexp</code>, <code>--extended-regexp</code>,
5501 <code>--fixed-strings</code>, or <code>--perl-regexp</code> option accordingly, while the
5502 value <em>default</em> will use the <code>grep.extendedRegexp</code> option to choose
5503 between <em>basic</em> and <em>extended</em>.</p>
5505 <dt class="hdlist1
">grep.extendedRegexp</dt>
5507 <p>If set to true, enable <code>--extended-regexp</code> option by default. This
5508 option is ignored when the <code>grep.patternType</code> option is set to a value
5509 other than <em>default</em>.</p>
5511 <dt class="hdlist1
">grep.threads</dt>
5513 <p>Number of grep worker threads to use. If unset (or set to 0), Git will
5514 use as many threads as the number of logical cores available.</p>
5516 <dt class="hdlist1
">grep.fullName</dt>
5518 <p>If set to true, enable <code>--full-name</code> option by default.</p>
5520 <dt class="hdlist1
">grep.fallbackToNoIndex</dt>
5522 <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>
5523 is executed outside of a git repository. Defaults to false.</p>
5525 <dt class="hdlist1
">gui.commitMsgWidth</dt>
5527 <p>Defines how wide the commit message window is in the
5528 <a href="git-gui.html
">git-gui(1)</a>. "75" is the default.</p>
5530 <dt class="hdlist1
">gui.diffContext</dt>
5532 <p>Specifies how many context lines should be used in calls to diff
5533 made by the <a href="git-gui.html
">git-gui(1)</a>. The default is "5".</p>
5535 <dt class="hdlist1
">gui.displayUntracked</dt>
5537 <p>Determines if <a href="git-gui.html
">git-gui(1)</a> shows untracked files
5538 in the file list. The default is "true
".</p>
5540 <dt class="hdlist1
">gui.encoding</dt>
5542 <p>Specifies the default character encoding to use for displaying of
5543 file contents in <a href="git-gui.html
">git-gui(1)</a> and <a href="gitk.html
">gitk(1)</a>.
5544 It can be overridden by setting the <em>encoding</em> attribute
5545 for relevant files (see <a href="gitattributes.html
">gitattributes(5)</a>).
5546 If this option is not set, the tools default to the
5547 locale encoding.</p>
5549 <dt class="hdlist1
">gui.matchTrackingBranch</dt>
5551 <p>Determines if new branches created with <a href="git-gui.html
">git-gui(1)</a> should
5552 default to tracking remote branches with matching names or
5553 not. Default: "false
".</p>
5555 <dt class="hdlist1
">gui.newBranchTemplate</dt>
5557 <p>Is used as a suggested name when creating new branches using the
5558 <a href="git-gui.html
">git-gui(1)</a>.</p>
5560 <dt class="hdlist1
">gui.pruneDuringFetch</dt>
5562 <p>"true
" if <a href="git-gui.html
">git-gui(1)</a> should prune remote-tracking branches when
5563 performing a fetch. The default value is "false
".</p>
5565 <dt class="hdlist1
">gui.trustmtime</dt>
5567 <p>Determines if <a href="git-gui.html
">git-gui(1)</a> should trust the file modification
5568 timestamp or not. By default the timestamps are not trusted.</p>
5570 <dt class="hdlist1
">gui.spellingDictionary</dt>
5572 <p>Specifies the dictionary used for spell checking commit messages in
5573 the <a href="git-gui.html
">git-gui(1)</a>. When set to "none
" spell checking is turned
5576 <dt class="hdlist1
">gui.fastCopyBlame</dt>
5578 <p>If true, <em>git gui blame</em> uses <code>-C</code> instead of <code>-C</code> <code>-C</code> for original
5579 location detection. It makes blame significantly faster on huge
5580 repositories at the expense of less thorough copy detection.</p>
5582 <dt class="hdlist1
">gui.copyBlameThreshold</dt>
5584 <p>Specifies the threshold to use in <em>git gui blame</em> original location
5585 detection, measured in alphanumeric characters. See the
5586 <a href="git-blame.html
">git-blame(1)</a> manual for more information on copy detection.</p>
5588 <dt class="hdlist1
">gui.blamehistoryctx</dt>
5590 <p>Specifies the radius of history context in days to show in
5591 <a href="gitk.html
">gitk(1)</a> for the selected commit, when the <code>Show</code> <code>History</code>
5592 <code>Context</code> menu item is invoked from <em>git gui blame</em>. If this
5593 variable is set to zero, the whole history is shown.</p>
5595 <dt class="hdlist1
">guitool.<name>.cmd</dt>
5597 <p>Specifies the shell command line to execute when the corresponding item
5598 of the <a href="git-gui.html
">git-gui(1)</a> <code>Tools</code> menu is invoked. This option is
5599 mandatory for every tool. The command is executed from the root of
5600 the working directory, and in the environment it receives the name of
5601 the tool as <code>GIT_GUITOOL</code>, the name of the currently selected file as
5602 <em>FILENAME</em>, and the name of the current branch as <em>CUR_BRANCH</em> (if
5603 the head is detached, <em>CUR_BRANCH</em> is empty).</p>
5605 <dt class="hdlist1
">guitool.<name>.needsFile</dt>
5607 <p>Run the tool only if a diff is selected in the GUI. It guarantees
5608 that <em>FILENAME</em> is not empty.</p>
5610 <dt class="hdlist1
">guitool.<name>.noConsole</dt>
5612 <p>Run the command silently, without creating a window to display its
5615 <dt class="hdlist1
">guitool.<name>.noRescan</dt>
5617 <p>Don’t rescan the working directory for changes after the tool
5618 finishes execution.</p>
5620 <dt class="hdlist1
">guitool.<name>.confirm</dt>
5622 <p>Show a confirmation dialog before actually running the tool.</p>
5624 <dt class="hdlist1
">guitool.<name>.argPrompt</dt>
5626 <p>Request a string argument from the user, and pass it to the tool
5627 through the <code>ARGS</code> environment variable. Since requesting an
5628 argument implies confirmation, the <em>confirm</em> option has no effect
5629 if this is enabled. If the option is set to <em>true</em>, <em>yes</em>, or <em>1</em>,
5630 the dialog uses a built-in generic prompt; otherwise the exact
5631 value of the variable is used.</p>
5633 <dt class="hdlist1
">guitool.<name>.revPrompt</dt>
5635 <p>Request a single valid revision from the user, and set the
5636 <code>REVISION</code> environment variable. In other aspects this option
5637 is similar to <em>argPrompt</em>, and can be used together with it.</p>
5639 <dt class="hdlist1
">guitool.<name>.revUnmerged</dt>
5641 <p>Show only unmerged branches in the <em>revPrompt</em> subdialog.
5642 This is useful for tools similar to merge or rebase, but not
5643 for things like checkout or reset.</p>
5645 <dt class="hdlist1
">guitool.<name>.title</dt>
5647 <p>Specifies the title to use for the prompt dialog. The default
5648 is the tool name.</p>
5650 <dt class="hdlist1
">guitool.<name>.prompt</dt>
5652 <p>Specifies the general prompt string to display at the top of
5653 the dialog, before subsections for <em>argPrompt</em> and <em>revPrompt</em>.
5654 The default value includes the actual command.</p>
5656 <dt class="hdlist1
">help.browser</dt>
5658 <p>Specify the browser that will be used to display help in the
5659 <em>web</em> format. See <a href="git-help.html
">git-help(1)</a>.</p>
5661 <dt class="hdlist1
">help.format</dt>
5663 <p>Override the default help format used by <a href="git-help.html
">git-help(1)</a>.
5664 Values <em>man</em>, <em>info</em>, <em>web</em> and <em>html</em> are supported. <em>man</em> is
5665 the default. <em>web</em> and <em>html</em> are the same.</p>
5667 <dt class="hdlist1
">help.autoCorrect</dt>
5669 <p>If git detects typos and can identify exactly one valid command similar
5670 to the error, git will try to suggest the correct command or even
5671 run the suggestion automatically. Possible config values are:</p>
5675 <p>0 (default): show the suggested command.</p>
5678 <p>positive number: run the suggested command after specified
5679 deciseconds (0.1 sec).</p>
5682 <p>"immediate
": run the suggested command immediately.</p>
5685 <p>"prompt
": show the suggestion and prompt for confirmation to run
5689 <p>"never
": don’t run or show any suggested command.</p>
5694 <dt class="hdlist1
">help.htmlPath</dt>
5696 <p>Specify the path where the HTML documentation resides. File system paths
5697 and URLs are supported. HTML pages will be prefixed with this path when
5698 help is displayed in the <em>web</em> format. This defaults to the documentation
5699 path of your Git installation.</p>
5701 <dt class="hdlist1
">http.proxy</dt>
5703 <p>Override the HTTP proxy, normally configured using the <em>http_proxy</em>,
5704 <em>https_proxy</em>, and <em>all_proxy</em> environment variables (see <code>curl</code>(<code>1</code>)). In
5705 addition to the syntax understood by curl, it is possible to specify a
5706 proxy string with a user name but no password, in which case git will
5707 attempt to acquire one in the same way it does for other credentials. See
5708 <a href="gitcredentials.html
">gitcredentials(7)</a> for more information. The syntax thus is
5709 <em>[protocol://][user[:password]@]proxyhost[:port][/path]</em>. This can be
5710 overridden on a per-remote basis; see remote.<name>.proxy</p>
5711 <div class="paragraph
">
5712 <p>Any proxy, however configured, must be completely transparent and must not
5713 modify, transform, or buffer the request or response in any way. Proxies which
5714 are not completely transparent are known to cause various forms of breakage
5718 <dt class="hdlist1
">http.proxyAuthMethod</dt>
5720 <p>Set the method with which to authenticate against the HTTP proxy. This
5721 only takes effect if the configured proxy string contains a user name part
5722 (i.e. is of the form <em>user@host</em> or <em>user@host:port</em>). This can be
5723 overridden on a per-remote basis; see <code>remote.</code><em><name></em><code>.proxyAuthMethod</code>.
5724 Both can be overridden by the <code>GIT_HTTP_PROXY_AUTHMETHOD</code> environment
5725 variable. Possible values are:</p>
5726 <div class="openblock
">
5727 <div class="content
">
5731 <p><code>anyauth</code> - Automatically pick a suitable authentication method. It is
5732 assumed that the proxy answers an unauthenticated request with a 407
5733 status code and one or more Proxy-authenticate headers with supported
5734 authentication methods. This is the default.</p>
5737 <p><code>basic</code> - HTTP Basic authentication</p>
5740 <p><code>digest</code> - HTTP Digest authentication; this prevents the password from being
5741 transmitted to the proxy in clear text</p>
5744 <p><code>negotiate</code> - GSS-Negotiate authentication (compare the --negotiate option
5745 of <code>curl</code>(<code>1</code>))</p>
5748 <p><code>ntlm</code> - NTLM authentication (compare the --ntlm option of <code>curl</code>(<code>1</code>))</p>
5755 <dt class="hdlist1
">http.proxySSLCert</dt>
5757 <p>The pathname of a file that stores a client certificate to use to authenticate
5758 with an HTTPS proxy. Can be overridden by the <code>GIT_PROXY_SSL_CERT</code> environment
5761 <dt class="hdlist1
">http.proxySSLKey</dt>
5763 <p>The pathname of a file that stores a private key to use to authenticate with
5764 an HTTPS proxy. Can be overridden by the <code>GIT_PROXY_SSL_KEY</code> environment
5767 <dt class="hdlist1
">http.proxySSLCertPasswordProtected</dt>
5769 <p>Enable Git’s password prompt for the proxy SSL certificate. Otherwise OpenSSL
5770 will prompt the user, possibly many times, if the certificate or private key
5771 is encrypted. Can be overridden by the <code>GIT_PROXY_SSL_CERT_PASSWORD_PROTECTED</code>
5772 environment variable.</p>
5774 <dt class="hdlist1
">http.proxySSLCAInfo</dt>
5776 <p>Pathname to the file containing the certificate bundle that should be used to
5777 verify the proxy with when using an HTTPS proxy. Can be overridden by the
5778 <code>GIT_PROXY_SSL_CAINFO</code> environment variable.</p>
5780 <dt class="hdlist1
">http.emptyAuth</dt>
5782 <p>Attempt authentication without seeking a username or password. This
5783 can be used to attempt GSS-Negotiate authentication without specifying
5784 a username in the URL, as libcurl normally requires a username for
5787 <dt class="hdlist1
">http.proactiveAuth</dt>
5789 <p>Attempt authentication without first making an unauthenticated attempt and
5790 receiving a 401 response. This can be used to ensure that all requests are
5791 authenticated. If <code>http.emptyAuth</code> is set to true, this value has no effect.</p>
5792 <div class="paragraph
">
5793 <p>If the credential helper used specifies an authentication scheme (i.e., via the
5794 <code>authtype</code> field), that value will be used; if a username and password is
5795 provided without a scheme, then Basic authentication is used. The value of the
5796 option determines the scheme requested from the helper. Possible values are:</p>
5798 <div class="openblock
">
5799 <div class="content
">
5803 <p><code>basic</code> - Request Basic authentication from the helper.</p>
5806 <p><code>auto</code> - Allow the helper to pick an appropriate scheme.</p>
5809 <p><code>none</code> - Disable proactive authentication.</p>
5815 <div class="paragraph
">
5816 <p>Note that TLS should always be used with this configuration, since otherwise it
5817 is easy to accidentally expose plaintext credentials if Basic authentication
5821 <dt class="hdlist1
">http.delegation</dt>
5823 <p>Control GSSAPI credential delegation. The delegation is disabled
5824 by default in libcurl since version 7.21.7. Set parameter to tell
5825 the server what it is allowed to delegate when it comes to user
5826 credentials. Used with GSS/kerberos. Possible values are:</p>
5827 <div class="openblock
">
5828 <div class="content
">
5832 <p><code>none</code> - Don’t allow any delegation.</p>
5835 <p><code>policy</code> - Delegates if and only if the OK-AS-DELEGATE flag is set in the
5836 Kerberos service ticket, which is a matter of realm policy.</p>
5839 <p><code>always</code> - Unconditionally allow the server to delegate.</p>
5846 <dt class="hdlist1
">http.extraHeader</dt>
5848 <p>Pass an additional HTTP header when communicating with a server. If
5849 more than one such entry exists, all of them are added as extra
5850 headers. To allow overriding the settings inherited from the system
5851 config, an empty value will reset the extra headers to the empty list.</p>
5853 <dt class="hdlist1
">http.cookieFile</dt>
5855 <p>The pathname of a file containing previously stored cookie lines,
5856 which should be used
5857 in the Git http session, if they match the server. The file format
5858 of the file to read cookies from should be plain HTTP headers or
5859 the Netscape/Mozilla cookie file format (see <code>curl</code>(<code>1</code>)).
5860 Set it to an empty string, to accept only new cookies from
5861 the server and send them back in successive requests within same
5863 NOTE that the file specified with http.cookieFile is used only as
5864 input unless http.saveCookies is set.</p>
5866 <dt class="hdlist1
">http.saveCookies</dt>
5868 <p>If set, store cookies received during requests to the file specified by
5869 http.cookieFile. Has no effect if http.cookieFile is unset, or set to
5870 an empty string.</p>
5872 <dt class="hdlist1
">http.version</dt>
5874 <p>Use the specified HTTP protocol version when communicating with a server.
5875 If you want to force the default. The available and default version depend
5876 on libcurl. Currently the possible values of
5877 this option are:</p>
5889 <dt class="hdlist1
">http.curloptResolve</dt>
5891 <p>Hostname resolution information that will be used first by
5892 libcurl when sending HTTP requests. This information should
5893 be in one of the following formats:</p>
5897 <p>[+]HOST:PORT:ADDRESS[,ADDRESS]</p>
5904 <div class="paragraph
">
5905 <p>The first format redirects all requests to the given <code>HOST:PORT</code>
5906 to the provided <code>ADDRESS</code>(s). The second format clears all
5907 previous config values for that <code>HOST:PORT</code> combination. To
5908 allow easy overriding of all the settings inherited from the
5909 system config, an empty value will reset all resolution
5910 information to the empty list.</p>
5913 <dt class="hdlist1
">http.sslVersion</dt>
5915 <p>The SSL version to use when negotiating an SSL connection, if you
5916 want to force the default. The available and default version
5917 depend on whether libcurl was built against NSS or OpenSSL and the
5918 particular configuration of the crypto library in use. Internally
5919 this sets the <em>CURLOPT_SSL_VERSION</em> option; see the libcurl
5920 documentation for more details on the format of this option and
5921 for the ssl version supported. Currently the possible values of
5922 this option are:</p>
5948 <div class="paragraph
">
5949 <p>Can be overridden by the <code>GIT_SSL_VERSION</code> environment variable.
5950 To force git to use libcurl’s default ssl version and ignore any
5951 explicit http.sslversion option, set <code>GIT_SSL_VERSION</code> to the
5955 <dt class="hdlist1
">http.sslCipherList</dt>
5957 <p>A list of SSL ciphers to use when negotiating an SSL connection.
5958 The available ciphers depend on whether libcurl was built against
5959 NSS or OpenSSL and the particular configuration of the crypto
5960 library in use. Internally this sets the <em>CURLOPT_SSL_CIPHER_LIST</em>
5961 option; see the libcurl documentation for more details on the format
5963 <div class="paragraph
">
5964 <p>Can be overridden by the <code>GIT_SSL_CIPHER_LIST</code> environment variable.
5965 To force git to use libcurl’s default cipher list and ignore any
5966 explicit http.sslCipherList option, set <code>GIT_SSL_CIPHER_LIST</code> to the
5970 <dt class="hdlist1
">http.sslVerify</dt>
5972 <p>Whether to verify the SSL certificate when fetching or pushing
5973 over HTTPS. Defaults to true. Can be overridden by the
5974 <code>GIT_SSL_NO_VERIFY</code> environment variable.</p>
5976 <dt class="hdlist1
">http.sslCert</dt>
5978 <p>File containing the SSL certificate when fetching or pushing
5979 over HTTPS. Can be overridden by the <code>GIT_SSL_CERT</code> environment
5982 <dt class="hdlist1
">http.sslKey</dt>
5984 <p>File containing the SSL private key when fetching or pushing
5985 over HTTPS. Can be overridden by the <code>GIT_SSL_KEY</code> environment
5988 <dt class="hdlist1
">http.sslCertPasswordProtected</dt>
5990 <p>Enable Git’s password prompt for the SSL certificate. Otherwise
5991 OpenSSL will prompt the user, possibly many times, if the
5992 certificate or private key is encrypted. Can be overridden by the
5993 <code>GIT_SSL_CERT_PASSWORD_PROTECTED</code> environment variable.</p>
5995 <dt class="hdlist1
">http.sslCAInfo</dt>
5997 <p>File containing the certificates to verify the peer with when
5998 fetching or pushing over HTTPS. Can be overridden by the
5999 <code>GIT_SSL_CAINFO</code> environment variable.</p>
6001 <dt class="hdlist1
">http.sslCAPath</dt>
6003 <p>Path containing files with the CA certificates to verify the peer
6004 with when fetching or pushing over HTTPS. Can be overridden
6005 by the <code>GIT_SSL_CAPATH</code> environment variable.</p>
6007 <dt class="hdlist1
">http.sslBackend</dt>
6009 <p>Name of the SSL backend to use (e.g. "openssl
" or "schannel
").
6010 This option is ignored if cURL lacks support for choosing the SSL
6011 backend at runtime.</p>
6013 <dt class="hdlist1
">http.schannelCheckRevoke</dt>
6015 <p>Used to enforce or disable certificate revocation checks in cURL
6016 when http.sslBackend is set to "schannel
". Defaults to <code>true</code> if
6017 unset. Only necessary to disable this if Git consistently errors
6018 and the message is about checking the revocation status of a
6019 certificate. This option is ignored if cURL lacks support for
6020 setting the relevant SSL option at runtime.</p>
6022 <dt class="hdlist1
">http.schannelUseSSLCAInfo</dt>
6024 <p>As of cURL v7.60.0, the Secure Channel backend can use the
6025 certificate bundle provided via <code>http.sslCAInfo</code>, but that would
6026 override the Windows Certificate Store. Since this is not desirable
6027 by default, Git will tell cURL not to use that bundle by default
6028 when the <code>schannel</code> backend was configured via <code>http.sslBackend</code>,
6029 unless <code>http.schannelUseSSLCAInfo</code> overrides this behavior.</p>
6031 <dt class="hdlist1
">http.pinnedPubkey</dt>
6033 <p>Public key of the https service. It may either be the filename of
6034 a PEM or DER encoded public key file or a string starting with
6035 <em>sha256//</em> followed by the base64 encoded sha256 hash of the
6036 public key. See also libcurl <em>CURLOPT_PINNEDPUBLICKEY</em>. git will
6037 exit with an error if this option is set but not supported by
6040 <dt class="hdlist1
">http.sslTry</dt>
6042 <p>Attempt to use AUTH SSL/TLS and encrypted data transfers
6043 when connecting via regular FTP protocol. This might be needed
6044 if the FTP server requires it for security reasons or you wish
6045 to connect securely whenever remote FTP server supports it.
6046 Default is false since it might trigger certificate verification
6047 errors on misconfigured servers.</p>
6049 <dt class="hdlist1
">http.maxRequests</dt>
6051 <p>How many HTTP requests to launch in parallel. Can be overridden
6052 by the <code>GIT_HTTP_MAX_REQUESTS</code> environment variable. Default is 5.</p>
6054 <dt class="hdlist1
">http.minSessions</dt>
6056 <p>The number of curl sessions (counted across slots) to be kept across
6057 requests. They will not be ended with curl_easy_cleanup() until
6058 http_cleanup() is invoked. If USE_CURL_MULTI is not defined, this
6059 value will be capped at 1. Defaults to 1.</p>
6061 <dt class="hdlist1
">http.postBuffer</dt>
6063 <p>Maximum size in bytes of the buffer used by smart HTTP
6064 transports when POSTing data to the remote system.
6065 For requests larger than this buffer size, HTTP/1.1 and
6066 Transfer-Encoding: chunked is used to avoid creating a
6067 massive pack file locally. Default is 1 MiB, which is
6068 sufficient for most requests.</p>
6069 <div class="paragraph
">
6070 <p>Note that raising this limit is only effective for disabling chunked
6071 transfer encoding and therefore should be used only where the remote
6072 server or a proxy only supports HTTP/1.0 or is noncompliant with the
6073 HTTP standard. Raising this is not, in general, an effective solution
6074 for most push problems, but can increase memory consumption
6075 significantly since the entire buffer is allocated even for small
6079 <dt class="hdlist1
">http.lowSpeedLimit, http.lowSpeedTime</dt>
6081 <p>If the HTTP transfer speed, in bytes per second, is less than
6082 <em>http.lowSpeedLimit</em> for longer than <em>http.lowSpeedTime</em> seconds,
6083 the transfer is aborted.
6084 Can be overridden by the <code>GIT_HTTP_LOW_SPEED_LIMIT</code> and
6085 <code>GIT_HTTP_LOW_SPEED_TIME</code> environment variables.</p>
6087 <dt class="hdlist1
">http.noEPSV</dt>
6089 <p>A boolean which disables using of EPSV ftp command by curl.
6090 This can be helpful with some "poor
" ftp servers which don’t
6091 support EPSV mode. Can be overridden by the <code>GIT_CURL_FTP_NO_EPSV</code>
6092 environment variable. Default is false (curl will use EPSV).</p>
6094 <dt class="hdlist1
">http.userAgent</dt>
6096 <p>The HTTP USER_AGENT string presented to an HTTP server. The default
6097 value represents the version of the Git client such as git/1.7.1.
6098 This option allows you to override this value to a more common value
6099 such as Mozilla/4.0. This may be necessary, for instance, if
6100 connecting through a firewall that restricts HTTP connections to a set
6101 of common USER_AGENT strings (but not including those like git/1.7.1).
6102 Can be overridden by the <code>GIT_HTTP_USER_AGENT</code> environment variable.</p>
6104 <dt class="hdlist1
">http.followRedirects</dt>
6106 <p>Whether git should follow HTTP redirects. If set to <code>true</code>, git
6107 will transparently follow any redirect issued by a server it
6108 encounters. If set to <code>false</code>, git will treat all redirects as
6109 errors. If set to <code>initial</code>, git will follow redirects only for
6110 the initial request to a remote, but not for subsequent
6111 follow-up HTTP requests. Since git uses the redirected URL as
6112 the base for the follow-up requests, this is generally
6113 sufficient. The default is <code>initial</code>.</p>
6115 <dt class="hdlist1
">http.<url>.*</dt>
6117 <p>Any of the http.* options above can be applied selectively to some URLs.
6118 For a config key to match a URL, each element of the config key is
6119 compared to that of the URL, in the following order:</p>
6120 <div class="openblock
">
6121 <div class="content
">
6122 <div class="olist arabic
">
6125 <p>Scheme (e.g., <code>https</code> in <code>https://example.com/</code>). This field
6126 must match exactly between the config key and the URL.</p>
6129 <p>Host/domain name (e.g., <code>example.com</code> in <code>https://example.com/</code>).
6130 This field must match between the config key and the URL. It is
6131 possible to specify a * as part of the host name to match all subdomains
6132 at this level. <code>https://</code>*.<code>example.com/</code> for example would match
6133 <code>https://foo.example.com/</code>, but not <code>https://foo.bar.example.com/</code>.</p>
6136 <p>Port number (e.g., <code>8080</code> in <code>http://example.com:8080/</code>).
6137 This field must match exactly between the config key and the URL.
6138 Omitted port numbers are automatically converted to the correct
6139 default for the scheme before matching.</p>
6142 <p>Path (e.g., <code>repo.git</code> in <code>https://example.com/repo.git</code>). The
6143 path field of the config key must match the path field of the URL
6144 either exactly or as a prefix of slash-delimited path elements. This means
6145 a config key with path <code>foo/</code> matches URL path <code>foo/bar</code>. A prefix can only
6146 match on a slash (<code>/</code>) boundary. Longer matches take precedence (so a config
6147 key with path <code>foo/bar</code> is a better match to URL path <code>foo/bar</code> than a config
6148 key with just path <code>foo/</code>).</p>
6151 <p>User name (e.g., <code>user</code> in <code>https://user@example.com/repo.git</code>). If
6152 the config key has a user name it must match the user name in the
6153 URL exactly. If the config key does not have a user name, that
6154 config key will match a URL with any user name (including none),
6155 but at a lower precedence than a config key with a user name.</p>
6161 <div class="paragraph
">
6162 <p>The list above is ordered by decreasing precedence; a URL that matches
6163 a config key’s path is preferred to one that matches its user name. For example,
6164 if the URL is <code>https://user@example.com/foo/bar</code> a config key match of
6165 <code>https://example.com/foo</code> will be preferred over a config key match of
6166 <code>https://user@example.com</code>.</p>
6168 <div class="paragraph
">
6169 <p>All URLs are normalized before attempting any matching (the password part,
6170 if embedded in the URL, is always ignored for matching purposes) so that
6171 equivalent URLs that are simply spelled differently will match properly.
6172 Environment variable settings always override any matches. The URLs that are
6173 matched against are those given directly to Git commands. This means any URLs
6174 visited as a result of a redirection do not participate in matching.</p>
6177 <dt class="hdlist1
">i18n.commitEncoding</dt>
6179 <p>Character encoding the commit messages are stored in; Git itself
6180 does not care per se, but this information is necessary e.g. when
6181 importing commits from emails or in the gitk graphical history
6182 browser (and possibly in other places in the future or in other
6183 porcelains). See e.g. <a href="git-mailinfo.html
">git-mailinfo(1)</a>. Defaults to <em>utf-8</em>.</p>
6185 <dt class="hdlist1
">i18n.logOutputEncoding</dt>
6187 <p>Character encoding the commit messages are converted to when
6188 running <em>git log</em> and friends.</p>
6190 <dt class="hdlist1
">imap.folder</dt>
6192 <p>The folder to drop the mails into, which is typically the Drafts
6193 folder. For example: "INBOX.Drafts
", "INBOX/Drafts
" or
6194 "[Gmail]/Drafts
". Required.</p>
6196 <dt class="hdlist1
">imap.tunnel</dt>
6198 <p>Command used to set up a tunnel to the IMAP server through which
6199 commands will be piped instead of using a direct network connection
6200 to the server. Required when imap.host is not set.</p>
6202 <dt class="hdlist1
">imap.host</dt>
6204 <p>A URL identifying the server. Use an <code>imap://</code> prefix for non-secure
6205 connections and an <code>imaps://</code> prefix for secure connections.
6206 Ignored when imap.tunnel is set, but required otherwise.</p>
6208 <dt class="hdlist1
">imap.user</dt>
6210 <p>The username to use when logging in to the server.</p>
6212 <dt class="hdlist1
">imap.pass</dt>
6214 <p>The password to use when logging in to the server.</p>
6216 <dt class="hdlist1
">imap.port</dt>
6218 <p>An integer port number to connect to on the server.
6219 Defaults to 143 for imap:// hosts and 993 for imaps:// hosts.
6220 Ignored when imap.tunnel is set.</p>
6222 <dt class="hdlist1
">imap.sslverify</dt>
6224 <p>A boolean to enable/disable verification of the server certificate
6225 used by the SSL/TLS connection. Default is <code>true</code>. Ignored when
6226 imap.tunnel is set.</p>
6228 <dt class="hdlist1
">imap.preformattedHTML</dt>
6230 <p>A boolean to enable/disable the use of html encoding when sending
6231 a patch. An html encoded patch will be bracketed with <pre>
6232 and have a content type of text/html. Ironically, enabling this
6233 option causes Thunderbird to send the patch as a plain/text,
6234 format=fixed email. Default is <code>false</code>.</p>
6236 <dt class="hdlist1
">imap.authMethod</dt>
6238 <p>Specify the authentication method for authenticating with the IMAP server.
6239 If Git was built with the NO_CURL option, or if your curl version is older
6240 than 7.34.0, or if you’re running git-imap-send with the <code>--no-curl</code>
6241 option, the only supported method is <em>CRAM-MD5</em>. If this is not set
6242 then <em>git imap-send</em> uses the basic IMAP plaintext LOGIN command.</p>
6244 <dt class="hdlist1
">include.path</dt>
6245 <dt class="hdlist1
">includeIf.<condition>.path</dt>
6247 <p>Special variables to include other configuration files. See
6248 the "CONFIGURATION FILE
" section in the main
6249 <a href="git-config.html
">git-config(1)</a> documentation,
6250 specifically the "Includes
" and "Conditional Includes
" subsections.</p>
6252 <dt class="hdlist1
">index.recordEndOfIndexEntries</dt>
6254 <p>Specifies whether the index file should include an "End Of Index
6255 Entry
" section. This reduces index load time on multiprocessor
6256 machines but produces a message "ignoring EOIE extension
" when
6257 reading the index using Git versions before 2.20. Defaults to
6258 <em>true</em> if index.threads has been explicitly enabled, <em>false</em>
6261 <dt class="hdlist1
">index.recordOffsetTable</dt>
6263 <p>Specifies whether the index file should include an "Index Entry
6264 Offset Table
" section. This reduces index load time on
6265 multiprocessor machines but produces a message "ignoring IEOT
6266 extension
" when reading the index using Git versions before 2.20.
6267 Defaults to <em>true</em> if index.threads has been explicitly enabled,
6268 <em>false</em> otherwise.</p>
6270 <dt class="hdlist1
">index.sparse</dt>
6272 <p>When enabled, write the index using sparse-directory entries. This
6273 has no effect unless <code>core.sparseCheckout</code> and
6274 <code>core.sparseCheckoutCone</code> are both enabled. Defaults to <em>false</em>.</p>
6276 <dt class="hdlist1
">index.threads</dt>
6278 <p>Specifies the number of threads to spawn when loading the index.
6279 This is meant to reduce index load time on multiprocessor machines.
6280 Specifying 0 or <em>true</em> will cause Git to auto-detect the number of
6281 CPUs and set the number of threads accordingly. Specifying 1 or
6282 <em>false</em> will disable multithreading. Defaults to <em>true</em>.</p>
6284 <dt class="hdlist1
">index.version</dt>
6286 <p>Specify the version with which new index files should be
6287 initialized. This does not affect existing repositories.
6288 If <code>feature.manyFiles</code> is enabled, then the default is 4.</p>
6290 <dt class="hdlist1
">index.skipHash</dt>
6292 <p>When enabled, do not compute the trailing hash for the index file.
6293 This accelerates Git commands that manipulate the index, such as
6294 <code>git</code> <code>add</code>, <code>git</code> <code>commit</code>, or <code>git</code> <code>status</code>. Instead of storing the
6295 checksum, write a trailing set of bytes with value zero, indicating
6296 that the computation was skipped.</p>
6297 <div class="paragraph
">
6298 <p>If you enable <code>index.skipHash</code>, then Git clients older than 2.13.0 will
6299 refuse to parse the index and Git clients older than 2.40.0 will report an
6300 error during <code>git</code> <code>fsck</code>.</p>
6307 <dt class="hdlist1
"><code>init.templateDir</code></dt>
6309 <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>
6311 <dt class="hdlist1
"><code>init.defaultBranch</code></dt>
6313 <p>Allows overriding the default branch name e.g. when initializing
6314 a new repository.</p>
6316 <dt class="hdlist1
"><code>init.defaultObjectFormat</code></dt>
6318 <p>Allows overriding the default object format for new repositories. See
6319 <code>--object-format=</code> in <a href="git-init.html
">git-init(1)</a>. Both the command line option
6320 and the <code>GIT_DEFAULT_HASH</code> environment variable take precedence over
6323 <dt class="hdlist1
"><code>init.defaultRefFormat</code></dt>
6325 <p>Allows overriding the default ref storage format for new repositories.
6326 See <code>--ref-format=</code> in <a href="git-init.html
">git-init(1)</a>. Both the command line
6327 option and the <code>GIT_DEFAULT_REF_FORMAT</code> environment variable take
6328 precedence over this config.</p>
6330 <dt class="hdlist1
">instaweb.browser</dt>
6332 <p>Specify the program that will be used to browse your working
6333 repository in gitweb. See <a href="git-instaweb.html
">git-instaweb(1)</a>.</p>
6335 <dt class="hdlist1
">instaweb.httpd</dt>
6337 <p>The HTTP daemon command-line to start gitweb on your working
6338 repository. See <a href="git-instaweb.html
">git-instaweb(1)</a>.</p>
6340 <dt class="hdlist1
">instaweb.local</dt>
6342 <p>If true the web server started by <a href="git-instaweb.html
">git-instaweb(1)</a> will
6343 be bound to the local IP (127.0.0.1).</p>
6345 <dt class="hdlist1
">instaweb.modulePath</dt>
6347 <p>The default module path for <a href="git-instaweb.html
">git-instaweb(1)</a> to use
6348 instead of /usr/lib/apache2/modules. Only used if httpd
6351 <dt class="hdlist1
">instaweb.port</dt>
6353 <p>The port number to bind the gitweb httpd to. See
6354 <a href="git-instaweb.html
">git-instaweb(1)</a>.</p>
6356 <dt class="hdlist1
">interactive.singleKey</dt>
6358 <p>When set to true, allow the user to provide one-letter input
6359 with a single key (i.e., without hitting the Enter key) in
6360 interactive commands. This is currently used by the <code>--patch</code>
6361 mode of <a href="git-add.html
">git-add(1)</a>, <a href="git-checkout.html
">git-checkout(1)</a>,
6362 <a href="git-restore.html
">git-restore(1)</a>, <a href="git-commit.html
">git-commit(1)</a>,
6363 <a href="git-reset.html
">git-reset(1)</a>, and <a href="git-stash.html
">git-stash(1)</a>.</p>
6365 <dt class="hdlist1
">interactive.diffFilter</dt>
6367 <p>When an interactive command (such as <code>git</code> <code>add</code> <code>--patch</code>) shows
6368 a colorized diff, git will pipe the diff through the shell
6369 command defined by this configuration variable. The command may
6370 mark up the diff further for human consumption, provided that it
6371 retains a one-to-one correspondence with the lines in the
6372 original diff. Defaults to disabled (no filtering).</p>
6374 <dt class="hdlist1
">log.abbrevCommit</dt>
6376 <p>If true, makes <a href="git-log.html
">git-log(1)</a>, <a href="git-show.html
">git-show(1)</a>, and
6377 <a href="git-whatchanged.html
">git-whatchanged(1)</a> assume <code>--abbrev-commit</code>. You may
6378 override this option with <code>--no-abbrev-commit</code>.</p>
6380 <dt class="hdlist1
">log.date</dt>
6382 <p>Set the default date-time mode for the <em>log</em> command.
6383 Setting a value for log.date is similar to using <em>git log</em>'s
6384 <code>--date</code> option. See <a href="git-log.html
">git-log(1)</a> for details.</p>
6385 <div class="paragraph
">
6386 <p>If the format is set to "auto:foo
" and the pager is in use, format
6387 "foo
" will be used for the date format. Otherwise, "default
" will
6391 <dt class="hdlist1
">log.decorate</dt>
6393 <p>Print out the ref names of any commits that are shown by the log
6394 command. If <em>short</em> is specified, the ref name prefixes <em>refs/heads/</em>,
6395 <em>refs/tags/</em> and <em>refs/remotes/</em> will not be printed. If <em>full</em> is
6396 specified, the full ref name (including prefix) will be printed.
6397 If <em>auto</em> is specified, then if the output is going to a terminal,
6398 the ref names are shown as if <em>short</em> were given, otherwise no ref
6399 names are shown. This is the same as the <code>--decorate</code> option
6400 of the <code>git</code> <code>log</code>.</p>
6402 <dt class="hdlist1
">log.initialDecorationSet</dt>
6404 <p>By default, <code>git</code> <code>log</code> only shows decorations for certain known ref
6405 namespaces. If <em>all</em> is specified, then show all refs as
6408 <dt class="hdlist1
">log.excludeDecoration</dt>
6410 <p>Exclude the specified patterns from the log decorations. This is
6411 similar to the <code>--decorate-refs-exclude</code> command-line option, but
6412 the config option can be overridden by the <code>--decorate-refs</code>
6415 <dt class="hdlist1
">log.diffMerges</dt>
6417 <p>Set diff format to be used when <code>--diff-merges=on</code> is
6418 specified, see <code>--diff-merges</code> in <a href="git-log.html
">git-log(1)</a> for
6419 details. Defaults to <code>separate</code>.</p>
6421 <dt class="hdlist1
">log.follow</dt>
6423 <p>If <code>true</code>, <code>git</code> <code>log</code> will act as if the <code>--follow</code> option was used when
6424 a single <path> is given. This has the same limitations as <code>--follow</code>,
6425 i.e. it cannot be used to follow multiple files and does not work well
6426 on non-linear history.</p>
6428 <dt class="hdlist1
">log.graphColors</dt>
6430 <p>A list of colors, separated by commas, that can be used to draw
6431 history lines in <code>git</code> <code>log</code> <code>--graph</code>.</p>
6433 <dt class="hdlist1
">log.showRoot</dt>
6435 <p>If true, the initial commit will be shown as a big creation event.
6436 This is equivalent to a diff against an empty tree.
6437 Tools like <a href="git-log.html
">git-log(1)</a> or <a href="git-whatchanged.html
">git-whatchanged(1)</a>, which
6438 normally hide the root commit will now show it. True by default.</p>
6440 <dt class="hdlist1
">log.showSignature</dt>
6442 <p>If true, makes <a href="git-log.html
">git-log(1)</a>, <a href="git-show.html
">git-show(1)</a>, and
6443 <a href="git-whatchanged.html
">git-whatchanged(1)</a> assume <code>--show-signature</code>.</p>
6445 <dt class="hdlist1
">log.mailmap</dt>
6447 <p>If true, makes <a href="git-log.html
">git-log(1)</a>, <a href="git-show.html
">git-show(1)</a>, and
6448 <a href="git-whatchanged.html
">git-whatchanged(1)</a> assume <code>--use-mailmap</code>, otherwise
6449 assume <code>--no-use-mailmap</code>. True by default.</p>
6451 <dt class="hdlist1
">lsrefs.unborn</dt>
6453 <p>May be "advertise
" (the default), "allow
", or "ignore
". If "advertise
",
6454 the server will respond to the client sending "unborn
" (as described in
6455 <a href="gitprotocol-v2.html
">gitprotocol-v2(5)</a>) and will advertise support for this feature during the
6456 protocol v2 capability advertisement. "allow
" is the same as
6457 "advertise
" except that the server will not advertise support for this
6458 feature; this is useful for load-balanced servers that cannot be
6459 updated atomically (for example), since the administrator could
6460 configure "allow
", then after a delay, configure "advertise
".</p>
6462 <dt class="hdlist1
">mailinfo.scissors</dt>
6464 <p>If true, makes <a href="git-mailinfo.html
">git-mailinfo(1)</a> (and therefore
6465 <a href="git-am.html
">git-am(1)</a>) act by default as if the --scissors option
6466 was provided on the command-line. When active, this feature
6467 removes everything from the message body before a scissors
6468 line (i.e. consisting mainly of ">8", "8<" and "-
").</p>
6470 <dt class="hdlist1
">mailmap.file</dt>
6472 <p>The location of an augmenting mailmap file. The default
6473 mailmap, located in the root of the repository, is loaded
6474 first, then the mailmap file pointed to by this variable.
6475 The location of the mailmap file may be in a repository
6476 subdirectory, or somewhere outside of the repository itself.
6477 See <a href="git-shortlog.html
">git-shortlog(1)</a> and <a href="git-blame.html
">git-blame(1)</a>.</p>
6479 <dt class="hdlist1
">mailmap.blob</dt>
6481 <p>Like <code>mailmap.file</code>, but consider the value as a reference to a
6482 blob in the repository. If both <code>mailmap.file</code> and
6483 <code>mailmap.blob</code> are given, both are parsed, with entries from
6484 <code>mailmap.file</code> taking precedence. In a bare repository, this
6485 defaults to <code>HEAD:.mailmap</code>. In a non-bare repository, it
6486 defaults to empty.</p>
6488 <dt class="hdlist1
">maintenance.auto</dt>
6490 <p>This boolean config option controls whether some commands run
6491 <code>git</code> <code>maintenance</code> <code>run</code> <code>--auto</code> after doing their normal work. Defaults
6494 <dt class="hdlist1
">maintenance.autoDetach</dt>
6496 <p>Many Git commands trigger automatic maintenance after they have
6497 written data into the repository. This boolean config option
6498 controls whether this automatic maintenance shall happen in the
6499 foreground or whether the maintenance process shall detach and
6500 continue to run in the background.</p>
6501 <div class="paragraph
">
6502 <p>If unset, the value of <code>gc.autoDetach</code> is used as a fallback. Defaults
6503 to true if both are unset, meaning that the maintenance process will
6507 <dt class="hdlist1
">maintenance.strategy</dt>
6509 <p>This string config option provides a way to specify one of a few
6510 recommended schedules for background maintenance. This only affects
6511 which tasks are run during <code>git</code> <code>maintenance</code> <code>run</code> <code>--schedule=X</code>
6512 commands, provided no <code>--task=</code><em><task></em> arguments are provided.
6513 Further, if a <code>maintenance.</code><em><task></em><code>.schedule</code> config value is set,
6514 then that value is used instead of the one provided by
6515 <code>maintenance.strategy</code>. The possible strategy strings are:</p>
6519 <p><code>none</code>: This default setting implies no tasks are run at any schedule.</p>
6522 <p><code>incremental</code>: This setting optimizes for performing small maintenance
6523 activities that do not delete any data. This does not schedule the <code>gc</code>
6524 task, but runs the <code>prefetch</code> and <code>commit-graph</code> tasks hourly, the
6525 <code>loose-objects</code> and <code>incremental-repack</code> tasks daily, and the <code>pack-refs</code>
6531 <dt class="hdlist1
">maintenance.<task>.enabled</dt>
6533 <p>This boolean config option controls whether the maintenance task
6534 with name <em><task></em> is run when no <code>--task</code> option is specified to
6535 <code>git</code> <code>maintenance</code> <code>run</code>. These config values are ignored if a
6536 <code>--task</code> option exists. By default, only <code>maintenance.gc.enabled</code>
6539 <dt class="hdlist1
">maintenance.<task>.schedule</dt>
6541 <p>This config option controls whether or not the given <em><task></em> runs
6542 during a <code>git</code> <code>maintenance</code> <code>run</code> <code>--schedule=</code><em><frequency></em> command. The
6543 value must be one of "hourly
", "daily
", or "weekly
".</p>
6545 <dt class="hdlist1
">maintenance.commit-graph.auto</dt>
6547 <p>This integer config option controls how often the <code>commit-graph</code> task
6548 should be run as part of <code>git</code> <code>maintenance</code> <code>run</code> <code>--auto</code>. If zero, then
6549 the <code>commit-graph</code> task will not run with the <code>--auto</code> option. A
6550 negative value will force the task to run every time. Otherwise, a
6551 positive value implies the command should run when the number of
6552 reachable commits that are not in the commit-graph file is at least
6553 the value of <code>maintenance.commit-graph.auto</code>. The default value is
6556 <dt class="hdlist1
">maintenance.loose-objects.auto</dt>
6558 <p>This integer config option controls how often the <code>loose-objects</code> task
6559 should be run as part of <code>git</code> <code>maintenance</code> <code>run</code> <code>--auto</code>. If zero, then
6560 the <code>loose-objects</code> task will not run with the <code>--auto</code> option. A
6561 negative value will force the task to run every time. Otherwise, a
6562 positive value implies the command should run when the number of
6563 loose objects is at least the value of <code>maintenance.loose-objects.auto</code>.
6564 The default value is 100.</p>
6566 <dt class="hdlist1
">maintenance.incremental-repack.auto</dt>
6568 <p>This integer config option controls how often the <code>incremental-repack</code>
6569 task should be run as part of <code>git</code> <code>maintenance</code> <code>run</code> <code>--auto</code>. If zero,
6570 then the <code>incremental-repack</code> task will not run with the <code>--auto</code>
6571 option. A negative value will force the task to run every time.
6572 Otherwise, a positive value implies the command should run when the
6573 number of pack-files not in the multi-pack-index is at least the value
6574 of <code>maintenance.incremental-repack.auto</code>. The default value is 10.</p>
6576 <dt class="hdlist1
">man.viewer</dt>
6578 <p>Specify the programs that may be used to display help in the
6579 <em>man</em> format. See <a href="git-help.html
">git-help(1)</a>.</p>
6581 <dt class="hdlist1
">man.<tool>.cmd</dt>
6583 <p>Specify the command to invoke the specified man viewer. The
6584 specified command is evaluated in shell with the man page
6585 passed as an argument. (See <a href="git-help.html
">git-help(1)</a>.)</p>
6587 <dt class="hdlist1
">man.<tool>.path</dt>
6589 <p>Override the path for the given tool that may be used to
6590 display help in the <em>man</em> format. See <a href="git-help.html
">git-help(1)</a>.</p>
6592 <dt class="hdlist1
">merge.conflictStyle</dt>
6594 <p>Specify the style in which conflicted hunks are written out to
6595 working tree files upon merge. The default is "merge
", which
6596 shows a <<<<<<< conflict marker, changes made by one side,
6597 a <code>=======</code> marker, changes made by the other side, and then
6598 a >>>>>>> marker. An alternate style, "diff3
", adds a |||||||
6599 marker and the original text before the <code>=======</code> marker. The
6600 "merge
" style tends to produce smaller conflict regions than diff3,
6601 both because of the exclusion of the original text, and because
6602 when a subset of lines match on the two sides, they are just pulled
6603 out of the conflict region. Another alternate style, "zdiff3
", is
6604 similar to diff3 but removes matching lines on the two sides from
6605 the conflict region when those matching lines appear near either
6606 the beginning or end of a conflict region.</p>
6608 <dt class="hdlist1
">merge.defaultToUpstream</dt>
6610 <p>If merge is called without any commit argument, merge the upstream
6611 branches configured for the current branch by using their last
6612 observed values stored in their remote-tracking branches.
6613 The values of the <code>branch.</code><current <code>branch</code>><code>.merge</code> that name the
6614 branches at the remote named by <code>branch.</code><current <code>branch</code>><code>.remote</code>
6615 are consulted, and then they are mapped via <code>remote.</code><em><remote></em><code>.fetch</code>
6616 to their corresponding remote-tracking branches, and the tips of
6617 these tracking branches are merged. Defaults to true.</p>
6619 <dt class="hdlist1
">merge.ff</dt>
6621 <p>By default, Git does not create an extra merge commit when merging
6622 a commit that is a descendant of the current commit. Instead, the
6623 tip of the current branch is fast-forwarded. When set to <code>false</code>,
6624 this variable tells Git to create an extra merge commit in such
6625 a case (equivalent to giving the <code>--no-ff</code> option from the command
6626 line). When set to <code>only</code>, only such fast-forward merges are
6627 allowed (equivalent to giving the <code>--ff-only</code> option from the
6630 <dt class="hdlist1
">merge.verifySignatures</dt>
6632 <p>If true, this is equivalent to the --verify-signatures command
6633 line option. See <a href="git-merge.html
">git-merge(1)</a> for details.</p>
6635 <dt class="hdlist1
">merge.branchdesc</dt>
6637 <p>In addition to branch names, populate the log message with
6638 the branch description text associated with them. Defaults
6641 <dt class="hdlist1
">merge.log</dt>
6643 <p>In addition to branch names, populate the log message with at
6644 most the specified number of one-line descriptions from the
6645 actual commits that are being merged. Defaults to false, and
6646 true is a synonym for 20.</p>
6648 <dt class="hdlist1
">merge.suppressDest</dt>
6650 <p>By adding a glob that matches the names of integration
6651 branches to this multi-valued configuration variable, the
6652 default merge message computed for merges into these
6653 integration branches will omit "into
<branch name
>" from
6655 <div class="paragraph
">
6656 <p>An element with an empty value can be used to clear the list
6657 of globs accumulated from previous configuration entries.
6658 When there is no <code>merge.suppressDest</code> variable defined, the
6659 default value of <code>master</code> is used for backward compatibility.</p>
6662 <dt class="hdlist1
">merge.renameLimit</dt>
6664 <p>The number of files to consider in the exhaustive portion of
6665 rename detection during a merge. If not specified, defaults
6666 to the value of diff.renameLimit. If neither
6667 merge.renameLimit nor diff.renameLimit are specified,
6668 currently defaults to 7000. This setting has no effect if
6669 rename detection is turned off.</p>
6671 <dt class="hdlist1
">merge.renames</dt>
6673 <p>Whether Git detects renames. If set to "false
", rename detection
6674 is disabled. If set to "true
", basic rename detection is enabled.
6675 Defaults to the value of diff.renames.</p>
6677 <dt class="hdlist1
">merge.directoryRenames</dt>
6679 <p>Whether Git detects directory renames, affecting what happens at
6680 merge time to new files added to a directory on one side of
6681 history when that directory was renamed on the other side of
6682 history. If merge.directoryRenames is set to "false
", directory
6683 rename detection is disabled, meaning that such new files will be
6684 left behind in the old directory. If set to "true
", directory
6685 rename detection is enabled, meaning that such new files will be
6686 moved into the new directory. If set to "conflict
", a conflict
6687 will be reported for such paths. If merge.renames is false,
6688 merge.directoryRenames is ignored and treated as false. Defaults
6691 <dt class="hdlist1
">merge.renormalize</dt>
6693 <p>Tell Git that canonical representation of files in the
6694 repository has changed over time (e.g. earlier commits record
6695 text files with CRLF line endings, but recent ones use LF line
6696 endings). In such a repository, Git can convert the data
6697 recorded in commits to a canonical form before performing a
6698 merge to reduce unnecessary conflicts. For more information,
6699 see section "Merging branches with differing checkin/checkout
6700 attributes
" in <a href="gitattributes.html
">gitattributes(5)</a>.</p>
6702 <dt class="hdlist1
">merge.stat</dt>
6704 <p>Whether to print the diffstat between ORIG_HEAD and the merge result
6705 at the end of the merge. True by default.</p>
6707 <dt class="hdlist1
">merge.autoStash</dt>
6709 <p>When set to true, automatically create a temporary stash entry
6710 before the operation begins, and apply it after the operation
6711 ends. This means that you can run merge on a dirty worktree.
6712 However, use with care: the final stash application after a
6713 successful merge might result in non-trivial conflicts.
6714 This option can be overridden by the <code>--no-autostash</code> and
6715 <code>--autostash</code> options of <a href="git-merge.html
">git-merge(1)</a>.
6716 Defaults to false.</p>
6718 <dt class="hdlist1
">merge.tool</dt>
6720 <p>Controls which merge tool is used by <a href="git-mergetool.html
">git-mergetool(1)</a>.
6721 The list below shows the valid built-in values.
6722 Any other value is treated as a custom merge tool and requires
6723 that a corresponding mergetool.<tool>.cmd variable is defined.</p>
6725 <dt class="hdlist1
">merge.guitool</dt>
6727 <p>Controls which merge tool is used by <a href="git-mergetool.html
">git-mergetool(1)</a> when the
6728 -g/--gui flag is specified. The list below shows the valid built-in values.
6729 Any other value is treated as a custom merge tool and requires that a
6730 corresponding mergetool.<guitool>.cmd variable is defined.</p>
6733 <dt class="hdlist1
"><code>araxis</code></dt>
6735 <p>Use Araxis Merge (requires a graphical session)</p>
6737 <dt class="hdlist1
"><code>bc</code></dt>
6739 <p>Use Beyond Compare (requires a graphical session)</p>
6741 <dt class="hdlist1
"><code>bc3</code></dt>
6743 <p>Use Beyond Compare (requires a graphical session)</p>
6745 <dt class="hdlist1
"><code>bc4</code></dt>
6747 <p>Use Beyond Compare (requires a graphical session)</p>
6749 <dt class="hdlist1
"><code>codecompare</code></dt>
6751 <p>Use Code Compare (requires a graphical session)</p>
6753 <dt class="hdlist1
"><code>deltawalker</code></dt>
6755 <p>Use DeltaWalker (requires a graphical session)</p>
6757 <dt class="hdlist1
"><code>diffmerge</code></dt>
6759 <p>Use DiffMerge (requires a graphical session)</p>
6761 <dt class="hdlist1
"><code>diffuse</code></dt>
6763 <p>Use Diffuse (requires a graphical session)</p>
6765 <dt class="hdlist1
"><code>ecmerge</code></dt>
6767 <p>Use ECMerge (requires a graphical session)</p>
6769 <dt class="hdlist1
"><code>emerge</code></dt>
6771 <p>Use Emacs' Emerge</p>
6773 <dt class="hdlist1
"><code>examdiff</code></dt>
6775 <p>Use ExamDiff Pro (requires a graphical session)</p>
6777 <dt class="hdlist1
"><code>guiffy</code></dt>
6779 <p>Use Guiffy’s Diff Tool (requires a graphical session)</p>
6781 <dt class="hdlist1
"><code>gvimdiff</code></dt>
6783 <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>
6785 <dt class="hdlist1
"><code>gvimdiff1</code></dt>
6787 <p>Use gVim (requires a graphical session) with a 2 panes layout (LOCAL and REMOTE)</p>
6789 <dt class="hdlist1
"><code>gvimdiff2</code></dt>
6791 <p>Use gVim (requires a graphical session) with a 3 panes layout (LOCAL, MERGED and REMOTE)</p>
6793 <dt class="hdlist1
"><code>gvimdiff3</code></dt>
6795 <p>Use gVim (requires a graphical session) where only the MERGED file is shown</p>
6797 <dt class="hdlist1
"><code>kdiff3</code></dt>
6799 <p>Use KDiff3 (requires a graphical session)</p>
6801 <dt class="hdlist1
"><code>meld</code></dt>
6803 <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>
6805 <dt class="hdlist1
"><code>nvimdiff</code></dt>
6807 <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>
6809 <dt class="hdlist1
"><code>nvimdiff1</code></dt>
6811 <p>Use Neovim with a 2 panes layout (LOCAL and REMOTE)</p>
6813 <dt class="hdlist1
"><code>nvimdiff2</code></dt>
6815 <p>Use Neovim with a 3 panes layout (LOCAL, MERGED and REMOTE)</p>
6817 <dt class="hdlist1
"><code>nvimdiff3</code></dt>
6819 <p>Use Neovim where only the MERGED file is shown</p>
6821 <dt class="hdlist1
"><code>opendiff</code></dt>
6823 <p>Use FileMerge (requires a graphical session)</p>
6825 <dt class="hdlist1
"><code>p4merge</code></dt>
6827 <p>Use HelixCore P4Merge (requires a graphical session)</p>
6829 <dt class="hdlist1
"><code>smerge</code></dt>
6831 <p>Use Sublime Merge (requires a graphical session)</p>
6833 <dt class="hdlist1
"><code>tkdiff</code></dt>
6835 <p>Use TkDiff (requires a graphical session)</p>
6837 <dt class="hdlist1
"><code>tortoisemerge</code></dt>
6839 <p>Use TortoiseMerge (requires a graphical session)</p>
6841 <dt class="hdlist1
"><code>vimdiff</code></dt>
6843 <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>
6845 <dt class="hdlist1
"><code>vimdiff1</code></dt>
6847 <p>Use Vim with a 2 panes layout (LOCAL and REMOTE)</p>
6849 <dt class="hdlist1
"><code>vimdiff2</code></dt>
6851 <p>Use Vim with a 3 panes layout (LOCAL, MERGED and REMOTE)</p>
6853 <dt class="hdlist1
"><code>vimdiff3</code></dt>
6855 <p>Use Vim where only the MERGED file is shown</p>
6857 <dt class="hdlist1
"><code>vscode</code></dt>
6859 <p>Use Visual Studio Code (requires a graphical session)</p>
6861 <dt class="hdlist1
"><code>winmerge</code></dt>
6863 <p>Use WinMerge (requires a graphical session)</p>
6865 <dt class="hdlist1
"><code>xxdiff</code></dt>
6867 <p>Use xxdiff (requires a graphical session)</p>
6872 <dt class="hdlist1
">merge.verbosity</dt>
6874 <p>Controls the amount of output shown by the recursive merge
6875 strategy. Level 0 outputs nothing except a final error
6876 message if conflicts were detected. Level 1 outputs only
6877 conflicts, 2 outputs conflicts and file changes. Level 5 and
6878 above outputs debugging information. The default is level 2.
6879 Can be overridden by the <code>GIT_MERGE_VERBOSITY</code> environment variable.</p>
6881 <dt class="hdlist1
">merge.<driver>.name</dt>
6883 <p>Defines a human-readable name for a custom low-level
6884 merge driver. See <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
6886 <dt class="hdlist1
">merge.<driver>.driver</dt>
6888 <p>Defines the command that implements a custom low-level
6889 merge driver. See <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
6891 <dt class="hdlist1
">merge.<driver>.recursive</dt>
6893 <p>Names a low-level merge driver to be used when
6894 performing an internal merge between common ancestors.
6895 See <a href="gitattributes.html
">gitattributes(5)</a> for details.</p>
6897 <dt class="hdlist1
">mergetool.<tool>.path</dt>
6899 <p>Override the path for the given tool. This is useful in case
6900 your tool is not in the PATH.</p>
6902 <dt class="hdlist1
">mergetool.<tool>.cmd</dt>
6904 <p>Specify the command to invoke the specified merge tool. The
6905 specified command is evaluated in shell with the following
6906 variables available: <em>BASE</em> is the name of a temporary file
6907 containing the common base of the files to be merged, if available;
6908 <em>LOCAL</em> is the name of a temporary file containing the contents of
6909 the file on the current branch; <em>REMOTE</em> is the name of a temporary
6910 file containing the contents of the file from the branch being
6911 merged; <em>MERGED</em> contains the name of the file to which the merge
6912 tool should write the results of a successful merge.</p>
6914 <dt class="hdlist1
">mergetool.<tool>.hideResolved</dt>
6916 <p>Allows the user to override the global <code>mergetool.hideResolved</code> value
6917 for a specific tool. See <code>mergetool.hideResolved</code> for the full
6920 <dt class="hdlist1
">mergetool.<tool>.trustExitCode</dt>
6922 <p>For a custom merge command, specify whether the exit code of
6923 the merge command can be used to determine whether the merge was
6924 successful. If this is not set to true then the merge target file
6925 timestamp is checked, and the merge is assumed to have been successful
6926 if the file has been updated; otherwise, the user is prompted to
6927 indicate the success of the merge.</p>
6929 <dt class="hdlist1
">mergetool.meld.hasOutput</dt>
6931 <p>Older versions of <code>meld</code> do not support the <code>--output</code> option.
6932 Git will attempt to detect whether <code>meld</code> supports <code>--output</code>
6933 by inspecting the output of <code>meld</code> <code>--help</code>. Configuring
6934 <code>mergetool.meld.hasOutput</code> will make Git skip these checks and
6935 use the configured value instead. Setting <code>mergetool.meld.hasOutput</code>
6936 to <code>true</code> tells Git to unconditionally use the <code>--output</code> option,
6937 and <code>false</code> avoids using <code>--output</code>.</p>
6939 <dt class="hdlist1
">mergetool.meld.useAutoMerge</dt>
6941 <p>When the <code>--auto-merge</code> is given, meld will merge all non-conflicting
6942 parts automatically, highlight the conflicting parts, and wait for
6943 user decision. Setting <code>mergetool.meld.useAutoMerge</code> to <code>true</code> tells
6944 Git to unconditionally use the <code>--auto-merge</code> option with <code>meld</code>.
6945 Setting this value to <code>auto</code> makes git detect whether <code>--auto-merge</code>
6946 is supported and will only use <code>--auto-merge</code> when available. A
6947 value of <code>false</code> avoids using <code>--auto-merge</code> altogether, and is the
6950 <dt class="hdlist1
">mergetool.<vimdiff variant>.layout</dt>
6952 <p>Configure the split window layout for vimdiff’s <em><variant></em>, which is any of <code>vimdiff</code>,
6953 <code>nvimdiff</code>, <code>gvimdiff</code>.
6954 Upon launching <code>git</code> <code>mergetool</code> with <code>--tool=</code><em><variant></em> (or without <code>--tool</code>
6955 if <code>merge.tool</code> is configured as <em><variant></em>), Git will consult
6956 <code>mergetool.</code><em><variant></em><code>.layout</code> to determine the tool’s layout. If the
6957 variant-specific configuration is not available, <code>vimdiff</code>'s is used as
6958 fallback. If that too is not available, a default layout with 4 windows
6959 will be used. To configure the layout, see the <code>BACKEND</code> <code>SPECIFIC</code> <code>HINTS</code>
6960 section in <a href="git-mergetool.html
">git-mergetool(1)</a>.</p>
6962 <dt class="hdlist1
">mergetool.hideResolved</dt>
6964 <p>During a merge, Git will automatically resolve as many conflicts as
6965 possible and write the <em>MERGED</em> file containing conflict markers around
6966 any conflicts that it cannot resolve; <em>LOCAL</em> and <em>REMOTE</em> normally
6967 represent the versions of the file from before Git’s conflict
6968 resolution. This flag causes <em>LOCAL</em> and <em>REMOTE</em> to be overwritten so
6969 that only the unresolved conflicts are presented to the merge tool. Can
6970 be configured per-tool via the <code>mergetool.</code><em><tool></em><code>.hideResolved</code>
6971 configuration variable. Defaults to <code>false</code>.</p>
6973 <dt class="hdlist1
">mergetool.keepBackup</dt>
6975 <p>After performing a merge, the original file with conflict markers
6976 can be saved as a file with a .<code>orig</code> extension. If this variable
6977 is set to <code>false</code> then this file is not preserved. Defaults to
6978 <code>true</code> (i.e. keep the backup files).</p>
6980 <dt class="hdlist1
">mergetool.keepTemporaries</dt>
6982 <p>When invoking a custom merge tool, Git uses a set of temporary
6983 files to pass to the tool. If the tool returns an error and this
6984 variable is set to <code>true</code>, then these temporary files will be
6985 preserved; otherwise, they will be removed after the tool has
6986 exited. Defaults to <code>false</code>.</p>
6988 <dt class="hdlist1
">mergetool.writeToTemp</dt>
6990 <p>Git writes temporary <em>BASE</em>, <em>LOCAL</em>, and <em>REMOTE</em> versions of
6991 conflicting files in the worktree by default. Git will attempt
6992 to use a temporary directory for these files when set <code>true</code>.
6993 Defaults to <code>false</code>.</p>
6995 <dt class="hdlist1
">mergetool.prompt</dt>
6997 <p>Prompt before each invocation of the merge resolution program.</p>
6999 <dt class="hdlist1
">mergetool.guiDefault</dt>
7001 <p>Set <code>true</code> to use the <code>merge.guitool</code> by default (equivalent to
7002 specifying the <code>--gui</code> argument), or <code>auto</code> to select <code>merge.guitool</code>
7003 or <code>merge.tool</code> depending on the presence of a <code>DISPLAY</code> environment
7004 variable value. The default is <code>false</code>, where the <code>--gui</code> argument
7005 must be provided explicitly for the <code>merge.guitool</code> to be used.</p>
7007 <dt class="hdlist1
">notes.mergeStrategy</dt>
7009 <p>Which merge strategy to choose by default when resolving notes
7010 conflicts. Must be one of <code>manual</code>, <code>ours</code>, <code>theirs</code>, <code>union</code>, or
7011 <code>cat_sort_uniq</code>. Defaults to <code>manual</code>. See the "NOTES MERGE STRATEGIES
"
7012 section of <a href="git-notes.html
">git-notes(1)</a> for more information on each strategy.</p>
7013 <div class="paragraph
">
7014 <p>This setting can be overridden by passing the <code>--strategy</code> option to
7015 <a href="git-notes.html
">git-notes(1)</a>.</p>
7018 <dt class="hdlist1
">notes.<name>.mergeStrategy</dt>
7020 <p>Which merge strategy to choose when doing a notes merge into
7021 refs/notes/<name>. This overrides the more general
7022 "notes.mergeStrategy
". See the "NOTES MERGE STRATEGIES
" section in
7023 <a href="git-notes.html
">git-notes(1)</a> for more information on the available strategies.</p>
7025 <dt class="hdlist1
">notes.displayRef</dt>
7027 <p>Which ref (or refs, if a glob or specified more than once), in
7028 addition to the default set by <code>core.notesRef</code> or
7029 <code>GIT_NOTES_REF</code>, to read notes from when showing commit
7030 messages with the <em>git log</em> family of commands.</p>
7031 <div class="paragraph
">
7032 <p>This setting can be overridden with the <code>GIT_NOTES_DISPLAY_REF</code>
7033 environment variable, which must be a colon separated list of refs or
7036 <div class="paragraph
">
7037 <p>A warning will be issued for refs that do not exist,
7038 but a glob that does not match any refs is silently ignored.</p>
7040 <div class="paragraph
">
7041 <p>This setting can be disabled by the <code>--no-notes</code> option to the <em>git
7042 log</em> family of commands, or by the <code>--notes=</code><em><ref></em> option accepted by
7045 <div class="paragraph
">
7046 <p>The effective value of "core.notesRef
" (possibly overridden by
7047 GIT_NOTES_REF) is also implicitly added to the list of refs to be
7051 <dt class="hdlist1
">notes.rewrite.<command></dt>
7053 <p>When rewriting commits with <command> (currently <code>amend</code> or
7054 <code>rebase</code>), if this variable is <code>false</code>, git will not copy
7055 notes from the original to the rewritten commit. Defaults to
7056 <code>true</code>. See also "<code>notes.rewriteRef
</code>" below.</p>
7057 <div class="paragraph
">
7058 <p>This setting can be overridden with the <code>GIT_NOTES_REWRITE_REF</code>
7059 environment variable, which must be a colon separated list of refs or
7063 <dt class="hdlist1
">notes.rewriteMode</dt>
7065 <p>When copying notes during a rewrite (see the
7066 "notes.rewrite.
<command
>" option), determines what to do if
7067 the target commit already has a note. Must be one of
7068 <code>overwrite</code>, <code>concatenate</code>, <code>cat_sort_uniq</code>, or <code>ignore</code>.
7069 Defaults to <code>concatenate</code>.</p>
7070 <div class="paragraph
">
7071 <p>This setting can be overridden with the <code>GIT_NOTES_REWRITE_MODE</code>
7072 environment variable.</p>
7075 <dt class="hdlist1
">notes.rewriteRef</dt>
7077 <p>When copying notes during a rewrite, specifies the (fully
7078 qualified) ref whose notes should be copied. May be a glob,
7079 in which case notes in all matching refs will be copied. You
7080 may also specify this configuration several times.</p>
7081 <div class="paragraph
">
7082 <p>Does not have a default value; you must configure this variable to
7083 enable note rewriting. Set it to <code>refs/notes/commits</code> to enable
7084 rewriting for the default commit notes.</p>
7086 <div class="paragraph
">
7087 <p>Can be overridden with the <code>GIT_NOTES_REWRITE_REF</code> environment variable.
7088 See <code>notes.rewrite.</code><em><command></em> above for a further description of its format.</p>
7091 <dt class="hdlist1
">pack.window</dt>
7093 <p>The size of the window used by <a href="git-pack-objects.html
">git-pack-objects(1)</a> when no
7094 window size is given on the command line. Defaults to 10.</p>
7096 <dt class="hdlist1
">pack.depth</dt>
7098 <p>The maximum delta depth used by <a href="git-pack-objects.html
">git-pack-objects(1)</a> when no
7099 maximum depth is given on the command line. Defaults to 50.
7100 Maximum value is 4095.</p>
7102 <dt class="hdlist1
">pack.windowMemory</dt>
7104 <p>The maximum size of memory that is consumed by each thread
7105 in <a href="git-pack-objects.html
">git-pack-objects(1)</a> for pack window memory when
7106 no limit is given on the command line. The value can be
7107 suffixed with "k
", "m
", or "g
". When left unconfigured (or
7108 set explicitly to 0), there will be no limit.</p>
7110 <dt class="hdlist1
">pack.compression</dt>
7112 <p>An integer -1..9, indicating the compression level for objects
7113 in a pack file. -1 is the zlib default. 0 means no
7114 compression, and 1..9 are various speed/size tradeoffs, 9 being
7115 slowest. If not set, defaults to core.compression. If that is
7116 not set, defaults to -1, the zlib default, which is "a default
7117 compromise between speed and compression (currently equivalent
7119 <div class="paragraph
">
7120 <p>Note that changing the compression level will not automatically recompress
7121 all existing objects. You can force recompression by passing the -F option
7122 to <a href="git-repack.html
">git-repack(1)</a>.</p>
7125 <dt class="hdlist1
">pack.allowPackReuse</dt>
7127 <p>When true or "single
", and when reachability bitmaps are
7128 enabled, pack-objects will try to send parts of the bitmapped
7129 packfile verbatim. When "multi
", and when a multi-pack
7130 reachability bitmap is available, pack-objects will try to send
7131 parts of all packs in the MIDX.</p>
7132 <div class="paragraph
">
7133 <p>If only a single pack bitmap is available, and <code>pack.allowPackReuse</code>
7134 is set to "multi
", reuse parts of just the bitmapped packfile. This
7135 can reduce memory and CPU usage to serve fetches, but might result in
7136 sending a slightly larger pack. Defaults to true.</p>
7139 <dt class="hdlist1
">pack.island</dt>
7141 <p>An extended regular expression configuring a set of delta
7142 islands. See "DELTA ISLANDS
" in <a href="git-pack-objects.html
">git-pack-objects(1)</a>
7145 <dt class="hdlist1
">pack.islandCore</dt>
7147 <p>Specify an island name which gets to have its objects be
7148 packed first. This creates a kind of pseudo-pack at the front
7149 of one pack, so that the objects from the specified island are
7150 hopefully faster to copy into any pack that should be served
7151 to a user requesting these objects. In practice this means
7152 that the island specified should likely correspond to what is
7153 the most commonly cloned in the repo. See also "DELTA ISLANDS
"
7154 in <a href="git-pack-objects.html
">git-pack-objects(1)</a>.</p>
7156 <dt class="hdlist1
">pack.deltaCacheSize</dt>
7158 <p>The maximum memory in bytes used for caching deltas in
7159 <a href="git-pack-objects.html
">git-pack-objects(1)</a> before writing them out to a pack.
7160 This cache is used to speed up the writing object phase by not
7161 having to recompute the final delta result once the best match
7162 for all objects is found. Repacking large repositories on machines
7163 which are tight with memory might be badly impacted by this though,
7164 especially if this cache pushes the system into swapping.
7165 A value of 0 means no limit. The smallest size of 1 byte may be
7166 used to virtually disable this cache. Defaults to 256 MiB.</p>
7168 <dt class="hdlist1
">pack.deltaCacheLimit</dt>
7170 <p>The maximum size of a delta, that is cached in
7171 <a href="git-pack-objects.html
">git-pack-objects(1)</a>. This cache is used to speed up the
7172 writing object phase by not having to recompute the final delta
7173 result once the best match for all objects is found.
7174 Defaults to 1000. Maximum value is 65535.</p>
7176 <dt class="hdlist1
">pack.threads</dt>
7178 <p>Specifies the number of threads to spawn when searching for best
7179 delta matches. This requires that <a href="git-pack-objects.html
">git-pack-objects(1)</a>
7180 be compiled with pthreads otherwise this option is ignored with a
7181 warning. This is meant to reduce packing time on multiprocessor
7182 machines. The required amount of memory for the delta search window
7183 is however multiplied by the number of threads.
7184 Specifying 0 will cause Git to auto-detect the number of CPUs
7185 and set the number of threads accordingly.</p>
7187 <dt class="hdlist1
">pack.indexVersion</dt>
7189 <p>Specify the default pack index version. Valid values are 1 for
7190 legacy pack index used by Git versions prior to 1.5.2, and 2 for
7191 the new pack index with capabilities for packs larger than 4 GB
7192 as well as proper protection against the repacking of corrupted
7193 packs. Version 2 is the default. Note that version 2 is enforced
7194 and this config option is ignored whenever the corresponding pack is
7195 larger than 2 GB.</p>
7196 <div class="paragraph
">
7197 <p>If you have an old Git that does not understand the version 2 *.<code>idx</code> file,
7198 cloning or fetching over a non-native protocol (e.g. "http
")
7199 that will copy both *.<code>pack</code> file and corresponding *.<code>idx</code> file from the
7200 other side may give you a repository that cannot be accessed with your
7201 older version of Git. If the *.<code>pack</code> file is smaller than 2 GB, however,
7202 you can use <a href="git-index-pack.html
">git-index-pack(1)</a> on the *.pack file to regenerate
7203 the *.<code>idx</code> file.</p>
7206 <dt class="hdlist1
">pack.packSizeLimit</dt>
7208 <p>The maximum size of a pack. This setting only affects
7209 packing to a file when repacking, i.e. the git:// protocol
7210 is unaffected. It can be overridden by the <code>--max-pack-size</code>
7211 option of <a href="git-repack.html
">git-repack(1)</a>. Reaching this limit results
7212 in the creation of multiple packfiles.</p>
7213 <div class="paragraph
">
7214 <p>Note that this option is rarely useful, and may result in a larger total
7215 on-disk size (because Git will not store deltas between packs) and
7216 worse runtime performance (object lookup within multiple packs is
7217 slower than a single pack, and optimizations like reachability bitmaps
7218 cannot cope with multiple packs).</p>
7220 <div class="paragraph
">
7221 <p>If you need to actively run Git using smaller packfiles (e.g., because your
7222 filesystem does not support large files), this option may help. But if
7223 your goal is to transmit a packfile over a medium that supports limited
7224 sizes (e.g., removable media that cannot store the whole repository),
7225 you are likely better off creating a single large packfile and splitting
7226 it using a generic multi-volume archive tool (e.g., Unix <code>split</code>).</p>
7228 <div class="paragraph
">
7229 <p>The minimum size allowed is limited to 1 MiB. The default is unlimited.
7230 Common unit suffixes of <em>k</em>, <em>m</em>, or <em>g</em> are supported.</p>
7233 <dt class="hdlist1
">pack.useBitmaps</dt>
7235 <p>When true, git will use pack bitmaps (if available) when packing
7236 to stdout (e.g., during the server side of a fetch). Defaults to
7237 true. You should not generally need to turn this off unless
7238 you are debugging pack bitmaps.</p>
7240 <dt class="hdlist1
">pack.useBitmapBoundaryTraversal</dt>
7242 <p>When true, Git will use an experimental algorithm for computing
7243 reachability queries with bitmaps. Instead of building up
7244 complete bitmaps for all of the negated tips and then OR-ing
7245 them together, consider negated tips with existing bitmaps as
7246 additive (i.e. OR-ing them into the result if they exist,
7247 ignoring them otherwise), and build up a bitmap at the boundary
7249 <div class="paragraph
">
7250 <p>When using this algorithm, Git may include too many objects as a result
7251 of not opening up trees belonging to certain UNINTERESTING commits. This
7252 inexactness matches the non-bitmap traversal algorithm.</p>
7254 <div class="paragraph
">
7255 <p>In many cases, this can provide a speed-up over the exact algorithm,
7256 particularly when there is poor bitmap coverage of the negated side of
7260 <dt class="hdlist1
">pack.useSparse</dt>
7262 <p>When true, git will default to using the <em>--sparse</em> option in
7263 <em>git pack-objects</em> when the <em>--revs</em> option is present. This
7264 algorithm only walks trees that appear in paths that introduce new
7265 objects. This can have significant performance benefits when
7266 computing a pack to send a small change. However, it is possible
7267 that extra objects are added to the pack-file if the included
7268 commits contain certain types of direct renames. Default is
7269 <code>true</code>.</p>
7271 <dt class="hdlist1
">pack.preferBitmapTips</dt>
7273 <p>When selecting which commits will receive bitmaps, prefer a
7274 commit at the tip of any reference that is a suffix of any value
7275 of this configuration over any other commits in the "selection
7277 <div class="paragraph
">
7278 <p>Note that setting this configuration to <code>refs/foo</code> does not mean that
7279 the commits at the tips of <code>refs/foo/bar</code> and <code>refs/foo/baz</code> will
7280 necessarily be selected. This is because commits are selected for
7281 bitmaps from within a series of windows of variable length.</p>
7283 <div class="paragraph
">
7284 <p>If a commit at the tip of any reference which is a suffix of any value
7285 of this configuration is seen in a window, it is immediately given
7286 preference over any other commit in that window.</p>
7289 <dt class="hdlist1
">pack.writeBitmaps (deprecated)</dt>
7291 <p>This is a deprecated synonym for <code>repack.writeBitmaps</code>.</p>
7293 <dt class="hdlist1
">pack.writeBitmapHashCache</dt>
7295 <p>When true, git will include a "hash cache
" section in the bitmap
7296 index (if one is written). This cache can be used to feed git’s
7297 delta heuristics, potentially leading to better deltas between
7298 bitmapped and non-bitmapped objects (e.g., when serving a fetch
7299 between an older, bitmapped pack and objects that have been
7300 pushed since the last gc). The downside is that it consumes 4
7301 bytes per object of disk space. Defaults to true.</p>
7302 <div class="paragraph
">
7303 <p>When writing a multi-pack reachability bitmap, no new namehashes are
7304 computed; instead, any namehashes stored in an existing bitmap are
7305 permuted into their appropriate location when writing a new bitmap.</p>
7308 <dt class="hdlist1
">pack.writeBitmapLookupTable</dt>
7310 <p>When true, Git will include a "lookup table
" section in the
7311 bitmap index (if one is written). This table is used to defer
7312 loading individual bitmaps as late as possible. This can be
7313 beneficial in repositories that have relatively large bitmap
7314 indexes. Defaults to false.</p>
7316 <dt class="hdlist1
">pack.readReverseIndex</dt>
7318 <p>When true, git will read any .rev file(s) that may be available
7319 (see: <a href="gitformat-pack.html
">gitformat-pack(5)</a>). When false, the reverse index
7320 will be generated from scratch and stored in memory. Defaults to
7323 <dt class="hdlist1
">pack.writeReverseIndex</dt>
7325 <p>When true, git will write a corresponding .rev file (see:
7326 <a href="gitformat-pack.html
">gitformat-pack(5)</a>)
7327 for each new packfile that it writes in all places except for
7328 <a href="git-fast-import.html
">git-fast-import(1)</a> and in the bulk checkin mechanism.
7329 Defaults to true.</p>
7331 <dt class="hdlist1
">pager.<cmd></dt>
7333 <p>If the value is boolean, turns on or off pagination of the
7334 output of a particular Git subcommand when writing to a tty.
7335 Otherwise, turns on pagination for the subcommand using the
7336 pager specified by the value of <code>pager.</code><em><cmd></em>. If <code>--paginate</code>
7337 or <code>--no-pager</code> is specified on the command line, it takes
7338 precedence over this option. To disable pagination for all
7339 commands, set <code>core.pager</code> or <code>GIT_PAGER</code> to <code>cat</code>.</p>
7341 <dt class="hdlist1
">pretty.<name></dt>
7343 <p>Alias for a --pretty= format string, as specified in
7344 <a href="git-log.html
">git-log(1)</a>. Any aliases defined here can be used just
7345 as the built-in pretty formats could. For example,
7346 running <code>git</code> <code>config</code> <code>pretty.changelog</code> "format:* %H %s
"
7347 would cause the invocation <code>git</code> <code>log</code> <code>--pretty=changelog</code>
7348 to be equivalent to running <code>git</code> <code>log</code> "--pretty=format:* %H %s
".
7349 Note that an alias with the same name as a built-in format
7350 will be silently ignored.</p>
7352 <dt class="hdlist1
">promisor.quiet</dt>
7354 <p>If set to "true
" assume <code>--quiet</code> when fetching additional
7355 objects for a partial clone.</p>
7357 <dt class="hdlist1
">protocol.allow</dt>
7359 <p>If set, provide a user defined default policy for all protocols which
7360 don’t explicitly have a policy (<code>protocol.</code><em><name></em><code>.allow</code>). By default,
7361 if unset, known-safe protocols (http, https, git, ssh) have a
7362 default policy of <code>always</code>, known-dangerous protocols (ext) have a
7363 default policy of <code>never</code>, and all other protocols (including file)
7364 have a default policy of <code>user</code>. Supported policies:</p>
7365 <div class="openblock
">
7366 <div class="content
">
7370 <p><code>always</code> - protocol is always able to be used.</p>
7373 <p><code>never</code> - protocol is never able to be used.</p>
7376 <p><code>user</code> - protocol is only able to be used when <code>GIT_PROTOCOL_FROM_USER</code> is
7377 either unset or has a value of 1. This policy should be used when you want a
7378 protocol to be directly usable by the user but don’t want it used by commands which
7379 execute clone/fetch/push commands without user input, e.g. recursive
7380 submodule initialization.</p>
7387 <dt class="hdlist1
">protocol.<name>.allow</dt>
7389 <p>Set a policy to be used by protocol <em><name></em> with clone/fetch/push
7390 commands. See <code>protocol.allow</code> above for the available policies.</p>
7391 <div class="paragraph
">
7392 <p>The protocol names currently used by git are:</p>
7394 <div class="openblock
">
7395 <div class="content
">
7399 <p><code>file</code>: any local file-based path (including <code>file://</code> URLs,
7403 <p><code>git</code>: the anonymous git protocol over a direct TCP
7404 connection (or proxy, if configured)</p>
7407 <p><code>ssh</code>: git over ssh (including <code>host:path</code> syntax,
7408 <code>ssh://</code>, etc).</p>
7411 <p><code>http</code>: git over http, both "smart http
" and "dumb http
".
7412 Note that this does <em>not</em> include <code>https</code>; if you want to configure
7413 both, you must do so individually.</p>
7416 <p>any external helpers are named by their protocol (e.g., use
7417 <code>hg</code> to allow the <code>git-remote-hg</code> helper)</p>
7424 <dt class="hdlist1
">protocol.version</dt>
7426 <p>If set, clients will attempt to communicate with a server
7427 using the specified protocol version. If the server does
7428 not support it, communication falls back to version 0.
7429 If unset, the default is <code>2</code>.
7430 Supported versions:</p>
7431 <div class="openblock
">
7432 <div class="content
">
7436 <p><code>0</code> - the original wire protocol.</p>
7439 <p><code>1</code> - the original wire protocol with the addition of a version string
7440 in the initial response from the server.</p>
7443 <p><code>2</code> - Wire protocol version 2, see <a href="gitprotocol-v2.html
">gitprotocol-v2(5)</a>.</p>
7450 <dt class="hdlist1
">pull.ff</dt>
7452 <p>By default, Git does not create an extra merge commit when merging
7453 a commit that is a descendant of the current commit. Instead, the
7454 tip of the current branch is fast-forwarded. When set to <code>false</code>,
7455 this variable tells Git to create an extra merge commit in such
7456 a case (equivalent to giving the <code>--no-ff</code> option from the command
7457 line). When set to <code>only</code>, only such fast-forward merges are
7458 allowed (equivalent to giving the <code>--ff-only</code> option from the
7459 command line). This setting overrides <code>merge.ff</code> when pulling.</p>
7461 <dt class="hdlist1
">pull.rebase</dt>
7463 <p>When true, rebase branches on top of the fetched branch, instead
7464 of merging the default branch from the default remote when "git
7465 pull
" is run. See "branch.
<name
>.rebase
" for setting this on a
7466 per-branch basis.</p>
7467 <div class="paragraph
">
7468 <p>When <code>merges</code> (or just <em>m</em>), pass the <code>--rebase-merges</code> option to <em>git rebase</em>
7469 so that the local merge commits are included in the rebase (see
7470 <a href="git-rebase.html
">git-rebase(1)</a> for details).</p>
7472 <div class="paragraph
">
7473 <p>When the value is <code>interactive</code> (or just <em>i</em>), the rebase is run in interactive
7476 <div class="paragraph
">
7477 <p><strong>NOTE</strong>: this is a possibly dangerous operation; do <strong>not</strong> use
7478 it unless you understand the implications (see <a href="git-rebase.html
">git-rebase(1)</a>
7482 <dt class="hdlist1
">pull.octopus</dt>
7484 <p>The default merge strategy to use when pulling multiple branches
7487 <dt class="hdlist1
">pull.twohead</dt>
7489 <p>The default merge strategy to use when pulling a single branch.</p>
7491 <dt class="hdlist1
">push.autoSetupRemote</dt>
7493 <p>If set to "true
" assume <code>--set-upstream</code> on default push when no
7494 upstream tracking exists for the current branch; this option
7495 takes effect with push.default options <em>simple</em>, <em>upstream</em>,
7496 and <em>current</em>. It is useful if by default you want new branches
7497 to be pushed to the default remote (like the behavior of
7498 <em>push.default=current</em>) and you also want the upstream tracking
7499 to be set. Workflows most likely to benefit from this option are
7500 <em>simple</em> central workflows where all branches are expected to
7501 have the same name on the remote.</p>
7503 <dt class="hdlist1
">push.default</dt>
7505 <p>Defines the action <code>git</code> <code>push</code> should take if no refspec is
7506 given (whether from the command-line, config, or elsewhere).
7507 Different values are well-suited for
7508 specific workflows; for instance, in a purely central workflow
7509 (i.e. the fetch source is equal to the push destination),
7510 <code>upstream</code> is probably what you want. Possible values are:</p>
7511 <div class="openblock
">
7512 <div class="content
">
7516 <p><code>nothing</code> - do not push anything (error out) unless a refspec is
7517 given. This is primarily meant for people who want to
7518 avoid mistakes by always being explicit.</p>
7521 <p><code>current</code> - push the current branch to update a branch with the same
7522 name on the receiving end. Works in both central and non-central
7526 <p><code>upstream</code> - push the current branch back to the branch whose
7527 changes are usually integrated into the current branch (which is
7528 called <code>@</code>{upstream}). This mode only makes sense if you are
7529 pushing to the same repository you would normally pull from
7530 (i.e. central workflow).</p>
7533 <p><code>tracking</code> - This is a deprecated synonym for <code>upstream</code>.</p>
7536 <p><code>simple</code> - push the current branch with the same name on the remote.</p>
7537 <div class="paragraph
">
7538 <p>If you are working on a centralized workflow (pushing to the same repository you
7539 pull from, which is typically <code>origin</code>), then you need to configure an upstream
7540 branch with the same name.</p>
7542 <div class="paragraph
">
7543 <p>This mode is the default since Git 2.0, and is the safest option suited for
7548 <p><code>matching</code> - push all branches having the same name on both ends.
7549 This makes the repository you are pushing to remember the set of
7550 branches that will be pushed out (e.g. if you always push <em>maint</em>
7551 and <em>master</em> there and no other branches, the repository you push
7552 to will have these two branches, and your local <em>maint</em> and
7553 <em>master</em> will be pushed there).</p>
7554 <div class="paragraph
">
7555 <p>To use this mode effectively, you have to make sure <em>all</em> the
7556 branches you would push out are ready to be pushed out before
7557 running <em>git push</em>, as the whole point of this mode is to allow you
7558 to push all of the branches in one go. If you usually finish work
7559 on only one branch and push out the result, while other branches are
7560 unfinished, this mode is not for you. Also this mode is not
7561 suitable for pushing into a shared central repository, as other
7562 people may add new branches there, or update the tip of existing
7563 branches outside your control.</p>
7565 <div class="paragraph
">
7566 <p>This used to be the default, but not since Git 2.0 (<code>simple</code> is the
7575 <dt class="hdlist1
">push.followTags</dt>
7577 <p>If set to true, enable <code>--follow-tags</code> option by default. You
7578 may override this configuration at time of push by specifying
7579 <code>--no-follow-tags</code>.</p>
7581 <dt class="hdlist1
">push.gpgSign</dt>
7583 <p>May be set to a boolean value, or the string <em>if-asked</em>. A true
7584 value causes all pushes to be GPG signed, as if <code>--signed</code> is
7585 passed to <a href="git-push.html
">git-push(1)</a>. The string <em>if-asked</em> causes
7586 pushes to be signed if the server supports it, as if
7587 <code>--signed=if-asked</code> is passed to <em>git push</em>. A false value may
7588 override a value from a lower-priority config file. An explicit
7589 command-line flag always overrides this config option.</p>
7591 <dt class="hdlist1
">push.pushOption</dt>
7593 <p>When no <code>--push-option=</code><em><option></em> argument is given from the
7594 command line, <code>git</code> <code>push</code> behaves as if each <value> of
7595 this variable is given as <code>--push-option=</code><em><value></em>.</p>
7596 <div class="paragraph
">
7597 <p>This is a multi-valued variable, and an empty value can be used in a
7598 higher priority configuration file (e.g. .<code>git/config</code> in a
7599 repository) to clear the values inherited from a lower priority
7600 configuration files (e.g. <code>$HOME/.gitconfig</code>).</p>
7602 <div class="listingblock
">
7603 <div class="content
">
7617 This will result in only b (a and c are cleared).</pre>
7621 <dt class="hdlist1
">push.recurseSubmodules</dt>
7623 <p>May be "check
", "on-demand
", "only
", or "no
", with the same behavior
7624 as that of "push --recurse-submodules
".
7625 If not set, <em>no</em> is used by default, unless <em>submodule.recurse</em> is
7626 set (in which case a <em>true</em> value means <em>on-demand</em>).</p>
7628 <dt class="hdlist1
">push.useForceIfIncludes</dt>
7630 <p>If set to "true
", it is equivalent to specifying
7631 <code>--force-if-includes</code> as an option to <a href="git-push.html
">git-push(1)</a>
7632 in the command line. Adding <code>--no-force-if-includes</code> at the
7633 time of push overrides this configuration setting.</p>
7635 <dt class="hdlist1
">push.negotiate</dt>
7637 <p>If set to "true
", attempt to reduce the size of the packfile
7638 sent by rounds of negotiation in which the client and the
7639 server attempt to find commits in common. If "false
", Git will
7640 rely solely on the server’s ref advertisement to find commits
7643 <dt class="hdlist1
">push.useBitmaps</dt>
7645 <p>If set to "false
", disable use of bitmaps for "git push
" even if
7646 <code>pack.useBitmaps</code> is "true
", without preventing other git operations
7647 from using bitmaps. Default is true.</p>
7649 <dt class="hdlist1
">rebase.backend</dt>
7651 <p>Default backend to use for rebasing. Possible choices are
7652 <em>apply</em> or <em>merge</em>. In the future, if the merge backend gains
7653 all remaining capabilities of the apply backend, this setting
7654 may become unused.</p>
7656 <dt class="hdlist1
">rebase.stat</dt>
7658 <p>Whether to show a diffstat of what changed upstream since the last
7659 rebase. False by default.</p>
7661 <dt class="hdlist1
">rebase.autoSquash</dt>
7663 <p>If set to true, enable the <code>--autosquash</code> option of
7664 <a href="git-rebase.html
">git-rebase(1)</a> by default for interactive mode.
7665 This can be overridden with the <code>--no-autosquash</code> option.</p>
7667 <dt class="hdlist1
">rebase.autoStash</dt>
7669 <p>When set to true, automatically create a temporary stash entry
7670 before the operation begins, and apply it after the operation
7671 ends. This means that you can run rebase on a dirty worktree.
7672 However, use with care: the final stash application after a
7673 successful rebase might result in non-trivial conflicts.
7674 This option can be overridden by the <code>--no-autostash</code> and
7675 <code>--autostash</code> options of <a href="git-rebase.html
">git-rebase(1)</a>.
7676 Defaults to false.</p>
7678 <dt class="hdlist1
">rebase.updateRefs</dt>
7680 <p>If set to true enable <code>--update-refs</code> option by default.</p>
7682 <dt class="hdlist1
">rebase.missingCommitsCheck</dt>
7684 <p>If set to "warn
", git rebase -i will print a warning if some
7685 commits are removed (e.g. a line was deleted), however the
7686 rebase will still proceed. If set to "error
", it will print
7687 the previous warning and stop the rebase, <em>git rebase
7688 --edit-todo</em> can then be used to correct the error. If set to
7689 "ignore
", no checking is done.
7690 To drop a commit without warning or error, use the <code>drop</code>
7691 command in the todo list.
7692 Defaults to "ignore
".</p>
7694 <dt class="hdlist1
">rebase.instructionFormat</dt>
7696 <p>A format string, as specified in <a href="git-log.html
">git-log(1)</a>, to be used for the
7697 todo list during an interactive rebase. The format will
7698 automatically have the commit hash prepended to the format.</p>
7700 <dt class="hdlist1
">rebase.abbreviateCommands</dt>
7702 <p>If set to true, <code>git</code> <code>rebase</code> will use abbreviated command names in the
7703 todo list resulting in something like this:</p>
7704 <div class="listingblock
">
7705 <div class="content
">
7706 <pre> p deadbee The oneline of the commit
7707 p fa1afe1 The oneline of the next commit
7711 <div class="paragraph
">
7714 <div class="listingblock
">
7715 <div class="content
">
7716 <pre> pick deadbee The oneline of the commit
7717 pick fa1afe1 The oneline of the next commit
7721 <div class="paragraph
">
7722 <p>Defaults to false.</p>
7725 <dt class="hdlist1
">rebase.rescheduleFailedExec</dt>
7727 <p>Automatically reschedule <code>exec</code> commands that failed. This only makes
7728 sense in interactive mode (or when an <code>--exec</code> option was provided).
7729 This is the same as specifying the <code>--reschedule-failed-exec</code> option.</p>
7731 <dt class="hdlist1
">rebase.forkPoint</dt>
7733 <p>If set to false set <code>--no-fork-point</code> option by default.</p>
7735 <dt class="hdlist1
">rebase.rebaseMerges</dt>
7737 <p>Whether and how to set the <code>--rebase-merges</code> option by default. Can
7738 be <code>rebase-cousins</code>, <code>no-rebase-cousins</code>, or a boolean. Setting to
7739 true or to <code>no-rebase-cousins</code> is equivalent to
7740 <code>--rebase-merges=no-rebase-cousins</code>, setting to <code>rebase-cousins</code> is
7741 equivalent to <code>--rebase-merges=rebase-cousins</code>, and setting to false is
7742 equivalent to <code>--no-rebase-merges</code>. Passing <code>--rebase-merges</code> on the
7743 command line, with or without an argument, overrides any
7744 <code>rebase.rebaseMerges</code> configuration.</p>
7746 <dt class="hdlist1
">rebase.maxLabelLength</dt>
7748 <p>When generating label names from commit subjects, truncate the names to
7749 this length. By default, the names are truncated to a little less than
7750 <code>NAME_MAX</code> (to allow e.g. .<code>lock</code> files to be written for the
7751 corresponding loose refs).</p>
7753 <dt class="hdlist1
">receive.advertiseAtomic</dt>
7755 <p>By default, git-receive-pack will advertise the atomic push
7756 capability to its clients. If you don’t want to advertise this
7757 capability, set this variable to false.</p>
7759 <dt class="hdlist1
">receive.advertisePushOptions</dt>
7761 <p>When set to true, git-receive-pack will advertise the push options
7762 capability to its clients. False by default.</p>
7764 <dt class="hdlist1
">receive.autogc</dt>
7766 <p>By default, git-receive-pack will run "git maintenance run --auto
" after
7767 receiving data from git-push and updating refs. You can stop
7768 it by setting this variable to false.</p>
7770 <dt class="hdlist1
">receive.certNonceSeed</dt>
7772 <p>By setting this variable to a string, <code>git</code> <code>receive-pack</code>
7773 will accept a <code>git</code> <code>push</code> <code>--signed</code> and verify it by using
7774 a "nonce
" protected by HMAC using this string as a secret
7777 <dt class="hdlist1
">receive.certNonceSlop</dt>
7779 <p>When a <code>git</code> <code>push</code> <code>--signed</code> sends a push certificate with a
7780 "nonce
" that was issued by a receive-pack serving the same
7781 repository within this many seconds, export the "nonce
"
7782 found in the certificate to <code>GIT_PUSH_CERT_NONCE</code> to the
7783 hooks (instead of what the receive-pack asked the sending
7784 side to include). This may allow writing checks in
7785 <code>pre-receive</code> and <code>post-receive</code> a bit easier. Instead of
7786 checking <code>GIT_PUSH_CERT_NONCE_SLOP</code> environment variable
7787 that records by how many seconds the nonce is stale to
7788 decide if they want to accept the certificate, they only
7789 can check <code>GIT_PUSH_CERT_NONCE_STATUS</code> is <code>OK</code>.</p>
7791 <dt class="hdlist1
">receive.fsckObjects</dt>
7793 <p>If it is set to true, git-receive-pack will check all received
7794 objects. See <code>transfer.fsckObjects</code> for what’s checked.
7795 Defaults to false. If not set, the value of
7796 <code>transfer.fsckObjects</code> is used instead.</p>
7798 <dt class="hdlist1
">receive.fsck.<msg-id></dt>
7800 <p>Acts like <code>fsck.</code><em><msg-id></em>, but is used by
7801 <a href="git-receive-pack.html
">git-receive-pack(1)</a> instead of
7802 <a href="git-fsck.html
">git-fsck(1)</a>. See the <code>fsck.</code><em><msg-id></em> documentation for
7805 <dt class="hdlist1
">receive.fsck.skipList</dt>
7807 <p>Acts like <code>fsck.skipList</code>, but is used by
7808 <a href="git-receive-pack.html
">git-receive-pack(1)</a> instead of
7809 <a href="git-fsck.html
">git-fsck(1)</a>. See the <code>fsck.skipList</code> documentation for
7812 <dt class="hdlist1
">receive.keepAlive</dt>
7814 <p>After receiving the pack from the client, <code>receive-pack</code> may
7815 produce no output (if <code>--quiet</code> was specified) while processing
7816 the pack, causing some networks to drop the TCP connection.
7817 With this option set, if <code>receive-pack</code> does not transmit
7818 any data in this phase for <code>receive.keepAlive</code> seconds, it will
7819 send a short keepalive packet. The default is 5 seconds; set
7820 to 0 to disable keepalives entirely.</p>
7822 <dt class="hdlist1
">receive.unpackLimit</dt>
7824 <p>If the number of objects received in a push is below this
7825 limit then the objects will be unpacked into loose object
7826 files. However if the number of received objects equals or
7827 exceeds this limit then the received pack will be stored as
7828 a pack, after adding any missing delta bases. Storing the
7829 pack from a push can make the push operation complete faster,
7830 especially on slow filesystems. If not set, the value of
7831 <code>transfer.unpackLimit</code> is used instead.</p>
7833 <dt class="hdlist1
">receive.maxInputSize</dt>
7835 <p>If the size of the incoming pack stream is larger than this
7836 limit, then git-receive-pack will error out, instead of
7837 accepting the pack file. If not set or set to 0, then the size
7840 <dt class="hdlist1
">receive.denyDeletes</dt>
7842 <p>If set to true, git-receive-pack will deny a ref update that deletes
7843 the ref. Use this to prevent such a ref deletion via a push.</p>
7845 <dt class="hdlist1
">receive.denyDeleteCurrent</dt>
7847 <p>If set to true, git-receive-pack will deny a ref update that
7848 deletes the currently checked out branch of a non-bare repository.</p>
7850 <dt class="hdlist1
">receive.denyCurrentBranch</dt>
7852 <p>If set to true or "refuse
", git-receive-pack will deny a ref update
7853 to the currently checked out branch of a non-bare repository.
7854 Such a push is potentially dangerous because it brings the HEAD
7855 out of sync with the index and working tree. If set to "warn
",
7856 print a warning of such a push to stderr, but allow the push to
7857 proceed. If set to false or "ignore
", allow such pushes with no
7858 message. Defaults to "refuse
".</p>
7859 <div class="paragraph
">
7860 <p>Another option is "updateInstead
" which will update the working
7861 tree if pushing into the current branch. This option is
7862 intended for synchronizing working directories when one side is not easily
7863 accessible via interactive ssh (e.g. a live web site, hence the requirement
7864 that the working directory be clean). This mode also comes in handy when
7865 developing inside a VM to test and fix code on different Operating Systems.</p>
7867 <div class="paragraph
">
7868 <p>By default, "updateInstead
" will refuse the push if the working tree or
7869 the index have any difference from the HEAD, but the <code>push-to-checkout</code>
7870 hook can be used to customize this. See <a href="githooks.html
">githooks(5)</a>.</p>
7873 <dt class="hdlist1
">receive.denyNonFastForwards</dt>
7875 <p>If set to true, git-receive-pack will deny a ref update which is
7876 not a fast-forward. Use this to prevent such an update via a push,
7877 even if that push is forced. This configuration variable is
7878 set when initializing a shared repository.</p>
7880 <dt class="hdlist1
">receive.hideRefs</dt>
7882 <p>This variable is the same as <code>transfer.hideRefs</code>, but applies
7883 only to <code>receive-pack</code> (and so affects pushes, but not fetches).
7884 An attempt to update or delete a hidden ref by <code>git</code> <code>push</code> is
7887 <dt class="hdlist1
">receive.procReceiveRefs</dt>
7889 <p>This is a multi-valued variable that defines reference prefixes
7890 to match the commands in <code>receive-pack</code>. Commands matching the
7891 prefixes will be executed by an external hook "proc-receive
",
7892 instead of the internal <code>execute_commands</code> function. If this
7893 variable is not defined, the "proc-receive
" hook will never be
7894 used, and all commands will be executed by the internal
7895 <code>execute_commands</code> function.</p>
7896 <div class="paragraph
">
7897 <p>For example, if this variable is set to "refs/for
", pushing to reference
7898 such as "refs/for/master
" will not create or update a reference named
7899 "refs/for/master
", but may create or update a pull request directly by
7900 running the hook "proc-receive
".</p>
7902 <div class="paragraph
">
7903 <p>Optional modifiers can be provided in the beginning of the value to filter
7904 commands for specific actions: create (a), modify (m), delete (d).
7905 A ! can be included in the modifiers to negate the reference prefix entry.
7908 <div class="literalblock
">
7909 <div class="content
">
7910 <pre>git config --system --add receive.procReceiveRefs ad:refs/heads
7911 git config --system --add receive.procReceiveRefs !:refs/heads</pre>
7915 <dt class="hdlist1
">receive.updateServerInfo</dt>
7917 <p>If set to true, git-receive-pack will run git-update-server-info
7918 after receiving data from git-push and updating refs.</p>
7920 <dt class="hdlist1
">receive.shallowUpdate</dt>
7922 <p>If set to true, .git/shallow can be updated when new refs
7923 require new shallow roots. Otherwise those refs are rejected.</p>
7925 <dt class="hdlist1
">reftable.blockSize</dt>
7927 <p>The size in bytes used by the reftable backend when writing blocks.
7928 The block size is determined by the writer, and does not have to be a
7929 power of 2. The block size must be larger than the longest reference
7930 name or log entry used in the repository, as references cannot span
7932 <div class="paragraph
">
7933 <p>Powers of two that are friendly to the virtual memory system or
7934 filesystem (such as 4kB or 8kB) are recommended. Larger sizes (64kB) can
7935 yield better compression, with a possible increased cost incurred by
7936 readers during access.</p>
7938 <div class="paragraph
">
7939 <p>The largest block size is <code>16777215</code> bytes (15.99 MiB). The default value is
7940 <code>4096</code> bytes (4kB). A value of <code>0</code> will use the default value.</p>
7943 <dt class="hdlist1
">reftable.restartInterval</dt>
7945 <p>The interval at which to create restart points. The reftable backend
7946 determines the restart points at file creation. Every 16 may be
7947 more suitable for smaller block sizes (4k or 8k), every 64 for larger
7948 block sizes (64k).</p>
7949 <div class="paragraph
">
7950 <p>More frequent restart points reduces prefix compression and increases
7951 space consumed by the restart table, both of which increase file size.</p>
7953 <div class="paragraph
">
7954 <p>Less frequent restart points makes prefix compression more effective,
7955 decreasing overall file size, with increased penalties for readers
7956 walking through more records after the binary search step.</p>
7958 <div class="paragraph
">
7959 <p>A maximum of <code>65535</code> restart points per block is supported.</p>
7961 <div class="paragraph
">
7962 <p>The default value is to create restart points every 16 records. A value of <code>0</code>
7963 will use the default value.</p>
7966 <dt class="hdlist1
">reftable.indexObjects</dt>
7968 <p>Whether the reftable backend shall write object blocks. Object blocks
7969 are a reverse mapping of object ID to the references pointing to them.</p>
7970 <div class="paragraph
">
7971 <p>The default value is <code>true</code>.</p>
7974 <dt class="hdlist1
">reftable.geometricFactor</dt>
7976 <p>Whenever the reftable backend appends a new table to the stack, it
7977 performs auto compaction to ensure that there is only a handful of
7978 tables. The backend does this by ensuring that tables form a geometric
7979 sequence regarding the respective sizes of each table.</p>
7980 <div class="paragraph
">
7981 <p>By default, the geometric sequence uses a factor of 2, meaning that for any
7982 table, the next-biggest table must at least be twice as big. A maximum factor
7983 of 256 is supported.</p>
7986 <dt class="hdlist1
">reftable.lockTimeout</dt>
7988 <p>Whenever the reftable backend appends a new table to the stack, it has
7989 to lock the central "tables.list
" file before updating it. This config
7990 controls how long the process will wait to acquire the lock in case
7991 another process has already acquired it. Value 0 means not to retry at
7992 all; -1 means to try indefinitely. Default is 100 (i.e., retry for
7995 <dt class="hdlist1
">remote.pushDefault</dt>
7997 <p>The remote to push to by default. Overrides
7998 <code>branch.</code><em><name></em><code>.remote</code> for all branches, and is overridden by
7999 <code>branch.</code><em><name></em><code>.pushRemote</code> for specific branches.</p>
8001 <dt class="hdlist1
">remote.<name>.url</dt>
8003 <p>The URL of a remote repository. See <a href="git-fetch.html
">git-fetch(1)</a> or
8004 <a href="git-push.html
">git-push(1)</a>. A configured remote can have multiple URLs;
8005 in this case the first is used for fetching, and all are used
8006 for pushing (assuming no <code>remote.</code><em><name></em><code>.pushurl</code> is defined).
8007 Setting this key to the empty string clears the list of urls,
8008 allowing you to override earlier config.</p>
8010 <dt class="hdlist1
">remote.<name>.pushurl</dt>
8012 <p>The push URL of a remote repository. See <a href="git-push.html
">git-push(1)</a>.
8013 If a <code>pushurl</code> option is present in a configured remote, it
8014 is used for pushing instead of <code>remote.</code><em><name></em><code>.url</code>. A configured
8015 remote can have multiple push URLs; in this case a push goes to
8016 all of them. Setting this key to the empty string clears the
8017 list of urls, allowing you to override earlier config.</p>
8019 <dt class="hdlist1
">remote.<name>.proxy</dt>
8021 <p>For remotes that require curl (http, https and ftp), the URL to
8022 the proxy to use for that remote. Set to the empty string to
8023 disable proxying for that remote.</p>
8025 <dt class="hdlist1
">remote.<name>.proxyAuthMethod</dt>
8027 <p>For remotes that require curl (http, https and ftp), the method to use for
8028 authenticating against the proxy in use (probably set in
8029 <code>remote.</code><em><name></em><code>.proxy</code>). See <code>http.proxyAuthMethod</code>.</p>
8031 <dt class="hdlist1
">remote.<name>.fetch</dt>
8033 <p>The default set of "refspec
" for <a href="git-fetch.html
">git-fetch(1)</a>. See
8034 <a href="git-fetch.html
">git-fetch(1)</a>.</p>
8036 <dt class="hdlist1
">remote.<name>.push</dt>
8038 <p>The default set of "refspec
" for <a href="git-push.html
">git-push(1)</a>. See
8039 <a href="git-push.html
">git-push(1)</a>.</p>
8041 <dt class="hdlist1
">remote.<name>.mirror</dt>
8043 <p>If true, pushing to this remote will automatically behave
8044 as if the <code>--mirror</code> option was given on the command line.</p>
8046 <dt class="hdlist1
">remote.<name>.skipDefaultUpdate</dt>
8048 <p>A deprecated synonym to <code>remote.</code><em><name></em><code>.skipFetchAll</code> (if
8049 both are set in the configuration files with different
8050 values, the value of the last occurrence will be used).</p>
8052 <dt class="hdlist1
">remote.<name>.skipFetchAll</dt>
8054 <p>If true, this remote will be skipped when updating
8055 using <a href="git-fetch.html
">git-fetch(1)</a>, the <code>update</code> subcommand of
8056 <a href="git-remote.html
">git-remote(1)</a>, and ignored by the prefetch task
8057 of <code>git</code> <code>maintenance</code>.</p>
8059 <dt class="hdlist1
">remote.<name>.receivepack</dt>
8061 <p>The default program to execute on the remote side when pushing. See
8062 option --receive-pack of <a href="git-push.html
">git-push(1)</a>.</p>
8064 <dt class="hdlist1
">remote.<name>.uploadpack</dt>
8066 <p>The default program to execute on the remote side when fetching. See
8067 option --upload-pack of <a href="git-fetch-pack.html
">git-fetch-pack(1)</a>.</p>
8069 <dt class="hdlist1
">remote.<name>.tagOpt</dt>
8071 <p>Setting this value to --no-tags disables automatic tag following when
8072 fetching from remote <name>. Setting it to --tags will fetch every
8073 tag from remote <name>, even if they are not reachable from remote
8074 branch heads. Passing these flags directly to <a href="git-fetch.html
">git-fetch(1)</a> can
8075 override this setting. See options --tags and --no-tags of
8076 <a href="git-fetch.html
">git-fetch(1)</a>.</p>
8078 <dt class="hdlist1
">remote.<name>.vcs</dt>
8080 <p>Setting this to a value <vcs> will cause Git to interact with
8081 the remote with the git-remote-<vcs> helper.</p>
8083 <dt class="hdlist1
">remote.<name>.prune</dt>
8085 <p>When set to true, fetching from this remote by default will also
8086 remove any remote-tracking references that no longer exist on the
8087 remote (as if the <code>--prune</code> option was given on the command line).
8088 Overrides <code>fetch.prune</code> settings, if any.</p>
8090 <dt class="hdlist1
">remote.<name>.pruneTags</dt>
8092 <p>When set to true, fetching from this remote by default will also
8093 remove any local tags that no longer exist on the remote if pruning
8094 is activated in general via <code>remote.</code><em><name></em><code>.prune</code>, <code>fetch.prune</code> or
8095 <code>--prune</code>. Overrides <code>fetch.pruneTags</code> settings, if any.</p>
8096 <div class="paragraph
">
8097 <p>See also <code>remote.</code><em><name></em><code>.prune</code> and the PRUNING section of
8098 <a href="git-fetch.html
">git-fetch(1)</a>.</p>
8101 <dt class="hdlist1
">remote.<name>.promisor</dt>
8103 <p>When set to true, this remote will be used to fetch promisor
8106 <dt class="hdlist1
">remote.<name>.partialclonefilter</dt>
8108 <p>The filter that will be applied when fetching from this promisor remote.
8109 Changing or clearing this value will only affect fetches for new commits.
8110 To fetch associated objects for commits already present in the local object
8111 database, use the <code>--refetch</code> option of <a href="git-fetch.html
">git-fetch(1)</a>.</p>
8113 <dt class="hdlist1
">remote.<name>.serverOption</dt>
8115 <p>The default set of server options used when fetching from this remote.
8116 These server options can be overridden by the <code>--server-option=</code> command
8119 <dt class="hdlist1
">remote.<name>.followRemoteHEAD</dt>
8121 <p>How <a href="git-fetch.html
">git-fetch(1)</a> should handle updates to <code>remotes/</code><em><name></em><code>/HEAD</code>.
8122 The default value is "create
", which will create <code>remotes/</code><em><name></em><code>/HEAD</code>
8123 if it exists on the remote, but not locally, but will not touch an
8124 already existing local reference. Setting to "warn
" will print
8125 a message if the remote has a different value, than the local one and
8126 in case there is no local reference, it behaves like "create
".
8127 A variant on "warn
" is "warn-if-not-$branch
", which behaves like
8128 "warn
", but if <code>HEAD</code> on the remote is <code>$branch</code> it will be silent.
8129 Setting to "always
" will silently update it to the value on the remote.
8130 Finally, setting it to "never
" will never change or create the local
8132 <div class="paragraph
">
8133 <p>This is a multi-valued variable, and an empty value can be used in a higher
8134 priority configuration file (e.g. .<code>git/config</code> in a repository) to clear
8135 the values inherited from a lower priority configuration files (e.g.
8136 <code>$HOME/.gitconfig</code>).</p>
8139 <dt class="hdlist1
">remotes.<group></dt>
8141 <p>The list of remotes which are fetched by "git remote update
8142 <group
>". See <a href="git-remote.html
">git-remote(1)</a>.</p>
8144 <dt class="hdlist1
">repack.useDeltaBaseOffset</dt>
8146 <p>By default, <a href="git-repack.html
">git-repack(1)</a> creates packs that use
8147 delta-base offset. If you need to share your repository with
8148 Git older than version 1.4.4, either directly or via a dumb
8149 protocol such as http, then you need to set this option to
8150 "false
" and repack. Access from old Git versions over the
8151 native protocol are unaffected by this option.</p>
8153 <dt class="hdlist1
">repack.packKeptObjects</dt>
8155 <p>If set to true, makes <code>git</code> <code>repack</code> act as if
8156 <code>--pack-kept-objects</code> was passed. See <a href="git-repack.html
">git-repack(1)</a> for
8157 details. Defaults to <code>false</code> normally, but <code>true</code> if a bitmap
8158 index is being written (either via <code>--write-bitmap-index</code> or
8159 <code>repack.writeBitmaps</code>).</p>
8161 <dt class="hdlist1
">repack.useDeltaIslands</dt>
8163 <p>If set to true, makes <code>git</code> <code>repack</code> act as if <code>--delta-islands</code>
8164 was passed. Defaults to <code>false</code>.</p>
8166 <dt class="hdlist1
">repack.writeBitmaps</dt>
8168 <p>When true, git will write a bitmap index when packing all
8169 objects to disk (e.g., when <code>git</code> <code>repack</code> <code>-a</code> is run). This
8170 index can speed up the "counting objects
" phase of subsequent
8171 packs created for clones and fetches, at the cost of some disk
8172 space and extra time spent on the initial repack. This has
8173 no effect if multiple packfiles are created.
8174 Defaults to true on bare repos, false otherwise.</p>
8176 <dt class="hdlist1
">repack.updateServerInfo</dt>
8178 <p>If set to false, <a href="git-repack.html
">git-repack(1)</a> will not run
8179 <a href="git-update-server-info.html
">git-update-server-info(1)</a>. Defaults to true. Can be overridden
8180 when true by the <code>-n</code> option of <a href="git-repack.html
">git-repack(1)</a>.</p>
8182 <dt class="hdlist1
">repack.cruftWindow</dt>
8183 <dt class="hdlist1
">repack.cruftWindowMemory</dt>
8184 <dt class="hdlist1
">repack.cruftDepth</dt>
8185 <dt class="hdlist1
">repack.cruftThreads</dt>
8187 <p>Parameters used by <a href="git-pack-objects.html
">git-pack-objects(1)</a> when generating
8188 a cruft pack and the respective parameters are not given over
8189 the command line. See similarly named <code>pack.</code>* configuration
8190 variables for defaults and meaning.</p>
8192 <dt class="hdlist1
">rerere.autoUpdate</dt>
8194 <p>When set to true, <code>git-rerere</code> updates the index with the
8195 resulting contents after it cleanly resolves conflicts using
8196 previously recorded resolutions. Defaults to false.</p>
8198 <dt class="hdlist1
">rerere.enabled</dt>
8200 <p>Activate recording of resolved conflicts, so that identical
8201 conflict hunks can be resolved automatically, should they be
8202 encountered again. By default, <a href="git-rerere.html
">git-rerere(1)</a> is
8203 enabled if there is an <code>rr-cache</code> directory under the
8204 <code>$GIT_DIR</code>, e.g. if "rerere
" was previously used in the
8207 <dt class="hdlist1
">revert.reference</dt>
8209 <p>Setting this variable to true makes <code>git</code> <code>revert</code> behave
8210 as if the <code>--reference</code> option is given.</p>
8212 <dt class="hdlist1
">safe.bareRepository</dt>
8214 <p>Specifies which bare repositories Git will work with. The currently
8215 supported values are:</p>
8219 <p><code>all</code>: Git works with all bare repositories. This is the default.</p>
8222 <p><code>explicit</code>: Git only works with bare repositories specified via
8223 the top-level <code>--git-dir</code> command-line option, or the <code>GIT_DIR</code>
8224 environment variable (see <a href="git.html
">git(1)</a>).</p>
8225 <div class="paragraph
">
8226 <p>If you do not use bare repositories in your workflow, then it may be
8227 beneficial to set <code>safe.bareRepository</code> to <code>explicit</code> in your global
8228 config. This will protect you from attacks that involve cloning a
8229 repository that contains a bare repository and running a Git command
8230 within that directory.</p>
8232 <div class="paragraph
">
8233 <p>This config setting is only respected in protected configuration (see
8234 <a href="#SCOPES
">SCOPES</a>). This prevents untrusted repositories from tampering with
8241 <dt class="hdlist1
">safe.directory</dt>
8243 <p>These config entries specify Git-tracked directories that are
8244 considered safe even if they are owned by someone other than the
8245 current user. By default, Git will refuse to even parse a Git
8246 config of a repository owned by someone else, let alone run its
8247 hooks, and this config setting allows users to specify exceptions,
8248 e.g. for intentionally shared repositories (see the <code>--shared</code>
8249 option in <a href="git-init.html
">git-init(1)</a>).</p>
8250 <div class="paragraph
">
8251 <p>This is a multi-valued setting, i.e. you can add more than one directory
8252 via <code>git</code> <code>config</code> <code>--add</code>. To reset the list of safe directories (e.g. to
8253 override any such directories specified in the system config), add a
8254 <code>safe.directory</code> entry with an empty value.</p>
8256 <div class="paragraph
">
8257 <p>This config setting is only respected in protected configuration (see
8258 <a href="#SCOPES
">SCOPES</a>). This prevents untrusted repositories from tampering with this
8261 <div class="paragraph
">
8262 <p>The value of this setting is interpolated, i.e. <code>~/</code><em><path></em> expands to a
8263 path relative to the home directory and %(<code>prefix</code>)<code>/</code><em><path></em> expands to a
8264 path relative to Git’s (runtime) prefix.</p>
8266 <div class="paragraph
">
8267 <p>To completely opt-out of this security check, set <code>safe.directory</code> to the
8268 string *. This will allow all repositories to be treated as if their
8269 directory was listed in the <code>safe.directory</code> list. If <code>safe.directory=</code>*
8270 is set in system config and you want to re-enable this protection, then
8271 initialize your list with an empty value before listing the repositories
8272 that you deem safe. Giving a directory with <code>/</code>* appended to it will
8273 allow access to all repositories under the named directory.</p>
8275 <div class="paragraph
">
8276 <p>As explained, Git only allows you to access repositories owned by
8277 yourself, i.e. the user who is running Git, by default. When Git
8278 is running as <em>root</em> in a non Windows platform that provides sudo,
8279 however, git checks the SUDO_UID environment variable that sudo creates
8280 and will allow access to the uid recorded as its value in addition to
8281 the id from <em>root</em>.
8282 This is to make it easy to perform a common sequence during installation
8283 "make
&& sudo make install
". A git process running under <em>sudo</em> runs as
8284 <em>root</em> but the <em>sudo</em> command exports the environment variable to record
8285 which id the original user has.
8286 If that is not what you would prefer and want git to only trust
8287 repositories that are owned by root instead, then you can remove
8288 the <code>SUDO_UID</code> variable from root’s environment before invoking git.</p>
8291 <dt class="hdlist1
">sendemail.identity</dt>
8293 <p>A configuration identity. When given, causes values in the
8294 <em>sendemail.<identity></em> subsection to take precedence over
8295 values in the <em>sendemail</em> section. The default identity is
8296 the value of <code>sendemail.identity</code>.</p>
8298 <dt class="hdlist1
">sendemail.smtpEncryption</dt>
8300 <p>See <a href="git-send-email.html
">git-send-email(1)</a> for description. Note that this
8301 setting is not subject to the <em>identity</em> mechanism.</p>
8303 <dt class="hdlist1
">sendemail.smtpSSLCertPath</dt>
8305 <p>Path to ca-certificates (either a directory or a single file).
8306 Set it to an empty string to disable certificate verification.</p>
8308 <dt class="hdlist1
">sendemail.<identity>.*</dt>
8310 <p>Identity-specific versions of the <em>sendemail.*</em> parameters
8311 found below, taking precedence over those when this
8312 identity is selected, through either the command-line or
8313 <code>sendemail.identity</code>.</p>
8315 <dt class="hdlist1
">sendemail.multiEdit</dt>
8317 <p>If true (default), a single editor instance will be spawned to edit
8318 files you have to edit (patches when <code>--annotate</code> is used, and the
8319 summary when <code>--compose</code> is used). If false, files will be edited one
8320 after the other, spawning a new editor each time.</p>
8322 <dt class="hdlist1
">sendemail.confirm</dt>
8324 <p>Sets the default for whether to confirm before sending. Must be
8325 one of <em>always</em>, <em>never</em>, <em>cc</em>, <em>compose</em>, or <em>auto</em>. See <code>--confirm</code>
8326 in the <a href="git-send-email.html
">git-send-email(1)</a> documentation for the meaning of these
8329 <dt class="hdlist1
">sendemail.mailmap</dt>
8331 <p>If true, makes <a href="git-send-email.html
">git-send-email(1)</a> assume <code>--mailmap</code>,
8332 otherwise assume <code>--no-mailmap</code>. False by default.</p>
8334 <dt class="hdlist1
">sendemail.mailmap.file</dt>
8336 <p>The location of a <a href="git-send-email.html
">git-send-email(1)</a> specific augmenting
8337 mailmap file. The default mailmap and <code>mailmap.file</code> are loaded
8338 first. Thus, entries in this file take precedence over entries in
8339 the default mailmap locations. See <a href="gitmailmap.html
">gitmailmap(5)</a>.</p>
8341 <dt class="hdlist1
">sendemail.mailmap.blob</dt>
8343 <p>Like <code>sendemail.mailmap.file</code>, but consider the value as a reference
8344 to a blob in the repository. Entries in <code>sendemail.mailmap.file</code>
8345 take precedence over entries here. See <a href="gitmailmap.html
">gitmailmap(5)</a>.</p>
8347 <dt class="hdlist1
">sendemail.aliasesFile</dt>
8349 <p>To avoid typing long email addresses, point this to one or more
8350 email aliases files. You must also supply <code>sendemail.aliasFileType</code>.</p>
8352 <dt class="hdlist1
">sendemail.aliasFileType</dt>
8354 <p>Format of the file(s) specified in sendemail.aliasesFile. Must be
8355 one of <em>mutt</em>, <em>mailrc</em>, <em>pine</em>, <em>elm</em>, <em>gnus</em>, or <em>sendmail</em>.</p>
8356 <div class="paragraph
">
8357 <p>What an alias file in each format looks like can be found in
8358 the documentation of the email program of the same name. The
8359 differences and limitations from the standard formats are
8360 described below:</p>
8362 <div class="openblock
">
8363 <div class="content
">
8366 <dt class="hdlist1
">sendmail</dt>
8371 <p>Quoted aliases and quoted addresses are not supported: lines that
8372 contain a " symbol are ignored.
</p>
8375 <p>Redirection to a file (
<code>/path/name
</code>) or pipe (|
<code>command
</code>) is not
8379 <p>File inclusion (
<code>:include:
</code> <code>/path/name
</code>) is not supported.
</p>
8382 <p>Warnings are printed on the standard error output for any
8383 explicitly unsupported constructs, and any other lines that are not
8384 recognized by the parser.
</p>
8394 <dt class=
"hdlist1">sendemail.annotate
</dt>
8395 <dt class=
"hdlist1">sendemail.bcc
</dt>
8396 <dt class=
"hdlist1">sendemail.cc
</dt>
8397 <dt class=
"hdlist1">sendemail.ccCmd
</dt>
8398 <dt class=
"hdlist1">sendemail.chainReplyTo
</dt>
8399 <dt class=
"hdlist1">sendemail.envelopeSender
</dt>
8400 <dt class=
"hdlist1">sendemail.from
</dt>
8401 <dt class=
"hdlist1">sendemail.headerCmd
</dt>
8402 <dt class=
"hdlist1">sendemail.signedOffByCc
</dt>
8403 <dt class=
"hdlist1">sendemail.smtpPass
</dt>
8404 <dt class=
"hdlist1">sendemail.suppressCc
</dt>
8405 <dt class=
"hdlist1">sendemail.suppressFrom
</dt>
8406 <dt class=
"hdlist1">sendemail.to
</dt>
8407 <dt class=
"hdlist1">sendemail.toCmd
</dt>
8408 <dt class=
"hdlist1">sendemail.smtpDomain
</dt>
8409 <dt class=
"hdlist1">sendemail.smtpServer
</dt>
8410 <dt class=
"hdlist1">sendemail.smtpServerPort
</dt>
8411 <dt class=
"hdlist1">sendemail.smtpServerOption
</dt>
8412 <dt class=
"hdlist1">sendemail.smtpUser
</dt>
8413 <dt class=
"hdlist1">sendemail.thread
</dt>
8414 <dt class=
"hdlist1">sendemail.transferEncoding
</dt>
8415 <dt class=
"hdlist1">sendemail.validate
</dt>
8416 <dt class=
"hdlist1">sendemail.xmailer
</dt>
8418 <p>These configuration variables all provide a default for
8419 <a href=
"git-send-email.html">git-send-email(
1)
</a> command-line options. See its
8420 documentation for details.
</p>
8422 <dt class=
"hdlist1">sendemail.signedOffCc (deprecated)
</dt>
8424 <p>Deprecated alias for
<code>sendemail.signedOffByCc
</code>.
</p>
8426 <dt class=
"hdlist1">sendemail.smtpBatchSize
</dt>
8428 <p>Number of messages to be sent per connection, after that a relogin
8429 will happen. If the value is
0 or undefined, send all messages in
8431 See also the
<code>--batch-size
</code> option of
<a href=
"git-send-email.html">git-send-email(
1)
</a>.
</p>
8433 <dt class=
"hdlist1">sendemail.smtpReloginDelay
</dt>
8435 <p>Seconds to wait before reconnecting to the smtp server.
8436 See also the
<code>--relogin-delay
</code> option of
<a href=
"git-send-email.html">git-send-email(
1)
</a>.
</p>
8438 <dt class=
"hdlist1">sendemail.forbidSendmailVariables
</dt>
8440 <p>To avoid common misconfiguration mistakes,
<a href=
"git-send-email.html">git-send-email(
1)
</a>
8441 will abort with a warning if any configuration options for
"sendmail"
8442 exist. Set this variable to bypass the check.
</p>
8444 <dt class=
"hdlist1">sequence.editor
</dt>
8446 <p>Text editor used by
<code>git
</code> <code>rebase
</code> <code>-i
</code> for editing the rebase instruction file.
8447 The value is meant to be interpreted by the shell when it is used.
8448 It can be overridden by the
<code>GIT_SEQUENCE_EDITOR
</code> environment variable.
8449 When not configured, the default commit message editor is used instead.
</p>
8451 <dt class=
"hdlist1">showBranch.default
</dt>
8453 <p>The default set of branches for
<a href=
"git-show-branch.html">git-show-branch(
1)
</a>.
8454 See
<a href=
"git-show-branch.html">git-show-branch(
1)
</a>.
</p>
8456 <dt class=
"hdlist1">sparse.expectFilesOutsideOfPatterns
</dt>
8458 <p>Typically with sparse checkouts, files not matching any
8459 sparsity patterns are marked with a SKIP_WORKTREE bit in the
8460 index and are missing from the working tree. Accordingly, Git
8461 will ordinarily check whether files with the SKIP_WORKTREE bit
8462 are in fact present in the working tree contrary to
8463 expectations. If Git finds any, it marks those paths as
8464 present by clearing the relevant SKIP_WORKTREE bits. This
8465 option can be used to tell Git that such
8466 present-despite-skipped files are expected and to stop
8467 checking for them.
</p>
8468 <div class=
"paragraph">
8469 <p>The default is
<code>false
</code>, which allows Git to automatically recover
8470 from the list of files in the index and working tree falling out of
8473 <div class=
"paragraph">
8474 <p>Set this to
<code>true
</code> if you are in a setup where some external factor
8475 relieves Git of the responsibility for maintaining the consistency
8476 between the presence of working tree files and sparsity patterns. For
8477 example, if you have a Git-aware virtual file system that has a robust
8478 mechanism for keeping the working tree and the sparsity patterns up to
8479 date based on access patterns.
</p>
8481 <div class=
"paragraph">
8482 <p>Regardless of this setting, Git does not check for
8483 present-despite-skipped files unless sparse checkout is enabled, so
8484 this config option has no effect unless
<code>core.sparseCheckout
</code> is
8485 <code>true
</code>.
</p>
8488 <dt class=
"hdlist1">splitIndex.maxPercentChange
</dt>
8490 <p>When the split index feature is used, this specifies the
8491 percent of entries the split index can contain compared to the
8492 total number of entries in both the split index and the shared
8493 index before a new shared index is written.
8494 The value should be between
0 and
100. If the value is
0, then
8495 a new shared index is always written; if it is
100, a new
8496 shared index is never written.
8497 By default, the value is
20, so a new shared index is written
8498 if the number of entries in the split index would be greater
8499 than
20 percent of the total number of entries.
8500 See
<a href=
"git-update-index.html">git-update-index(
1)
</a>.
</p>
8502 <dt class=
"hdlist1">splitIndex.sharedIndexExpire
</dt>
8504 <p>When the split index feature is used, shared index files that
8505 were not modified since the time this variable specifies will
8506 be removed when a new shared index file is created. The value
8507 "now" expires all entries immediately, and
"never" suppresses
8508 expiration altogether.
8509 The default value is
"2.weeks.ago".
8510 Note that a shared index file is considered modified (for the
8511 purpose of expiration) each time a new split-index file is
8512 either created based on it or read from it.
8513 See
<a href=
"git-update-index.html">git-update-index(
1)
</a>.
</p>
8515 <dt class=
"hdlist1">ssh.variant
</dt>
8517 <p>By default, Git determines the command line arguments to use
8518 based on the basename of the configured SSH command (configured
8519 using the environment variable
<code>GIT_SSH
</code> or
<code>GIT_SSH_COMMAND
</code> or
8520 the config setting
<code>core.sshCommand
</code>). If the basename is
8521 unrecognized, Git will attempt to detect support of OpenSSH
8522 options by first invoking the configured SSH command with the
8523 <code>-G
</code> (print configuration) option and will subsequently use
8524 OpenSSH options (if that is successful) or no options besides
8525 the host and remote command (if it fails).
</p>
8526 <div class=
"paragraph">
8527 <p>The config variable
<code>ssh.variant
</code> can be set to override this detection.
8528 Valid values are
<code>ssh
</code> (to use OpenSSH options),
<code>plink
</code>,
<code>putty
</code>,
8529 <code>tortoiseplink
</code>,
<code>simple
</code> (no options except the host and remote command).
8530 The default auto-detection can be explicitly requested using the value
8531 <code>auto
</code>. Any other value is treated as
<code>ssh
</code>. This setting can also be
8532 overridden via the environment variable
<code>GIT_SSH_VARIANT
</code>.
</p>
8534 <div class=
"paragraph">
8535 <p>The current command-line parameters used for each variant are as
8538 <div class=
"openblock">
8539 <div class=
"content">
8543 <p><code>ssh
</code> - [-p port] [-
4] [-
6] [-o option] [username@]host command
</p>
8546 <p><code>simple
</code> - [username@]host command
</p>
8549 <p><code>plink
</code> or
<code>putty
</code> - [-P port] [-
4] [-
6] [username@]host command
</p>
8552 <p><code>tortoiseplink
</code> - [-P port] [-
4] [-
6] -batch [username@]host command
</p>
8558 <div class=
"paragraph">
8559 <p>Except for the
<code>simple
</code> variant, command-line parameters are likely to
8560 change as git gains new features.
</p>
8563 <dt class=
"hdlist1">stash.showIncludeUntracked
</dt>
8565 <p>If this is set to true, the
<code>git
</code> <code>stash
</code> <code>show
</code> command will show
8566 the untracked files of a stash entry. Defaults to false. See
8567 the description of the
<em>show
</em> command in
<a href=
"git-stash.html">git-stash(
1)
</a>.
</p>
8569 <dt class=
"hdlist1">stash.showPatch
</dt>
8571 <p>If this is set to true, the
<code>git
</code> <code>stash
</code> <code>show
</code> command without an
8572 option will show the stash entry in patch form. Defaults to false.
8573 See the description of the
<em>show
</em> command in
<a href=
"git-stash.html">git-stash(
1)
</a>.
</p>
8575 <dt class=
"hdlist1">stash.showStat
</dt>
8577 <p>If this is set to true, the
<code>git
</code> <code>stash
</code> <code>show
</code> command without an
8578 option will show a diffstat of the stash entry. Defaults to true.
8579 See the description of the
<em>show
</em> command in
<a href=
"git-stash.html">git-stash(
1)
</a>.
</p>
8581 <dt class=
"hdlist1">status.relativePaths
</dt>
8583 <p>By default,
<a href=
"git-status.html">git-status(
1)
</a> shows paths relative to the
8584 current directory. Setting this variable to
<code>false
</code> shows paths
8585 relative to the repository root (this was the default for Git
8586 prior to v1.5
.4).
</p>
8588 <dt class=
"hdlist1">status.short
</dt>
8590 <p>Set to true to enable --short by default in
<a href=
"git-status.html">git-status(
1)
</a>.
8591 The option --no-short takes precedence over this variable.
</p>
8593 <dt class=
"hdlist1">status.branch
</dt>
8595 <p>Set to true to enable --branch by default in
<a href=
"git-status.html">git-status(
1)
</a>.
8596 The option --no-branch takes precedence over this variable.
</p>
8598 <dt class=
"hdlist1">status.aheadBehind
</dt>
8600 <p>Set to true to enable
<code>--ahead-behind
</code> and false to enable
8601 <code>--no-ahead-behind
</code> by default in
<a href=
"git-status.html">git-status(
1)
</a> for
8602 non-porcelain status formats. Defaults to true.
</p>
8604 <dt class=
"hdlist1">status.displayCommentPrefix
</dt>
8606 <p>If set to true,
<a href=
"git-status.html">git-status(
1)
</a> will insert a comment
8607 prefix before each output line (starting with
8608 <code>core.commentChar
</code>, i.e. # by default). This was the
8609 behavior of
<a href=
"git-status.html">git-status(
1)
</a> in Git
1.8.4 and previous.
8610 Defaults to false.
</p>
8612 <dt class=
"hdlist1">status.renameLimit
</dt>
8614 <p>The number of files to consider when performing rename detection
8615 in
<a href=
"git-status.html">git-status(
1)
</a> and
<a href=
"git-commit.html">git-commit(
1)
</a>. Defaults to
8616 the value of diff.renameLimit.
</p>
8618 <dt class=
"hdlist1">status.renames
</dt>
8620 <p>Whether and how Git detects renames in
<a href=
"git-status.html">git-status(
1)
</a> and
8621 <a href=
"git-commit.html">git-commit(
1)
</a> . If set to
"false", rename detection is
8622 disabled. If set to
"true", basic rename detection is enabled.
8623 If set to
"copies" or
"copy", Git will detect copies, as well.
8624 Defaults to the value of diff.renames.
</p>
8626 <dt class=
"hdlist1">status.showStash
</dt>
8628 <p>If set to true,
<a href=
"git-status.html">git-status(
1)
</a> will display the number of
8629 entries currently stashed away.
8630 Defaults to false.
</p>
8632 <dt class=
"hdlist1">status.showUntrackedFiles
</dt>
8634 <p>By default,
<a href=
"git-status.html">git-status(
1)
</a> and
<a href=
"git-commit.html">git-commit(
1)
</a> show
8635 files which are not currently tracked by Git. Directories which
8636 contain only untracked files, are shown with the directory name
8637 only. Showing untracked files means that Git needs to lstat() all
8638 the files in the whole repository, which might be slow on some
8639 systems. So, this variable controls how the commands display
8640 the untracked files. Possible values are:
</p>
8641 <div class=
"openblock">
8642 <div class=
"content">
8646 <p><code>no
</code> - Show no untracked files.
</p>
8649 <p><code>normal
</code> - Show untracked files and directories.
</p>
8652 <p><code>all
</code> - Show also individual files in untracked directories.
</p>
8658 <div class=
"paragraph">
8659 <p>If this variable is not specified, it defaults to
<em>normal
</em>.
8660 All usual spellings for Boolean value
<code>true
</code> are taken as
<code>normal
</code>
8661 and
<code>false
</code> as
<code>no
</code>.
8662 This variable can be overridden with the -u|--untracked-files option
8663 of
<a href=
"git-status.html">git-status(
1)
</a> and
<a href=
"git-commit.html">git-commit(
1)
</a>.
</p>
8666 <dt class=
"hdlist1">status.submoduleSummary
</dt>
8668 <p>Defaults to false.
8669 If this is set to a non-zero number or true (identical to -
1 or an
8670 unlimited number), the submodule summary will be enabled and a
8671 summary of commits for modified submodules will be shown (see
8672 --summary-limit option of
<a href=
"git-submodule.html">git-submodule(
1)
</a>). Please note
8673 that the summary output command will be suppressed for all
8674 submodules when
<code>diff.ignoreSubmodules
</code> is set to
<em>all
</em> or only
8675 for those submodules where
<code>submodule.
</code><em><name
></em><code>.ignore=all
</code>. The only
8676 exception to that rule is that status and commit will show staged
8677 submodule changes. To
8678 also view the summary for ignored submodules you can either use
8679 the --ignore-submodules=dirty command-line option or the
<em>git
8680 submodule summary
</em> command, which shows a similar output but does
8681 not honor these settings.
</p>
8683 <dt class=
"hdlist1">submodule.
<name
>.url
</dt>
8685 <p>The URL for a submodule. This variable is copied from the .gitmodules
8686 file to the git config via
<em>git submodule init
</em>. The user can change
8687 the configured URL before obtaining the submodule via
<em>git submodule
8688 update
</em>. If neither submodule.
<name
>.active nor submodule.active are
8689 set, the presence of this variable is used as a fallback to indicate
8690 whether the submodule is of interest to git commands.
8691 See
<a href=
"git-submodule.html">git-submodule(
1)
</a> and
<a href=
"gitmodules.html">gitmodules(
5)
</a> for details.
</p>
8693 <dt class=
"hdlist1">submodule.
<name
>.update
</dt>
8695 <p>The method by which a submodule is updated by
<em>git submodule update
</em>,
8696 which is the only affected command, others such as
8697 <em>git checkout --recurse-submodules
</em> are unaffected. It exists for
8698 historical reasons, when
<em>git submodule
</em> was the only command to
8699 interact with submodules; settings like
<code>submodule.active
</code>
8700 and
<code>pull.rebase
</code> are more specific. It is populated by
8701 <code>git
</code> <code>submodule
</code> <code>init
</code> from the
<a href=
"gitmodules.html">gitmodules(
5)
</a> file.
8702 See description of
<em>update
</em> command in
<a href=
"git-submodule.html">git-submodule(
1)
</a>.
</p>
8704 <dt class=
"hdlist1">submodule.
<name
>.branch
</dt>
8706 <p>The remote branch name for a submodule, used by
<code>git
</code> <code>submodule
</code>
8707 <code>update
</code> <code>--remote
</code>. Set this option to override the value found in
8708 the .
<code>gitmodules
</code> file. See
<a href=
"git-submodule.html">git-submodule(
1)
</a> and
8709 <a href=
"gitmodules.html">gitmodules(
5)
</a> for details.
</p>
8711 <dt class=
"hdlist1">submodule.
<name
>.fetchRecurseSubmodules
</dt>
8713 <p>This option can be used to control recursive fetching of this
8714 submodule. It can be overridden by using the --[no-]recurse-submodules
8715 command-line option to
"git fetch" and
"git pull".
8716 This setting will override that from in the
<a href=
"gitmodules.html">gitmodules(
5)
</a>
8719 <dt class=
"hdlist1">submodule.
<name
>.ignore
</dt>
8721 <p>Defines under what circumstances
"git status" and the diff family show
8722 a submodule as modified. When set to
"all", it will never be considered
8723 modified (but it will nonetheless show up in the output of status and
8724 commit when it has been staged),
"dirty" will ignore all changes
8725 to the submodule
’s work tree and
8726 takes only differences between the HEAD of the submodule and the commit
8727 recorded in the superproject into account.
"untracked" will additionally
8728 let submodules with modified tracked files in their work tree show up.
8729 Using
"none" (the default when this option is not set) also shows
8730 submodules that have untracked files in their work tree as changed.
8731 This setting overrides any setting made in .gitmodules for this submodule,
8732 both settings can be overridden on the command line by using the
8733 "--ignore-submodules" option. The
<em>git submodule
</em> commands are not
8734 affected by this setting.
</p>
8736 <dt class=
"hdlist1">submodule.
<name
>.active
</dt>
8738 <p>Boolean value indicating if the submodule is of interest to git
8739 commands. This config option takes precedence over the
8740 submodule.active config option. See
<a href=
"gitsubmodules.html">gitsubmodules(
7)
</a> for
8743 <dt class=
"hdlist1">submodule.active
</dt>
8745 <p>A repeated field which contains a pathspec used to match against a
8746 submodule
’s path to determine if the submodule is of interest to git
8747 commands. See
<a href=
"gitsubmodules.html">gitsubmodules(
7)
</a> for details.
</p>
8749 <dt class=
"hdlist1">submodule.recurse
</dt>
8751 <p>A boolean indicating if commands should enable the
<code>--recurse-submodules
</code>
8752 option by default. Defaults to false.
</p>
8753 <div class=
"paragraph">
8754 <p>When set to true, it can be deactivated via the
8755 <code>--no-recurse-submodules
</code> option. Note that some Git commands
8756 lacking this option may call some of the above commands affected by
8757 <code>submodule.recurse
</code>; for instance
<code>git
</code> <code>remote
</code> <code>update
</code> will call
8758 <code>git
</code> <code>fetch
</code> but does not have a
<code>--no-recurse-submodules
</code> option.
8759 For these commands a workaround is to temporarily change the
8760 configuration value by using
<code>git
</code> <code>-c
</code> <code>submodule.recurse=
0</code>.
</p>
8762 <div class=
"paragraph">
8763 <p>The following list shows the commands that accept
8764 <code>--recurse-submodules
</code> and whether they are supported by this
8770 <p><code>checkout
</code>,
<code>fetch
</code>,
<code>grep
</code>,
<code>pull
</code>,
<code>push
</code>,
<code>read-tree
</code>,
8771 <code>reset
</code>,
<code>restore
</code> and
<code>switch
</code> are always supported.
</p>
8774 <p><code>clone
</code> and
<code>ls-files
</code> are not supported.
</p>
8777 <p><code>branch
</code> is supported only if
<code>submodule.propagateBranches
</code> is
8783 <dt class=
"hdlist1">submodule.propagateBranches
</dt>
8785 <p>[EXPERIMENTAL] A boolean that enables branching support when
8786 using
<code>--recurse-submodules
</code> or
<code>submodule.recurse=true
</code>.
8787 Enabling this will allow certain commands to accept
8788 <code>--recurse-submodules
</code> and certain commands that already accept
8789 <code>--recurse-submodules
</code> will now consider branches.
8790 Defaults to false.
</p>
8792 <dt class=
"hdlist1">submodule.fetchJobs
</dt>
8794 <p>Specifies how many submodules are fetched/cloned at the same time.
8795 A positive integer allows up to that number of submodules fetched
8796 in parallel. A value of
0 will give some reasonable default.
8797 If unset, it defaults to
1.
</p>
8799 <dt class=
"hdlist1">submodule.alternateLocation
</dt>
8801 <p>Specifies how the submodules obtain alternates when submodules are
8802 cloned. Possible values are
<code>no
</code>,
<code>superproject
</code>.
8803 By default
<code>no
</code> is assumed, which doesn
’t add references. When the
8804 value is set to
<code>superproject
</code> the submodule to be cloned computes
8805 its alternates location relative to the superprojects alternate.
</p>
8807 <dt class=
"hdlist1">submodule.alternateErrorStrategy
</dt>
8809 <p>Specifies how to treat errors with the alternates for a submodule
8810 as computed via
<code>submodule.alternateLocation
</code>. Possible values are
8811 <code>ignore
</code>,
<code>info
</code>,
<code>die
</code>. Default is
<code>die
</code>. Note that if set to
<code>ignore
</code>
8812 or
<code>info
</code>, and if there is an error with the computed alternate, the
8813 clone proceeds as if no alternate was specified.
</p>
8815 <dt class=
"hdlist1">tag.forceSignAnnotated
</dt>
8817 <p>A boolean to specify whether annotated tags created should be GPG signed.
8818 If
<code>--annotate
</code> is specified on the command line, it takes
8819 precedence over this option.
</p>
8821 <dt class=
"hdlist1">tag.sort
</dt>
8823 <p>This variable controls the sort ordering of tags when displayed by
8824 <a href=
"git-tag.html">git-tag(
1)
</a>. Without the
"--sort=<value>" option provided, the
8825 value of this variable will be used as the default.
</p>
8827 <dt class=
"hdlist1">tag.gpgSign
</dt>
8829 <p>A boolean to specify whether all tags should be GPG signed.
8830 Use of this option when running in an automated script can
8831 result in a large number of tags being signed. It is therefore
8832 convenient to use an agent to avoid typing your gpg passphrase
8833 several times. Note that this option doesn
’t affect tag signing
8834 behavior enabled by
"-u <keyid>" or
"--local-user=<keyid>" options.
</p>
8836 <dt class=
"hdlist1">tar.umask
</dt>
8838 <p>This variable can be used to restrict the permission bits of
8839 tar archive entries. The default is
0002, which turns off the
8840 world write bit. The special value
"user" indicates that the
8841 archiving user
’s umask will be used instead. See umask(
2) and
8842 <a href=
"git-archive.html">git-archive(
1)
</a>.
</p>
8846 <div class=
"paragraph">
8847 <p>Trace2 config settings are only read from the system and global
8848 config files; repository local and worktree config files and
<code>-c
</code>
8849 command line arguments are not respected.
</p>
8853 <dt class=
"hdlist1">trace2.normalTarget
</dt>
8855 <p>This variable controls the normal target destination.
8856 It may be overridden by the
<code>GIT_TRACE2
</code> environment variable.
8857 The following table shows possible values.
</p>
8859 <dt class=
"hdlist1">trace2.perfTarget
</dt>
8861 <p>This variable controls the performance target destination.
8862 It may be overridden by the
<code>GIT_TRACE2_PERF
</code> environment variable.
8863 The following table shows possible values.
</p>
8865 <dt class=
"hdlist1">trace2.eventTarget
</dt>
8867 <p>This variable controls the event target destination.
8868 It may be overridden by the
<code>GIT_TRACE2_EVENT
</code> environment variable.
8869 The following table shows possible values.
</p>
8870 <div class=
"openblock">
8871 <div class=
"content">
8875 <p><code>0</code> or
<code>false
</code> - Disables the target.
</p>
8878 <p><code>1</code> or
<code>true
</code> - Writes to
<code>STDERR
</code>.
</p>
8881 <p>[
<code>2-
9</code>] - Writes to the already opened file descriptor.
</p>
8884 <p><em><absolute-pathname
></em> - Writes to the file in append mode. If the target
8885 already exists and is a directory, the traces will be written to files (one
8886 per process) underneath the given directory.
</p>
8889 <p><code>af_unix:
</code>[
<em><socket-type
></em><code>:
</code>]
<em><absolute-pathname
></em> - Write to a
8890 Unix DomainSocket (on platforms that support them). Socket
8891 type can be either
<code>stream
</code> or
<code>dgram
</code>; if omitted Git will
8899 <dt class=
"hdlist1">trace2.normalBrief
</dt>
8901 <p>Boolean. When true
<code>time
</code>,
<code>filename
</code>, and
<code>line
</code> fields are
8902 omitted from normal output. May be overridden by the
8903 <code>GIT_TRACE2_BRIEF
</code> environment variable. Defaults to false.
</p>
8905 <dt class=
"hdlist1">trace2.perfBrief
</dt>
8907 <p>Boolean. When true
<code>time
</code>,
<code>filename
</code>, and
<code>line
</code> fields are
8908 omitted from PERF output. May be overridden by the
8909 <code>GIT_TRACE2_PERF_BRIEF
</code> environment variable. Defaults to false.
</p>
8911 <dt class=
"hdlist1">trace2.eventBrief
</dt>
8913 <p>Boolean. When true
<code>time
</code>,
<code>filename
</code>, and
<code>line
</code> fields are
8914 omitted from event output. May be overridden by the
8915 <code>GIT_TRACE2_EVENT_BRIEF
</code> environment variable. Defaults to false.
</p>
8917 <dt class=
"hdlist1">trace2.eventNesting
</dt>
8919 <p>Integer. Specifies desired depth of nested regions in the
8920 event output. Regions deeper than this value will be
8921 omitted. May be overridden by the
<code>GIT_TRACE2_EVENT_NESTING
</code>
8922 environment variable. Defaults to
2.
</p>
8924 <dt class=
"hdlist1">trace2.configParams
</dt>
8926 <p>A comma-separated list of patterns of
"important" config
8927 settings that should be recorded in the trace2 output.
8928 For example,
<code>core.
</code>*,remote.*.
<code>url
</code> would cause the trace2
8929 output to contain events listing each configured remote.
8930 May be overridden by the
<code>GIT_TRACE2_CONFIG_PARAMS
</code> environment
8931 variable. Unset by default.
</p>
8933 <dt class=
"hdlist1">trace2.envVars
</dt>
8935 <p>A comma-separated list of
"important" environment variables that should
8936 be recorded in the trace2 output. For example,
8937 <code>GIT_HTTP_USER_AGENT,GIT_CONFIG
</code> would cause the trace2 output to
8938 contain events listing the overrides for HTTP user agent and the
8939 location of the Git configuration file (assuming any are set). May be
8940 overridden by the
<code>GIT_TRACE2_ENV_VARS
</code> environment variable. Unset by
8943 <dt class=
"hdlist1">trace2.destinationDebug
</dt>
8945 <p>Boolean. When true Git will print error messages when a
8946 trace target destination cannot be opened for writing.
8947 By default, these errors are suppressed and tracing is
8948 silently disabled. May be overridden by the
8949 <code>GIT_TRACE2_DST_DEBUG
</code> environment variable.
</p>
8951 <dt class=
"hdlist1">trace2.maxFiles
</dt>
8953 <p>Integer. When writing trace files to a target directory, do not
8954 write additional traces if doing so would exceed this many files. Instead,
8955 write a sentinel file that will block further tracing to this
8956 directory. Defaults to
0, which disables this check.
</p>
8958 <dt class=
"hdlist1">transfer.credentialsInUrl
</dt>
8960 <p>A configured URL can contain plaintext credentials in the form
8961 <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
8962 to warn or forbid the use of such configuration (in favor of
8963 using
<a href=
"git-credential.html">git-credential(
1)
</a>). This will be used on
8964 <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>,
8965 and any other direct use of the configured URL.
</p>
8966 <div class=
"paragraph">
8967 <p>Note that this is currently limited to detecting credentials in
8968 <code>remote.
</code><em><name
></em><code>.url
</code> configuration; it won
’t detect credentials in
8969 <code>remote.
</code><em><name
></em><code>.pushurl
</code> configuration.
</p>
8971 <div class=
"paragraph">
8972 <p>You might want to enable this to prevent inadvertent credentials
8973 exposure, e.g. because:
</p>
8978 <p>The OS or system where you
’re running git may not provide a way or
8979 otherwise allow you to configure the permissions of the
8980 configuration file where the username and/or password are stored.
</p>
8983 <p>Even if it does, having such data stored
"at rest" might expose you
8984 in other ways, e.g. a backup process might copy the data to another
8988 <p>The git programs will pass the full URL to one another as arguments
8989 on the command-line, meaning the credentials will be exposed to other
8990 unprivileged users on systems that allow them to see the full
8991 process list of other users. On linux the
"hidepid" setting
8992 documented in procfs(
5) allows for configuring this behavior.
</p>
8993 <div class=
"paragraph">
8994 <p>If such concerns don
’t apply to you then you probably don
’t need to be
8995 concerned about credentials exposure due to storing sensitive
8996 data in git
’s configuration files. If you do want to use this, set
8997 <code>transfer.credentialsInUrl
</code> to one of these values:
</p>
9001 <p><code>allow
</code> (default): Git will proceed with its activity without warning.
</p>
9004 <p><code>warn
</code>: Git will write a warning message to
<code>stderr
</code> when parsing a URL
9005 with a plaintext credential.
</p>
9008 <p><code>die
</code>: Git will write a failure message to
<code>stderr
</code> when parsing a URL
9009 with a plaintext credential.
</p>
9014 <dt class=
"hdlist1">transfer.fsckObjects
</dt>
9016 <p>When
<code>fetch.fsckObjects
</code> or
<code>receive.fsckObjects
</code> are
9017 not set, the value of this variable is used instead.
9018 Defaults to false.
</p>
9019 <div class=
"paragraph">
9020 <p>When set, the fetch or receive will abort in the case of a malformed
9021 object or a link to a nonexistent object. In addition, various other
9022 issues are checked for, including legacy issues (see
<code>fsck.
</code><em><msg-id
></em>),
9023 and potential security issues like the existence of a .
<code>GIT
</code> directory
9024 or a malicious .
<code>gitmodules
</code> file (see the release notes for v2.2
.1
9025 and v2.17
.1 for details). Other sanity and security checks may be
9026 added in future releases.
</p>
9028 <div class=
"paragraph">
9029 <p>On the receiving side, failing fsckObjects will make those objects
9030 unreachable, see
"QUARANTINE ENVIRONMENT" in
9031 <a href=
"git-receive-pack.html">git-receive-pack(
1)
</a>. On the fetch side, malformed objects will
9032 instead be left unreferenced in the repository.
</p>
9034 <div class=
"paragraph">
9035 <p>Due to the non-quarantine nature of the
<code>fetch.fsckObjects
</code>
9036 implementation it cannot be relied upon to leave the object store
9037 clean like
<code>receive.fsckObjects
</code> can.
</p>
9039 <div class=
"paragraph">
9040 <p>As objects are unpacked they
’re written to the object store, so there
9041 can be cases where malicious objects get introduced even though the
9042 "fetch" failed, only to have a subsequent
"fetch" succeed because only
9043 new incoming objects are checked, not those that have already been
9044 written to the object store. That difference in behavior should not be
9045 relied upon. In the future, such objects may be quarantined for
9046 "fetch" as well.
</p>
9048 <div class=
"paragraph">
9049 <p>For now, the paranoid need to find some way to emulate the quarantine
9050 environment if they
’d like the same protection as
"push". E.g. in the
9051 case of an internal mirror do the mirroring in two steps, one to fetch
9052 the untrusted objects, and then do a second
"push" (which will use the
9053 quarantine) to another internal repo, and have internal clients
9054 consume this pushed-to repository, or embargo internal fetches and
9055 only allow them once a full
"fsck" has run (and no new fetches have
9056 happened in the meantime).
</p>
9059 <dt class=
"hdlist1">transfer.hideRefs
</dt>
9061 <p>String(s)
<code>receive-pack
</code> and
<code>upload-pack
</code> use to decide which
9062 refs to omit from their initial advertisements. Use more than
9063 one definition to specify multiple prefix strings. A ref that is
9064 under the hierarchies listed in the value of this variable is
9065 excluded, and is hidden when responding to
<code>git
</code> <code>push
</code> or
<code>git
</code>
9066 <code>fetch
</code>. See
<code>receive.hideRefs
</code> and
<code>uploadpack.hideRefs
</code> for
9067 program-specific versions of this config.
</p>
9068 <div class=
"paragraph">
9069 <p>You may also include a ! in front of the ref name to negate the entry,
9070 explicitly exposing it, even if an earlier entry marked it as hidden.
9071 If you have multiple hideRefs values, later entries override earlier ones
9072 (and entries in more-specific config files override less-specific ones).
</p>
9074 <div class=
"paragraph">
9075 <p>If a namespace is in use, the namespace prefix is stripped from each
9076 reference before it is matched against
<code>transfer.hiderefs
</code> patterns. In
9077 order to match refs before stripping, add a
<code>^
</code> in front of the ref name. If
9078 you combine ! and
<code>^
</code>, ! must be specified first.
</p>
9080 <div class=
"paragraph">
9081 <p>For example, if
<code>refs/heads/master
</code> is specified in
<code>transfer.hideRefs
</code> and
9082 the current namespace is
<code>foo
</code>, then
<code>refs/namespaces/foo/refs/heads/master
</code>
9083 is omitted from the advertisements. If
<code>uploadpack.allowRefInWant
</code> is set,
9084 <code>upload-pack
</code> will treat
<code>want-ref
</code> <code>refs/heads/master
</code> in a protocol v2
9085 <code>fetch
</code> command as if
<code>refs/namespaces/foo/refs/heads/master
</code> did not exist.
9086 <code>receive-pack
</code>, on the other hand, will still advertise the object id the
9087 ref is pointing to without mentioning its name (a so-called
".have" line).
</p>
9089 <div class=
"paragraph">
9090 <p>Even if you hide refs, a client may still be able to steal the target
9091 objects via the techniques described in the
"SECURITY" section of the
9092 <a href=
"gitnamespaces.html">gitnamespaces(
7)
</a> man page; it
’s best to keep private data in a
9093 separate repository.
</p>
9096 <dt class=
"hdlist1">transfer.unpackLimit
</dt>
9098 <p>When
<code>fetch.unpackLimit
</code> or
<code>receive.unpackLimit
</code> are
9099 not set, the value of this variable is used instead.
9100 The default value is
100.
</p>
9102 <dt class=
"hdlist1">transfer.advertiseSID
</dt>
9104 <p>Boolean. When true, client and server processes will advertise their
9105 unique session IDs to their remote counterpart. Defaults to false.
</p>
9107 <dt class=
"hdlist1">transfer.bundleURI
</dt>
9109 <p>When
<code>true
</code>, local
<code>git
</code> <code>clone
</code> commands will request bundle
9110 information from the remote server (if advertised) and download
9111 bundles before continuing the clone through the Git protocol.
9112 Defaults to
<code>false
</code>.
</p>
9114 <dt class=
"hdlist1">transfer.advertiseObjectInfo
</dt>
9116 <p>When
<code>true
</code>, the
<code>object-info
</code> capability is advertised by
9117 servers. Defaults to false.
</p>
9119 <dt class=
"hdlist1">uploadarchive.allowUnreachable
</dt>
9121 <p>If true, allow clients to use
<code>git
</code> <code>archive
</code> <code>--remote
</code> to request
9122 any tree, whether reachable from the ref tips or not. See the
9123 discussion in the
"SECURITY" section of
9124 <a href=
"git-upload-archive.html">git-upload-archive(
1)
</a> for more details. Defaults to
9125 <code>false
</code>.
</p>
9127 <dt class=
"hdlist1">uploadpack.hideRefs
</dt>
9129 <p>This variable is the same as
<code>transfer.hideRefs
</code>, but applies
9130 only to
<code>upload-pack
</code> (and so affects only fetches, not pushes).
9131 An attempt to fetch a hidden ref by
<code>git
</code> <code>fetch
</code> will fail. See
9132 also
<code>uploadpack.allowTipSHA1InWant
</code>.
</p>
9134 <dt class=
"hdlist1">uploadpack.allowTipSHA1InWant
</dt>
9136 <p>When
<code>uploadpack.hideRefs
</code> is in effect, allow
<code>upload-pack
</code>
9137 to accept a fetch request that asks for an object at the tip
9138 of a hidden ref (by default, such a request is rejected).
9139 See also
<code>uploadpack.hideRefs
</code>. Even if this is false, a client
9140 may be able to steal objects via the techniques described in the
9141 "SECURITY" section of the
<a href=
"gitnamespaces.html">gitnamespaces(
7)
</a> man page; it
’s
9142 best to keep private data in a separate repository.
</p>
9144 <dt class=
"hdlist1">uploadpack.allowReachableSHA1InWant
</dt>
9146 <p>Allow
<code>upload-pack
</code> to accept a fetch request that asks for an
9147 object that is reachable from any ref tip. However, note that
9148 calculating object reachability is computationally expensive.
9149 Defaults to
<code>false
</code>. Even if this is false, a client may be able
9150 to steal objects via the techniques described in the
"SECURITY"
9151 section of the
<a href=
"gitnamespaces.html">gitnamespaces(
7)
</a> man page; it
’s best to
9152 keep private data in a separate repository.
</p>
9154 <dt class=
"hdlist1">uploadpack.allowAnySHA1InWant
</dt>
9156 <p>Allow
<code>upload-pack
</code> to accept a fetch request that asks for any
9158 It implies
<code>uploadpack.allowTipSHA1InWant
</code> and
9159 <code>uploadpack.allowReachableSHA1InWant
</code>. If set to
<code>true
</code> it will
9160 enable both of them, it set to
<code>false
</code> it will disable both of
9162 By default not set.
</p>
9164 <dt class=
"hdlist1">uploadpack.keepAlive
</dt>
9166 <p>When
<code>upload-pack
</code> has started
<code>pack-objects
</code>, there may be a
9167 quiet period while
<code>pack-objects
</code> prepares the pack. Normally
9168 it would output progress information, but if
<code>--quiet
</code> was used
9169 for the fetch,
<code>pack-objects
</code> will output nothing at all until
9170 the pack data begins. Some clients and networks may consider
9171 the server to be hung and give up. Setting this option instructs
9172 <code>upload-pack
</code> to send an empty keepalive packet every
9173 <code>uploadpack.keepAlive
</code> seconds. Setting this option to
0
9174 disables keepalive packets entirely. The default is
5 seconds.
</p>
9176 <dt class=
"hdlist1">uploadpack.packObjectsHook
</dt>
9178 <p>If this option is set, when
<code>upload-pack
</code> would run
9179 <code>git
</code> <code>pack-objects
</code> to create a packfile for a client, it will
9180 run this shell command instead. The
<code>pack-objects
</code> command and
9181 arguments it
<em>would
</em> have run (including the
<code>git
</code> <code>pack-objects
</code>
9182 at the beginning) are appended to the shell command. The stdin
9183 and stdout of the hook are treated as if
<code>pack-objects
</code> itself
9184 was run. I.e.,
<code>upload-pack
</code> will feed input intended for
9185 <code>pack-objects
</code> to the hook, and expects a completed packfile on
9187 <div class=
"paragraph">
9188 <p>Note that this configuration variable is only respected when it is specified
9189 in protected configuration (see
<a href=
"#SCOPES">SCOPES
</a>). This is a safety measure
9190 against fetching from untrusted repositories.
</p>
9193 <dt class=
"hdlist1">uploadpack.allowFilter
</dt>
9195 <p>If this option is set,
<code>upload-pack
</code> will support partial
9196 clone and partial fetch object filtering.
</p>
9198 <dt class=
"hdlist1">uploadpackfilter.allow
</dt>
9200 <p>Provides a default value for unspecified object filters (see: the
9201 below configuration variable). If set to
<code>true
</code>, this will also
9202 enable all filters which get added in the future.
9203 Defaults to
<code>true
</code>.
</p>
9205 <dt class=
"hdlist1">uploadpackfilter.
<filter
>.allow
</dt>
9207 <p>Explicitly allow or ban the object filter corresponding to
9208 <em><filter
></em>, where
<em><filter
></em> may be one of:
<code>blob:none
</code>,
9209 <code>blob:limit
</code>,
<code>object:type
</code>,
<code>tree
</code>,
<code>sparse:oid
</code>, or
<code>combine
</code>.
9210 If using combined filters, both
<code>combine
</code> and all of the nested
9211 filter kinds must be allowed. Defaults to
<code>uploadpackfilter.allow
</code>.
</p>
9213 <dt class=
"hdlist1">uploadpackfilter.tree.maxDepth
</dt>
9215 <p>Only allow
<code>--filter=tree:
</code><em><n
></em> when
<em><n
></em> is no more than the value of
9216 <code>uploadpackfilter.tree.maxDepth
</code>. If set, this also implies
9217 <code>uploadpackfilter.tree.allow=true
</code>, unless this configuration
9218 variable had already been set. Has no effect if unset.
</p>
9220 <dt class=
"hdlist1">uploadpack.allowRefInWant
</dt>
9222 <p>If this option is set,
<code>upload-pack
</code> will support the
<code>ref-in-want
</code>
9223 feature of the protocol version
2 <code>fetch
</code> command. This feature
9224 is intended for the benefit of load-balanced servers which may
9225 not have the same view of what OIDs their refs point to due to
9226 replication delay.
</p>
9228 <dt class=
"hdlist1">url.
<base
>.insteadOf
</dt>
9230 <p>Any URL that starts with this value will be rewritten to
9231 start, instead, with
<base
>. In cases where some site serves a
9232 large number of repositories, and serves them with multiple
9233 access methods, and some users need to use different access
9234 methods, this feature allows people to specify any of the
9235 equivalent URLs and have Git automatically rewrite the URL to
9236 the best alternative for the particular user, even for a
9237 never-before-seen repository on the site. When more than one
9238 insteadOf strings match a given URL, the longest match is used.
</p>
9239 <div class=
"paragraph">
9240 <p>Note that any protocol restrictions will be applied to the rewritten
9241 URL. If the rewrite changes the URL to use a custom protocol or remote
9242 helper, you may need to adjust the
<code>protocol.
</code>*.
<code>allow
</code> config to permit
9243 the request. In particular, protocols you expect to use for submodules
9244 must be set to
<code>always
</code> rather than the default of
<code>user
</code>. See the
9245 description of
<code>protocol.allow
</code> above.
</p>
9248 <dt class=
"hdlist1">url.
<base
>.pushInsteadOf
</dt>
9250 <p>Any URL that starts with this value will not be pushed to;
9251 instead, it will be rewritten to start with
<base
>, and the
9252 resulting URL will be pushed to. In cases where some site serves
9253 a large number of repositories, and serves them with multiple
9254 access methods, some of which do not allow push, this feature
9255 allows people to specify a pull-only URL and have Git
9256 automatically use an appropriate URL to push, even for a
9257 never-before-seen repository on the site. When more than one
9258 pushInsteadOf strings match a given URL, the longest match is
9259 used. If a remote has an explicit pushurl, Git will ignore this
9260 setting for that remote.
</p>
9262 <dt class=
"hdlist1">user.name
</dt>
9263 <dt class=
"hdlist1">user.email
</dt>
9264 <dt class=
"hdlist1">author.name
</dt>
9265 <dt class=
"hdlist1">author.email
</dt>
9266 <dt class=
"hdlist1">committer.name
</dt>
9267 <dt class=
"hdlist1">committer.email
</dt>
9269 <p>The
<code>user.name
</code> and
<code>user.email
</code> variables determine what ends
9270 up in the
<code>author
</code> and
<code>committer
</code> fields of commit
9272 If you need the
<code>author
</code> or
<code>committer
</code> to be different, the
9273 <code>author.name
</code>,
<code>author.email
</code>,
<code>committer.name
</code>, or
9274 <code>committer.email
</code> variables can be set.
9275 All of these can be overridden by the
<code>GIT_AUTHOR_NAME
</code>,
9276 <code>GIT_AUTHOR_EMAIL
</code>,
<code>GIT_COMMITTER_NAME
</code>,
9277 <code>GIT_COMMITTER_EMAIL
</code>, and
<code>EMAIL
</code> environment variables.
</p>
9278 <div class=
"paragraph">
9279 <p>Note that the
<code>name
</code> forms of these variables conventionally refer to
9280 some form of a personal name. See
<a href=
"git-commit.html">git-commit(
1)
</a> and the
9281 environment variables section of
<a href=
"git.html">git(
1)
</a> for more information on
9282 these settings and the
<code>credential.username
</code> option if you
’re looking
9283 for authentication credentials instead.
</p>
9286 <dt class=
"hdlist1">user.useConfigOnly
</dt>
9288 <p>Instruct Git to avoid trying to guess defaults for
<code>user.email
</code>
9289 and
<code>user.name
</code>, and instead retrieve the values only from the
9290 configuration. For example, if you have multiple email addresses
9291 and would like to use a different one for each repository, then
9292 with this configuration option set to
<code>true
</code> in the global config
9293 along with a name, Git will prompt you to set up an email before
9294 making new commits in a newly cloned repository.
9295 Defaults to
<code>false
</code>.
</p>
9297 <dt class=
"hdlist1">user.signingKey
</dt>
9299 <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
9300 key you want it to automatically when creating a signed tag or
9301 commit, you can override the default selection with this variable.
9302 This option is passed unchanged to gpg
’s --local-user parameter,
9303 so you may specify a key using any method that gpg supports.
9304 If gpg.format is set to
<code>ssh
</code> this can contain the path to either
9305 your private ssh key or the public key when ssh-agent is used.
9306 Alternatively it can contain a public key prefixed with
<code>key::
</code>
9307 directly (e.g.:
"key::ssh-rsa XXXXXX identifier"). The private key
9308 needs to be available via ssh-agent. If not set Git will call
9309 gpg.ssh.defaultKeyCommand (e.g.:
"ssh-add -L") and try to use the
9310 first key available. For backward compatibility, a raw key which
9311 begins with
"ssh-", such as
"ssh-rsa XXXXXX identifier", is treated
9312 as
"key::ssh-rsa XXXXXX identifier", but this form is deprecated;
9313 use the
<code>key::
</code> form instead.
</p>
9315 <dt class=
"hdlist1">versionsort.prereleaseSuffix (deprecated)
</dt>
9317 <p>Deprecated alias for
<code>versionsort.suffix
</code>. Ignored if
9318 <code>versionsort.suffix
</code> is set.
</p>
9320 <dt class=
"hdlist1">versionsort.suffix
</dt>
9322 <p>Even when version sort is used in
<a href=
"git-tag.html">git-tag(
1)
</a>, tagnames
9323 with the same base version but different suffixes are still sorted
9324 lexicographically, resulting e.g. in prerelease tags appearing
9325 after the main release (e.g.
"1.0-rc1" after
"1.0"). This
9326 variable can be specified to determine the sorting order of tags
9327 with different suffixes.
</p>
9328 <div class=
"paragraph">
9329 <p>By specifying a single suffix in this variable, any tagname containing
9330 that suffix will appear before the corresponding main release. E.g. if
9331 the variable is set to
"-rc", then all
"1.0-rcX" tags will appear before
9332 "1.0". If specified multiple times, once per suffix, then the order of
9333 suffixes in the configuration will determine the sorting order of tagnames
9334 with those suffixes. E.g. if
"-pre" appears before
"-rc" in the
9335 configuration, then all
"1.0-preX" tags will be listed before any
9336 "1.0-rcX" tags. The placement of the main release tag relative to tags
9337 with various suffixes can be determined by specifying the empty suffix
9338 among those other suffixes. E.g. if the suffixes
"-rc",
"",
"-ck", and
9339 "-bfs" appear in the configuration in this order, then all
"v4.8-rcX" tags
9340 are listed first, followed by
"v4.8", then
"v4.8-ckX" and finally
9343 <div class=
"paragraph">
9344 <p>If more than one suffix matches the same tagname, then that tagname will
9345 be sorted according to the suffix which starts at the earliest position in
9346 the tagname. If more than one different matching suffix starts at
9347 that earliest position, then that tagname will be sorted according to the
9348 longest of those suffixes.
9349 The sorting order between different suffixes is undefined if they are
9350 in multiple config files.
</p>
9353 <dt class=
"hdlist1">web.browser
</dt>
9355 <p>Specify a web browser that may be used by some commands.
9356 Currently only
<a href=
"git-instaweb.html">git-instaweb(
1)
</a> and
<a href=
"git-help.html">git-help(
1)
</a>
9359 <dt class=
"hdlist1">worktree.guessRemote
</dt>
9361 <p>If no branch is specified and neither
<code>-b
</code> nor
<code>-B
</code> nor
9362 <code>--detach
</code> is used, then
<code>git
</code> <code>worktree
</code> <code>add
</code> defaults to
9363 creating a new branch from HEAD. If
<code>worktree.guessRemote
</code> is
9364 set to true,
<code>worktree
</code> <code>add
</code> tries to find a remote-tracking
9365 branch whose name uniquely matches the new branch name. If
9366 such a branch exists, it is checked out and set as
"upstream"
9367 for the new branch. If no such match can be found, it falls
9368 back to creating a new branch from the current HEAD.
</p>
9370 <dt class=
"hdlist1">worktree.useRelativePaths
</dt>
9372 <p>Link worktrees using relative paths (when
"true") or absolute
9373 paths (when
"false"). This is particularly useful for setups
9374 where the repository and worktrees may be moved between
9375 different locations or environments. Defaults to
"false".
</p>
9376 <div class=
"paragraph">
9377 <p>Note that setting
<code>worktree.useRelativePaths
</code> to
"true" implies enabling the
9378 <code>extension.relativeWorktrees
</code> config (see
<a href=
"git-config.html">git-config(
1)
</a>),
9379 thus making it incompatible with older versions of Git.
</p>
9388 <h2 id=
"_bugs">BUGS
</h2>
9389 <div class=
"sectionbody">
9390 <div class=
"paragraph">
9391 <p>When using the deprecated [
<code>section.subsection
</code>] syntax, changing a value
9392 will result in adding a multi-line key instead of a change, if the subsection
9393 is given with at least one uppercase character. For example when the config
9396 <div class=
"listingblock">
9397 <div class=
"content">
9398 <pre> [section.subsection]
9402 <div class=
"paragraph">
9403 <p>and running
<code>git
</code> <code>config
</code> <code>section.Subsection.key
</code> <code>value2
</code> will result in
</p>
9405 <div class=
"listingblock">
9406 <div class=
"content">
9407 <pre> [section.subsection]
9415 <h2 id=
"_git">GIT
</h2>
9416 <div class=
"sectionbody">
9417 <div class=
"paragraph">
9418 <p>Part of the
<a href=
"git.html">git(
1)
</a> suite
</p>
9424 <div id=
"footer-text">
9425 Last updated
2024-
11-
01 22:
46:
55 -
0700