blob: 98591805a08715a82b4adc24af1953ada404c8fd [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Junio C Hamano63636e52006-02-12 13:31:396<meta name="generator" content="AsciiDoc 7.0.2" />
Junio C Hamano1a4e8412005-12-27 08:17:237<style type="text/css">
8/* Debug borders */
9p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
10/*
11 border: 1px solid red;
12*/
13}
14
15body {
16 margin: 1em 5% 1em 5%;
17}
18
19a { color: blue; }
20a:visited { color: fuchsia; }
21
22em {
23 font-style: italic;
24}
25
26strong {
27 font-weight: bold;
28}
29
30tt {
31 color: navy;
32}
33
34h1, h2, h3, h4, h5, h6 {
35 color: #527bbd;
36 font-family: sans-serif;
37 margin-top: 1.2em;
38 margin-bottom: 0.5em;
39 line-height: 1.3;
40}
41
42h1 {
43 border-bottom: 2px solid silver;
44}
45h2 {
46 border-bottom: 2px solid silver;
47 padding-top: 0.5em;
48}
49
50div.sectionbody {
51 font-family: serif;
52 margin-left: 0;
53}
54
55hr {
56 border: 1px solid silver;
57}
58
59p {
60 margin-top: 0.5em;
61 margin-bottom: 0.5em;
62}
63
64pre {
65 padding: 0;
66 margin: 0;
67}
68
69span#author {
70 color: #527bbd;
71 font-family: sans-serif;
72 font-weight: bold;
73 font-size: 1.2em;
74}
75span#email {
76}
77span#revision {
78 font-family: sans-serif;
79}
80
81div#footer {
82 font-family: sans-serif;
83 font-size: small;
84 border-top: 2px solid silver;
85 padding-top: 0.5em;
86 margin-top: 4.0em;
87}
88div#footer-text {
89 float: left;
90 padding-bottom: 0.5em;
91}
92div#footer-badges {
93 float: right;
94 padding-bottom: 0.5em;
95}
96
97div#preamble,
98div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
99div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
100div.admonitionblock {
101 margin-right: 10%;
102 margin-top: 1.5em;
103 margin-bottom: 1.5em;
104}
105div.admonitionblock {
106 margin-top: 2.5em;
107 margin-bottom: 2.5em;
108}
109
110div.content { /* Block element content. */
111 padding: 0;
112}
113
114/* Block element titles. */
115div.title, caption.title {
116 font-family: sans-serif;
117 font-weight: bold;
118 text-align: left;
119 margin-top: 1.0em;
120 margin-bottom: 0.5em;
121}
122div.title + * {
123 margin-top: 0;
124}
125
126td div.title:first-child {
127 margin-top: 0.0em;
128}
129div.content div.title:first-child {
130 margin-top: 0.0em;
131}
132div.content + div.title {
133 margin-top: 0.0em;
134}
135
136div.sidebarblock > div.content {
137 background: #ffffee;
138 border: 1px solid silver;
139 padding: 0.5em;
140}
141
142div.listingblock > div.content {
143 border: 1px solid silver;
144 background: #f4f4f4;
145 padding: 0.5em;
146}
147
148div.quoteblock > div.content {
149 padding-left: 2.0em;
150}
151div.quoteblock .attribution {
152 text-align: right;
153}
154
155div.admonitionblock .icon {
156 vertical-align: top;
157 font-size: 1.1em;
158 font-weight: bold;
159 text-decoration: underline;
160 color: #527bbd;
161 padding-right: 0.5em;
162}
163div.admonitionblock td.content {
164 padding-left: 0.5em;
165 border-left: 2px solid silver;
166}
167
168div.exampleblock > div.content {
169 border-left: 2px solid silver;
170 padding: 0.5em;
171}
172
173div.verseblock div.content {
174 white-space: pre;
175}
176
177div.imageblock div.content { padding-left: 0; }
178div.imageblock img { border: 1px solid silver; }
179span.image img { border-style: none; }
180
181dl {
182 margin-top: 0.8em;
183 margin-bottom: 0.8em;
184}
185dt {
186 margin-top: 0.5em;
187 margin-bottom: 0;
188 font-style: italic;
189}
190dd > *:first-child {
191 margin-top: 0;
192}
193
194ul, ol {
195 list-style-position: outside;
196}
197ol.olist2 {
198 list-style-type: lower-alpha;
199}
200
201div.tableblock > table {
202 border-color: #527bbd;
203 border-width: 3px;
204}
205thead {
206 font-family: sans-serif;
207 font-weight: bold;
208}
209tfoot {
210 font-weight: bold;
211}
212
213div.hlist {
214 margin-top: 0.8em;
215 margin-bottom: 0.8em;
216}
217td.hlist1 {
218 vertical-align: top;
219 font-style: italic;
220 padding-right: 0.8em;
221}
222td.hlist2 {
223 vertical-align: top;
224}
225
226@media print {
227 div#footer-badges { display: none; }
228}
229include::./stylesheets/xhtml11-manpage.css[]
230/* Workarounds for IE6's broken and incomplete CSS2. */
231
232div.sidebar-content {
233 background: #ffffee;
234 border: 1px solid silver;
235 padding: 0.5em;
236}
237div.sidebar-title, div.image-title {
238 font-family: sans-serif;
239 font-weight: bold;
240 margin-top: 0.0em;
241 margin-bottom: 0.5em;
242}
243
244div.listingblock div.content {
245 border: 1px solid silver;
246 background: #f4f4f4;
247 padding: 0.5em;
248}
249
250div.quoteblock-content {
251 padding-left: 2.0em;
252}
253
254div.exampleblock-content {
255 border-left: 2px solid silver;
256 padding-left: 0.5em;
257}
258</style>
259<title>git-repo-config(1)</title>
260</head>
261<body>
262<div id="header">
263<h1>
264git-repo-config(1) Manual Page
265</h1>
266<h2>NAME</h2>
267<div class="sectionbody">
268<p>git-repo-config -
Junio C Hamano01078922006-03-10 00:31:47269 Get and set options in .git/config
Junio C Hamano1a4e8412005-12-27 08:17:23270</p>
271</div>
272</div>
273<h2>SYNOPSIS</h2>
274<div class="sectionbody">
Junio C Hamano9c099c82006-03-03 23:19:48275<div class="verseblock">
276<div class="content"><em>git-repo-config</em> [type] name [value [value_regex]]
Junio C Hamano63636e52006-02-12 13:31:39277<em>git-repo-config</em> [type] --replace-all name [value [value_regex]]
278<em>git-repo-config</em> [type] --get name [value_regex]
279<em>git-repo-config</em> [type] --get-all name [value_regex]
280<em>git-repo-config</em> [type] --unset name [value_regex]
Junio C Hamano6de0ecd2006-04-27 20:10:43281<em>git-repo-config</em> [type] --unset-all name [value_regex]
282<em>git-repo-config</em> -l | --list</div></div>
Junio C Hamano1a4e8412005-12-27 08:17:23283</div>
284<h2>DESCRIPTION</h2>
285<div class="sectionbody">
286<p>You can query/set/replace/unset options with this command. The name is
287actually the section and the key separated by a dot, and the value will be
288escaped.</p>
Junio C Hamano6d891e62006-05-07 23:36:21289<p>If you want to set/unset an option which can occur on multiple
290lines, a POSIX regexp <tt>value_regex</tt> needs to be given. Only the
291existing values that match the regexp are updated or unset. If
292you want to handle the lines that do <strong>not</strong> match the regex, just
293prepend a single exclamation mark in front (see EXAMPLES).</p>
Junio C Hamano63636e52006-02-12 13:31:39294<p>The type specifier can be either <em>--int</em> or <em>--bool</em>, which will make
295<em>git-repo-config</em> ensure that the variable(s) are of the given type and
296convert the value to the canonical form (simple decimal number for int,
297a "true" or "false" string for bool). If no type specifier is passed,
298no checks or transformations are performed on the value.</p>
Junio C Hamano1bb569e2006-05-05 23:14:25299<p>This command will fail if:</p>
Junio C Hamano1a4e8412005-12-27 08:17:23300<ol>
301<li>
302<p>
Junio C Hamano1bb569e2006-05-05 23:14:25303The .git/config file is invalid,
Junio C Hamano1a4e8412005-12-27 08:17:23304</p>
305</li>
306<li>
307<p>
Junio C Hamano1bb569e2006-05-05 23:14:25308Can not write to .git/config,
Junio C Hamano1a4e8412005-12-27 08:17:23309</p>
310</li>
311<li>
312<p>
313no section was provided,
314</p>
315</li>
316<li>
317<p>
318the section or key is invalid,
319</p>
320</li>
321<li>
322<p>
323you try to unset an option which does not exist, or
324</p>
325</li>
326<li>
327<p>
328you try to unset/set an option for which multiple lines match.
329</p>
330</li>
331</ol>
332</div>
333<h2>OPTIONS</h2>
334<div class="sectionbody">
335<dl>
336<dt>
337--replace-all
338</dt>
339<dd>
340<p>
Junio C Hamano341071d2006-06-04 07:24:48341 Default behavior is to replace at most one line. This replaces
Junio C Hamano88a3a072006-05-04 08:01:43342 all lines matching the key (and optionally the value_regex).
Junio C Hamano1a4e8412005-12-27 08:17:23343</p>
344</dd>
345<dt>
346--get
347</dt>
348<dd>
349<p>
350 Get the value for a given key (optionally filtered by a regex
Junio C Hamano4e2d8812006-10-01 09:55:10351 matching the value). Returns error code 1 if the key was not
352 found and error code 2 if multiple key values were found.
Junio C Hamano1a4e8412005-12-27 08:17:23353</p>
354</dd>
355<dt>
356--get-all
357</dt>
358<dd>
359<p>
360 Like get, but does not fail if the number of values for the key
361 is not exactly one.
362</p>
363</dd>
364<dt>
Junio C Hamano88a3a072006-05-04 08:01:43365--get-regexp
366</dt>
367<dd>
368<p>
369 Like --get-all, but interprets the name as a regular expression.
370</p>
371</dd>
372<dt>
Junio C Hamano1a4e8412005-12-27 08:17:23373--unset
374</dt>
375<dd>
376<p>
377 Remove the line matching the key from .git/config.
378</p>
379</dd>
380<dt>
381--unset-all
382</dt>
383<dd>
384<p>
385 Remove all matching lines from .git/config.
386</p>
387</dd>
Junio C Hamano6de0ecd2006-04-27 20:10:43388<dt>
389-l, --list
390</dt>
391<dd>
392<p>
393 List all variables set in .git/config.
394</p>
395</dd>
Junio C Hamano1a4e8412005-12-27 08:17:23396</dl>
397</div>
Junio C Hamano97f518c2006-06-22 19:49:35398<h2>ENVIRONMENT</h2>
399<div class="sectionbody">
400<dl>
401<dt>
402GIT_CONFIG
403</dt>
404<dd>
405<p>
406 Take the configuration from the given file instead of .git/config.
407</p>
408</dd>
409<dt>
410GIT_CONFIG_LOCAL
411</dt>
412<dd>
413<p>
414 Currently the same as $GIT_CONFIG; when Git will support global
415 configuration files, this will cause it to take the configuration
416 from the global configuration file in addition to the given file.
417</p>
418</dd>
419</dl>
420</div>
Junio C Hamano1a4e8412005-12-27 08:17:23421<h2>EXAMPLE</h2>
422<div class="sectionbody">
423<p>Given a .git/config like this:</p>
424<div class="literalblock">
425<div class="content">
426<pre><tt>#
427# This is the config file, and
428# a '#' or ';' character indicates
429# a comment
430#</tt></pre>
431</div></div>
432<div class="literalblock">
433<div class="content">
434<pre><tt>; core variables
435[core]
436 ; Don't trust file modes
437 filemode = false</tt></pre>
438</div></div>
439<div class="literalblock">
440<div class="content">
441<pre><tt>; Our diff algorithm
442[diff]
443 external = "/usr/local/bin/gnu-diff -u"
444 renames = true</tt></pre>
445</div></div>
446<div class="literalblock">
447<div class="content">
448<pre><tt>; Proxy settings
Junio C Hamano07824ce2006-04-25 07:36:54449[core]
450 gitproxy="ssh" for "ssh://kernel.org/"
451 gitproxy="proxy-command" for kernel.org
452 gitproxy="myprotocol-command" for "my://"
453 gitproxy=default-proxy ; for all the rest</tt></pre>
Junio C Hamano1a4e8412005-12-27 08:17:23454</div></div>
455<p>you can set the filemode to true with</p>
456<div class="listingblock">
457<div class="content">
458<pre><tt>% git repo-config core.filemode true</tt></pre>
459</div></div>
Junio C Hamano51c2ab02006-07-09 20:38:54460<p>The hypothetical proxy command entries actually have a postfix to discern
461what URL they apply to. Here is how to change the entry for kernel.org
Junio C Hamano1a4e8412005-12-27 08:17:23462to "ssh".</p>
463<div class="listingblock">
464<div class="content">
Junio C Hamano07824ce2006-04-25 07:36:54465<pre><tt>% git repo-config core.gitproxy '"ssh" for kernel.org' 'for kernel.org$'</tt></pre>
Junio C Hamano1a4e8412005-12-27 08:17:23466</div></div>
467<p>This makes sure that only the key/value pair for kernel.org is replaced.</p>
468<p>To delete the entry for renames, do</p>
469<div class="listingblock">
470<div class="content">
471<pre><tt>% git repo-config --unset diff.renames</tt></pre>
472</div></div>
Junio C Hamano07824ce2006-04-25 07:36:54473<p>If you want to delete an entry for a multivar (like core.gitproxy above),
Junio C Hamano1a4e8412005-12-27 08:17:23474you have to provide a regex matching the value of exactly one line.</p>
475<p>To query the value for a given key, do</p>
476<div class="listingblock">
477<div class="content">
478<pre><tt>% git repo-config --get core.filemode</tt></pre>
479</div></div>
480<p>or</p>
481<div class="listingblock">
482<div class="content">
483<pre><tt>% git repo-config core.filemode</tt></pre>
484</div></div>
485<p>or, to query a multivar:</p>
486<div class="listingblock">
487<div class="content">
Junio C Hamano07824ce2006-04-25 07:36:54488<pre><tt>% git repo-config --get core.gitproxy "for kernel.org$"</tt></pre>
Junio C Hamano1a4e8412005-12-27 08:17:23489</div></div>
490<p>If you want to know all the values for a multivar, do:</p>
491<div class="listingblock">
492<div class="content">
Junio C Hamano07824ce2006-04-25 07:36:54493<pre><tt>% git repo-config --get-all core.gitproxy</tt></pre>
Junio C Hamano1a4e8412005-12-27 08:17:23494</div></div>
Junio C Hamano07824ce2006-04-25 07:36:54495<p>If you like to live dangerous, you can replace <strong>all</strong> core.gitproxy by a
Junio C Hamano1a4e8412005-12-27 08:17:23496new one with</p>
497<div class="listingblock">
498<div class="content">
Junio C Hamano07824ce2006-04-25 07:36:54499<pre><tt>% git repo-config --replace-all core.gitproxy ssh</tt></pre>
Junio C Hamano1a4e8412005-12-27 08:17:23500</div></div>
501<p>However, if you really only want to replace the line for the default proxy,
502i.e. the one without a "for &#8230;" postfix, do something like this:</p>
503<div class="listingblock">
504<div class="content">
Junio C Hamano07824ce2006-04-25 07:36:54505<pre><tt>% git repo-config core.gitproxy ssh '! for '</tt></pre>
Junio C Hamano1a4e8412005-12-27 08:17:23506</div></div>
507<p>To actually match only values with an exclamation mark, you have to</p>
508<div class="listingblock">
509<div class="content">
510<pre><tt>% git repo-config section.key value '[!]'</tt></pre>
511</div></div>
512</div>
Junio C Hamano07824ce2006-04-25 07:36:54513<h2>CONFIGURATION FILE</h2>
514<div class="sectionbody">
515<p>The git configuration file contains a number of variables that affect
Junio C Hamanof1d14802006-06-08 00:48:17516the git command's behavior. They can be used by both the git plumbing
517and the porcelains. The variables are divided into sections, where
Junio C Hamano07824ce2006-04-25 07:36:54518in the fully qualified variable name the variable itself is the last
519dot-separated segment and the section name is everything before the last
520dot. The variable names are case-insensitive and only alphanumeric
521characters are allowed. Some variables may appear multiple times.</p>
522<p>The syntax is fairly flexible and permissive; whitespaces are mostly
Junio C Hamanof1d14802006-06-08 00:48:17523ignored. The <em>#</em> and <em>;</em> characters begin comments to the end of line,
Junio C Hamano07824ce2006-04-25 07:36:54524blank lines are ignored, lines containing strings enclosed in square
525brackets start sections and all the other lines are recognized
526as setting variables, in the form <em>name = value</em>. If there is no equal
527sign on the line, the entire line is taken as <em>name</em> and the variable
528is recognized as boolean "true". String values may be entirely or partially
529enclosed in double quotes; some variables may require special value format.</p>
530<h3>Example</h3>
531<div class="literalblock">
532<div class="content">
533<pre><tt># Core variables
534[core]
535 ; Don't trust file modes
536 filemode = false</tt></pre>
537</div></div>
538<div class="literalblock">
539<div class="content">
540<pre><tt># Our diff algorithm
541[diff]
542 external = "/usr/local/bin/gnu-diff -u"
543 renames = true</tt></pre>
544</div></div>
545<h3>Variables</h3>
546<p>Note that this list is non-comprehensive and not necessarily complete.
Junio C Hamanof1d14802006-06-08 00:48:17547For command-specific variables, you will find a more detailed description
548in the appropriate manual page. You will find a description of non-core
Junio C Hamano07824ce2006-04-25 07:36:54549porcelain configuration variables in the respective porcelain documentation.</p>
550<dl>
551<dt>
552core.fileMode
553</dt>
554<dd>
555<p>
556 If false, the executable bit differences between the index and
557 the working copy are ignored; useful on broken filesystems like FAT.
558 See <a href="git-update-index.html">git-update-index(1)</a>. True by default.
559</p>
560</dd>
561<dt>
562core.gitProxy
563</dt>
564<dd>
565<p>
566 A "proxy command" to execute (as <em>command host port</em>) instead
567 of establishing direct connection to the remote server when
568 using the git protocol for fetching. If the variable value is
569 in the "COMMAND for DOMAIN" format, the command is applied only
570 on hostnames ending with the specified domain string. This variable
571 may be set multiple times and is matched in the given order;
572 the first match wins.
573</p>
Junio C Hamanof1d14802006-06-08 00:48:17574<p>Can be overridden by the <em>GIT_PROXY_COMMAND</em> environment variable
Junio C Hamano07824ce2006-04-25 07:36:54575(which always applies universally, without the special "for"
Junio C Hamanof1d14802006-06-08 00:48:17576handling).</p>
Junio C Hamano07824ce2006-04-25 07:36:54577</dd>
578<dt>
579core.ignoreStat
580</dt>
581<dd>
582<p>
583 The working copy files are assumed to stay unchanged until you
584 mark them otherwise manually - Git will not detect the file changes
585 by lstat() calls. This is useful on systems where those are very
586 slow, such as Microsoft Windows. See <a href="git-update-index.html">git-update-index(1)</a>.
587 False by default.
588</p>
589</dd>
590<dt>
Junio C Hamano88a3a072006-05-04 08:01:43591core.preferSymlinkRefs
Junio C Hamano07824ce2006-04-25 07:36:54592</dt>
593<dd>
594<p>
Junio C Hamano88a3a072006-05-04 08:01:43595 Instead of the default "symref" format for HEAD
596 and other symbolic reference files, use symbolic links.
597 This is sometimes needed to work with old scripts that
598 expect HEAD to be a symbolic link.
Junio C Hamano07824ce2006-04-25 07:36:54599</p>
600</dd>
601<dt>
Junio C Hamano341071d2006-06-04 07:24:48602core.logAllRefUpdates
603</dt>
604<dd>
605<p>
606 If true, <tt>git-update-ref</tt> will append a line to
607 "$GIT_DIR/logs/&lt;ref&gt;" listing the new SHA1 and the date/time
608 of the update. If the file does not exist it will be
609 created automatically. This information can be used to
610 determine what commit was the tip of a branch "2 days ago".
611 This value is false by default (no logging).
612</p>
613</dd>
614<dt>
Junio C Hamano07824ce2006-04-25 07:36:54615core.repositoryFormatVersion
616</dt>
617<dd>
618<p>
619 Internal variable identifying the repository format and layout
620 version.
621</p>
622</dd>
623<dt>
624core.sharedRepository
625</dt>
626<dd>
627<p>
Junio C Hamano0ab78ae2006-08-09 01:00:42628 When <em>group</em> (or <em>true</em>), the repository is made shareable between
629 several users in a group (making sure all the files and objects are
630 group-writable). When <em>all</em> (or <em>world</em> or <em>everybody</em>), the
631 repository will be readable by all users, additionally to being
632 group-shareable. When <em>umask</em> (or <em>false</em>), git will use permissions
633 reported by umask(2). See <a href="git-init-db.html">git-init-db(1)</a>. False by default.
Junio C Hamano07824ce2006-04-25 07:36:54634</p>
635</dd>
636<dt>
637core.warnAmbiguousRefs
638</dt>
639<dd>
640<p>
641 If true, git will warn you if the ref name you passed it is ambiguous
642 and might match multiple refs in the .git/refs/ tree. True by default.
643</p>
644</dd>
Junio C Hamano7ec15722006-07-07 02:03:59645<dt>
646core.compression
647</dt>
648<dd>
649<p>
Junio C Hamanoa126a3b2006-07-04 04:55:26650 An integer -1..9, indicating the compression level for objects that
651 are not in a pack file. -1 is the zlib and git default. 0 means no
652 compression, and 1..9 are various speed/size tradeoffs, 9 being
Junio C Hamano7ec15722006-07-07 02:03:59653 slowest.
654</p>
655</dd>
Junio C Hamano07824ce2006-04-25 07:36:54656<dt>
Junio C Hamano28d9dfe2006-07-25 03:50:49657core.legacyheaders
658</dt>
659<dd>
660<p>
661 A boolean which enables the legacy object header format in case
662 you want to interoperate with old clients accessing the object
663 database directly (where the "http://" and "rsync://" protocols
664 count as direct access).
665</p>
666</dd>
667<dt>
Junio C Hamano33db4372006-06-07 19:51:45668alias.*
669</dt>
670<dd>
671<p>
672 Command aliases for the <a href="git.html">git(1)</a> command wrapper - e.g.
673 after defining "alias.last = cat-file commit HEAD", the invocation
674 "git last" is equivalent to "git cat-file commit HEAD". To avoid
Junio C Hamanof1d14802006-06-08 00:48:17675 confusion and troubles with script usage, aliases that
676 hide existing git commands are ignored. Arguments are split by
677 spaces, the usual shell quoting and escaping is supported.
678 quote pair and a backslash can be used to quote them.
Junio C Hamano33db4372006-06-07 19:51:45679</p>
680</dd>
681<dt>
Junio C Hamano07824ce2006-04-25 07:36:54682apply.whitespace
683</dt>
684<dd>
685<p>
686 Tells <tt>git-apply</tt> how to handle whitespaces, in the same way
687 as the <em>--whitespace</em> option. See <a href="git-apply.html">git-apply(1)</a>.
688</p>
689</dd>
690<dt>
Junio C Hamano47c1e3c2006-09-25 04:45:55691branch.&lt;name&gt;.remote
692</dt>
693<dd>
694<p>
695 When in branch &lt;name&gt;, it tells <tt>git fetch</tt> which remote to fetch.
696</p>
697</dd>
698<dt>
699branch.&lt;name&gt;.merge
700</dt>
701<dd>
702<p>
703 When in branch &lt;name&gt;, it tells <tt>git fetch</tt> the default remote branch
704 to be merged.
705</p>
706</dd>
707<dt>
Junio C Hamanofbb0aff2006-08-01 08:53:38708pager.color
709</dt>
710<dd>
711<p>
712 A boolean to enable/disable colored output when the pager is in
713 use (default is true).
714</p>
715</dd>
716<dt>
Junio C Hamano9ae1a062006-07-10 08:12:34717diff.color
718</dt>
719<dd>
720<p>
721 When true (or <tt>always</tt>), always use colors in patch.
722 When false (or <tt>never</tt>), never. When set to <tt>auto</tt>, use
723 colors only when the output is to the terminal.
724</p>
725</dd>
726<dt>
727diff.color.&lt;slot&gt;
728</dt>
729<dd>
730<p>
731 Use customized color for diff colorization. <tt>&lt;slot&gt;</tt>
732 specifies which part of the patch to use the specified
733 color, and is one of <tt>plain</tt> (context text), <tt>meta</tt>
734 (metainformation), <tt>frag</tt> (hunk header), <tt>old</tt> (removed
735 lines), or <tt>new</tt> (added lines). The value for these
736 configuration variables can be one of: <tt>normal</tt>, <tt>bold</tt>,
737 <tt>dim</tt>, <tt>ul</tt>, <tt>blink</tt>, <tt>reverse</tt>, <tt>reset</tt>, <tt>black</tt>,
738 <tt>red</tt>, <tt>green</tt>, <tt>yellow</tt>, <tt>blue</tt>, <tt>magenta</tt>, <tt>cyan</tt>, or
739 <tt>white</tt>.
740</p>
741</dd>
742<dt>
Junio C Hamano07824ce2006-04-25 07:36:54743diff.renameLimit
744</dt>
745<dd>
746<p>
747 The number of files to consider when performing the copy/rename
748 detection; equivalent to the git diff option <em>-l</em>.
749</p>
750</dd>
751<dt>
Junio C Hamano9ae1a062006-07-10 08:12:34752diff.renames
753</dt>
754<dd>
755<p>
756 Tells git to detect renames. If set to any boolean value, it
757 will enable basic rename detection. If set to "copies" or
758 "copy", it will detect copies, as well.
759</p>
760</dd>
761<dt>
Junio C Hamano07824ce2006-04-25 07:36:54762format.headers
763</dt>
764<dd>
765<p>
766 Additional email headers to include in a patch to be submitted
767 by mail. See <a href="git-format-patch.html">git-format-patch(1)</a>.
768</p>
769</dd>
770<dt>
771gitcvs.enabled
772</dt>
773<dd>
774<p>
775 Whether the cvs pserver interface is enabled for this repository.
776 See <a href="git-cvsserver.html">git-cvsserver(1)</a>.
777</p>
778</dd>
779<dt>
780gitcvs.logfile
781</dt>
782<dd>
783<p>
784 Path to a log file where the cvs pserver interface well&#8230; logs
785 various stuff. See <a href="git-cvsserver.html">git-cvsserver(1)</a>.
786</p>
787</dd>
788<dt>
789http.sslVerify
790</dt>
791<dd>
792<p>
793 Whether to verify the SSL certificate when fetching or pushing
Junio C Hamano33db4372006-06-07 19:51:45794 over HTTPS. Can be overridden by the <em>GIT_SSL_NO_VERIFY</em> environment
Junio C Hamano07824ce2006-04-25 07:36:54795 variable.
796</p>
797</dd>
798<dt>
799http.sslCert
800</dt>
801<dd>
802<p>
803 File containing the SSL certificate when fetching or pushing
Junio C Hamano33db4372006-06-07 19:51:45804 over HTTPS. Can be overridden by the <em>GIT_SSL_CERT</em> environment
Junio C Hamano07824ce2006-04-25 07:36:54805 variable.
806</p>
807</dd>
808<dt>
809http.sslKey
810</dt>
811<dd>
812<p>
813 File containing the SSL private key when fetching or pushing
Junio C Hamano341071d2006-06-04 07:24:48814 over HTTPS. Can be overridden by the <em>GIT_SSL_KEY</em> environment
Junio C Hamano07824ce2006-04-25 07:36:54815 variable.
816</p>
817</dd>
818<dt>
819http.sslCAInfo
820</dt>
821<dd>
822<p>
823 File containing the certificates to verify the peer with when
Junio C Hamano341071d2006-06-04 07:24:48824 fetching or pushing over HTTPS. Can be overridden by the
Junio C Hamano07824ce2006-04-25 07:36:54825 <em>GIT_SSL_CAINFO</em> environment variable.
826</p>
827</dd>
828<dt>
829http.sslCAPath
830</dt>
831<dd>
832<p>
833 Path containing files with the CA certificates to verify the peer
Junio C Hamano33db4372006-06-07 19:51:45834 with when fetching or pushing over HTTPS. Can be overridden
Junio C Hamano07824ce2006-04-25 07:36:54835 by the <em>GIT_SSL_CAPATH</em> environment variable.
836</p>
837</dd>
838<dt>
839http.maxRequests
840</dt>
841<dd>
842<p>
Junio C Hamano341071d2006-06-04 07:24:48843 How many HTTP requests to launch in parallel. Can be overridden
Junio C Hamano07824ce2006-04-25 07:36:54844 by the <em>GIT_HTTP_MAX_REQUESTS</em> environment variable. Default is 5.
845</p>
846</dd>
847<dt>
848http.lowSpeedLimit, http.lowSpeedTime
849</dt>
850<dd>
851<p>
852 If the HTTP transfer speed is less than <em>http.lowSpeedLimit</em>
853 for longer than <em>http.lowSpeedTime</em> seconds, the transfer is aborted.
Junio C Hamano341071d2006-06-04 07:24:48854 Can be overridden by the <em>GIT_HTTP_LOW_SPEED_LIMIT</em> and
Junio C Hamano07824ce2006-04-25 07:36:54855 <em>GIT_HTTP_LOW_SPEED_TIME</em> environment variables.
856</p>
857</dd>
858<dt>
Junio C Hamanof1dcdfe2006-09-29 08:10:51859http.noEPSV
860</dt>
861<dd>
862<p>
863 A boolean which disables using of EPSV ftp command by curl.
864 This can helpful with some "poor" ftp servers which doesn't
865 support EPSV mode. Can be overridden by the <em>GIT_CURL_FTP_NO_EPSV</em>
866 environment variable. Default is false (curl will use EPSV).
867</p>
868</dd>
869<dt>
Junio C Hamano07824ce2006-04-25 07:36:54870i18n.commitEncoding
871</dt>
872<dd>
873<p>
874 Character encoding the commit messages are stored in; git itself
875 does not care per se, but this information is necessary e.g. when
876 importing commits from emails or in the gitk graphical history
877 browser (and possibly at other places in the future or in other
878 porcelains). See e.g. <a href="git-mailinfo.html">git-mailinfo(1)</a>. Defaults to <em>utf-8</em>.
879</p>
880</dd>
881<dt>
882merge.summary
883</dt>
884<dd>
885<p>
886 Whether to include summaries of merged commits in newly created
887 merge commit messages. False by default.
888</p>
889</dd>
890<dt>
Junio C Hamano75cc4c92006-07-24 08:25:03891pack.window
892</dt>
893<dd>
894<p>
895 The size of the window used by <a href="git-pack-objects.html">git-pack-objects(1)</a> when no
896 window size is given on the command line. Defaults to 10.
897</p>
898</dd>
899<dt>
Junio C Hamano07824ce2006-04-25 07:36:54900pull.octopus
901</dt>
902<dd>
903<p>
904 The default merge strategy to use when pulling multiple branches
905 at once.
906</p>
907</dd>
908<dt>
909pull.twohead
910</dt>
911<dd>
912<p>
913 The default merge strategy to use when pulling a single branch.
914</p>
915</dd>
916<dt>
917show.difftree
918</dt>
919<dd>
920<p>
921 The default <a href="git-diff-tree.html">git-diff-tree(1)</a> arguments to be used
922 for <a href="git-show.html">git-show(1)</a>.
923</p>
924</dd>
925<dt>
926showbranch.default
927</dt>
928<dd>
929<p>
930 The default set of branches for <a href="git-show-branch.html">git-show-branch(1)</a>.
931 See <a href="git-show-branch.html">git-show-branch(1)</a>.
932</p>
933</dd>
934<dt>
Junio C Hamano3eb513f2006-09-18 02:47:16935status.color
936</dt>
937<dd>
938<p>
939 A boolean to enable/disable color in the output of
940 <a href="git-status.html">git-status(1)</a>. May be set to <tt>true</tt> (or <tt>always</tt>),
941 <tt>false</tt> (or <tt>never</tt>) or <tt>auto</tt>, in which case colors are used
942 only when the output is to a terminal. Defaults to false.
943</p>
944</dd>
945<dt>
946status.color.&lt;slot&gt;
947</dt>
948<dd>
949<p>
950 Use customized color for status colorization. <tt>&lt;slot&gt;</tt> is
951 one of <tt>header</tt> (the header text of the status message),
952 <tt>updated</tt> (files which are updated but not committed),
953 <tt>changed</tt> (files which are changed but not updated in the index),
954 or <tt>untracked</tt> (files which are not tracked by git). The values of
955 these variables may be specified as in diff.color.&lt;slot&gt;.
956</p>
957</dd>
958<dt>
Junio C Hamano75cc4c92006-07-24 08:25:03959tar.umask
960</dt>
961<dd>
962<p>
Junio C Hamanod7e63042006-08-02 21:12:23963 By default, <a href="git-tar-tree.html">git-tar-tree(1)</a> sets file and directories modes
Junio C Hamano75cc4c92006-07-24 08:25:03964 to 0666 or 0777. While this is both useful and acceptable for projects
965 such as the Linux Kernel, it might be excessive for other projects.
966 With this variable, it becomes possible to tell
Junio C Hamanod7e63042006-08-02 21:12:23967 <a href="git-tar-tree.html">git-tar-tree(1)</a> to apply a specific umask to the modes above.
Junio C Hamano75cc4c92006-07-24 08:25:03968 The special value "user" indicates that the user's current umask will
969 be used. This should be enough for most projects, as it will lead to
Junio C Hamanod7e63042006-08-02 21:12:23970 the same permissions as <a href="git-checkout.html">git-checkout(1)</a> would use. The default
Junio C Hamano75cc4c92006-07-24 08:25:03971 value remains 0, which means world read-write.
972</p>
973</dd>
974<dt>
Junio C Hamano07824ce2006-04-25 07:36:54975user.email
976</dt>
977<dd>
978<p>
979 Your email address to be recorded in any newly created commits.
Junio C Hamano341071d2006-06-04 07:24:48980 Can be overridden by the <em>GIT_AUTHOR_EMAIL</em> and <em>GIT_COMMITTER_EMAIL</em>
Junio C Hamano07824ce2006-04-25 07:36:54981 environment variables. See <a href="git-commit-tree.html">git-commit-tree(1)</a>.
982</p>
983</dd>
984<dt>
985user.name
986</dt>
987<dd>
988<p>
989 Your full name to be recorded in any newly created commits.
Junio C Hamano341071d2006-06-04 07:24:48990 Can be overridden by the <em>GIT_AUTHOR_NAME</em> and <em>GIT_COMMITTER_NAME</em>
Junio C Hamano07824ce2006-04-25 07:36:54991 environment variables. See <a href="git-commit-tree.html">git-commit-tree(1)</a>.
992</p>
993</dd>
994<dt>
995whatchanged.difftree
996</dt>
997<dd>
998<p>
999 The default <a href="git-diff-tree.html">git-diff-tree(1)</a> arguments to be used
1000 for <a href="git-whatchanged.html">git-whatchanged(1)</a>.
1001</p>
1002</dd>
1003<dt>
1004imap
1005</dt>
1006<dd>
1007<p>
1008 The configuration variables in the <em>imap</em> section are described
1009 in <a href="git-imap-send.html">git-imap-send(1)</a>.
1010</p>
1011</dd>
Junio C Hamano459ee222006-09-21 08:13:281012<dt>
1013receive.denyNonFastforwads
1014</dt>
1015<dd>
1016<p>
1017 If set to true, git-receive-pack will deny a ref update which is
1018 not a fast forward. Use this to prevent such an update via a push,
1019 even if that push is forced. This configuration variable is
1020 set when initializing a shared repository.
1021</p>
1022</dd>
Junio C Hamano07824ce2006-04-25 07:36:541023</dl>
1024</div>
Junio C Hamano1a4e8412005-12-27 08:17:231025<h2>Author</h2>
1026<div class="sectionbody">
1027<p>Written by Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;</p>
1028</div>
1029<h2>Documentation</h2>
1030<div class="sectionbody">
Junio C Hamano07824ce2006-04-25 07:36:541031<p>Documentation by Johannes Schindelin, Petr Baudis and the git-list &lt;git@vger.kernel.org&gt;.</p>
Junio C Hamano1a4e8412005-12-27 08:17:231032</div>
1033<h2>GIT</h2>
1034<div class="sectionbody">
1035<p>Part of the <a href="git.html">git(7)</a> suite</p>
1036</div>
1037<div id="footer">
1038<div id="footer-text">
Junio C Hamanod97409f2006-10-03 08:41:561039Last updated 03-Oct-2006 08:41:22 UTC
Junio C Hamano1a4e8412005-12-27 08:17:231040</div>
1041</div>
1042</body>
1043</html>