blob: 1f458ed33da83701ef17c7f4f1bdd83141d42904 [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>
Junio C Hamano9d971152012-12-19 00:43:115<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
Junio C Hamanoac12f0e2014-09-19 22:32:516<meta name="generator" content="AsciiDoc 8.6.9" />
Junio C Hamano68cf15a2010-11-06 01:01:597<title>git(1)</title>
Junio C Hamano1a4e8412005-12-27 08:17:238<style type="text/css">
Junio C Hamano9d971152012-12-19 00:43:119/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
10
11/* Default font. */
12body {
13 font-family: Georgia,serif;
14}
15
16/* Title font. */
17h1, h2, h3, h4, h5, h6,
18div.title, caption.title,
19thead, p.table.header,
20#toctitle,
21#author, #revnumber, #revdate, #revremark,
22#footer {
23 font-family: Arial,Helvetica,sans-serif;
Junio C Hamano1a4e8412005-12-27 08:17:2324}
25
26body {
27 margin: 1em 5% 1em 5%;
28}
29
Junio C Hamanoba4b9282008-07-06 05:20:3130a {
31 color: blue;
32 text-decoration: underline;
33}
34a:visited {
35 color: fuchsia;
36}
Junio C Hamano1a4e8412005-12-27 08:17:2337
38em {
39 font-style: italic;
Junio C Hamano68cf15a2010-11-06 01:01:5940 color: navy;
Junio C Hamano1a4e8412005-12-27 08:17:2341}
42
43strong {
44 font-weight: bold;
Junio C Hamano68cf15a2010-11-06 01:01:5945 color: #083194;
Junio C Hamano1a4e8412005-12-27 08:17:2346}
47
Junio C Hamano1a4e8412005-12-27 08:17:2348h1, h2, h3, h4, h5, h6 {
49 color: #527bbd;
Junio C Hamano1a4e8412005-12-27 08:17:2350 margin-top: 1.2em;
51 margin-bottom: 0.5em;
52 line-height: 1.3;
53}
54
Junio C Hamanoba4b9282008-07-06 05:20:3155h1, h2, h3 {
Junio C Hamano1a4e8412005-12-27 08:17:2356 border-bottom: 2px solid silver;
57}
58h2 {
Junio C Hamano1a4e8412005-12-27 08:17:2359 padding-top: 0.5em;
60}
Junio C Hamanoba4b9282008-07-06 05:20:3161h3 {
62 float: left;
63}
64h3 + * {
65 clear: left;
66}
Junio C Hamano9d971152012-12-19 00:43:1167h5 {
68 font-size: 1.0em;
69}
Junio C Hamano1a4e8412005-12-27 08:17:2370
71div.sectionbody {
Junio C Hamano1a4e8412005-12-27 08:17:2372 margin-left: 0;
73}
74
75hr {
76 border: 1px solid silver;
77}
78
79p {
80 margin-top: 0.5em;
81 margin-bottom: 0.5em;
82}
83
Junio C Hamano68cf15a2010-11-06 01:01:5984ul, ol, li > p {
85 margin-top: 0;
86}
Junio C Hamano9d971152012-12-19 00:43:1187ul > li { color: #aaa; }
88ul > li > * { color: black; }
Junio C Hamano68cf15a2010-11-06 01:01:5989
Junio C Hamanoac12f0e2014-09-19 22:32:5190.monospaced, code, pre {
91 font-family: "Courier New", Courier, monospace;
92 font-size: inherit;
93 color: navy;
Junio C Hamano1a4e8412005-12-27 08:17:2394 padding: 0;
95 margin: 0;
96}
Junio C Hamanoac12f0e2014-09-19 22:32:5197pre {
98 white-space: pre-wrap;
99}
Junio C Hamano1a4e8412005-12-27 08:17:23100
Junio C Hamano9d971152012-12-19 00:43:11101#author {
Junio C Hamano1a4e8412005-12-27 08:17:23102 color: #527bbd;
Junio C Hamano1a4e8412005-12-27 08:17:23103 font-weight: bold;
Junio C Hamanoba4b9282008-07-06 05:20:31104 font-size: 1.1em;
Junio C Hamano1a4e8412005-12-27 08:17:23105}
Junio C Hamano9d971152012-12-19 00:43:11106#email {
Junio C Hamano1a4e8412005-12-27 08:17:23107}
Junio C Hamano9d971152012-12-19 00:43:11108#revnumber, #revdate, #revremark {
Junio C Hamano1a4e8412005-12-27 08:17:23109}
110
Junio C Hamano9d971152012-12-19 00:43:11111#footer {
Junio C Hamano1a4e8412005-12-27 08:17:23112 font-size: small;
113 border-top: 2px solid silver;
114 padding-top: 0.5em;
115 margin-top: 4.0em;
116}
Junio C Hamano9d971152012-12-19 00:43:11117#footer-text {
Junio C Hamano1a4e8412005-12-27 08:17:23118 float: left;
119 padding-bottom: 0.5em;
120}
Junio C Hamano9d971152012-12-19 00:43:11121#footer-badges {
Junio C Hamano1a4e8412005-12-27 08:17:23122 float: right;
123 padding-bottom: 0.5em;
124}
125
Junio C Hamano9d971152012-12-19 00:43:11126#preamble {
Junio C Hamano68cf15a2010-11-06 01:01:59127 margin-top: 1.5em;
128 margin-bottom: 1.5em;
129}
Junio C Hamano9d971152012-12-19 00:43:11130div.imageblock, div.exampleblock, div.verseblock,
Junio C Hamano1a4e8412005-12-27 08:17:23131div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
132div.admonitionblock {
Junio C Hamano7bd050f2011-09-22 06:32:22133 margin-top: 1.0em;
Junio C Hamano1a4e8412005-12-27 08:17:23134 margin-bottom: 1.5em;
135}
136div.admonitionblock {
Junio C Hamano7bd050f2011-09-22 06:32:22137 margin-top: 2.0em;
138 margin-bottom: 2.0em;
139 margin-right: 10%;
140 color: #606060;
Junio C Hamano1a4e8412005-12-27 08:17:23141}
142
143div.content { /* Block element content. */
144 padding: 0;
145}
146
147/* Block element titles. */
148div.title, caption.title {
Junio C Hamano68cf15a2010-11-06 01:01:59149 color: #527bbd;
Junio C Hamano1a4e8412005-12-27 08:17:23150 font-weight: bold;
151 text-align: left;
152 margin-top: 1.0em;
153 margin-bottom: 0.5em;
154}
155div.title + * {
156 margin-top: 0;
157}
158
159td div.title:first-child {
160 margin-top: 0.0em;
161}
162div.content div.title:first-child {
163 margin-top: 0.0em;
164}
165div.content + div.title {
166 margin-top: 0.0em;
167}
168
169div.sidebarblock > div.content {
170 background: #ffffee;
Junio C Hamano9d971152012-12-19 00:43:11171 border: 1px solid #dddddd;
172 border-left: 4px solid #f0f0f0;
Junio C Hamano1a4e8412005-12-27 08:17:23173 padding: 0.5em;
174}
175
176div.listingblock > div.content {
Junio C Hamano9d971152012-12-19 00:43:11177 border: 1px solid #dddddd;
178 border-left: 5px solid #f0f0f0;
179 background: #f8f8f8;
Junio C Hamano1a4e8412005-12-27 08:17:23180 padding: 0.5em;
181}
182
Junio C Hamano7bd050f2011-09-22 06:32:22183div.quoteblock, div.verseblock {
184 padding-left: 1.0em;
185 margin-left: 1.0em;
Junio C Hamano68cf15a2010-11-06 01:01:59186 margin-right: 10%;
Junio C Hamano9d971152012-12-19 00:43:11187 border-left: 5px solid #f0f0f0;
188 color: #888;
Junio C Hamano1a4e8412005-12-27 08:17:23189}
Junio C Hamano7bd050f2011-09-22 06:32:22190
Junio C Hamano68cf15a2010-11-06 01:01:59191div.quoteblock > div.attribution {
192 padding-top: 0.5em;
Junio C Hamano1a4e8412005-12-27 08:17:23193 text-align: right;
194}
Junio C Hamano68cf15a2010-11-06 01:01:59195
Junio C Hamano9d971152012-12-19 00:43:11196div.verseblock > pre.content {
197 font-family: inherit;
198 font-size: inherit;
Junio C Hamano68cf15a2010-11-06 01:01:59199}
200div.verseblock > div.attribution {
201 padding-top: 0.75em;
202 text-align: left;
203}
204/* DEPRECATED: Pre version 8.2.7 verse style literal block. */
Junio C Hamanoba4b9282008-07-06 05:20:31205div.verseblock + div.attribution {
206 text-align: left;
207}
Junio C Hamano1a4e8412005-12-27 08:17:23208
209div.admonitionblock .icon {
210 vertical-align: top;
211 font-size: 1.1em;
212 font-weight: bold;
213 text-decoration: underline;
214 color: #527bbd;
215 padding-right: 0.5em;
216}
217div.admonitionblock td.content {
218 padding-left: 0.5em;
Junio C Hamano7bd050f2011-09-22 06:32:22219 border-left: 3px solid #dddddd;
Junio C Hamano1a4e8412005-12-27 08:17:23220}
221
222div.exampleblock > div.content {
Junio C Hamano7bd050f2011-09-22 06:32:22223 border-left: 3px solid #dddddd;
224 padding-left: 0.5em;
Junio C Hamano1a4e8412005-12-27 08:17:23225}
226
Junio C Hamano1a4e8412005-12-27 08:17:23227div.imageblock div.content { padding-left: 0; }
Junio C Hamanoac12f0e2014-09-19 22:32:51228span.image img { border-style: none; vertical-align: text-bottom; }
Junio C Hamano68cf15a2010-11-06 01:01:59229a.image:visited { color: white; }
Junio C Hamano1a4e8412005-12-27 08:17:23230
231dl {
232 margin-top: 0.8em;
233 margin-bottom: 0.8em;
234}
235dt {
236 margin-top: 0.5em;
237 margin-bottom: 0;
Junio C Hamano68cf15a2010-11-06 01:01:59238 font-style: normal;
239 color: navy;
Junio C Hamano1a4e8412005-12-27 08:17:23240}
241dd > *:first-child {
Junio C Hamano68cf15a2010-11-06 01:01:59242 margin-top: 0.1em;
Junio C Hamano1a4e8412005-12-27 08:17:23243}
244
245ul, ol {
246 list-style-position: outside;
247}
Junio C Hamano68cf15a2010-11-06 01:01:59248ol.arabic {
249 list-style-type: decimal;
250}
251ol.loweralpha {
Junio C Hamano1a4e8412005-12-27 08:17:23252 list-style-type: lower-alpha;
253}
Junio C Hamano68cf15a2010-11-06 01:01:59254ol.upperalpha {
255 list-style-type: upper-alpha;
256}
257ol.lowerroman {
258 list-style-type: lower-roman;
259}
260ol.upperroman {
261 list-style-type: upper-roman;
262}
263
264div.compact ul, div.compact ol,
265div.compact p, div.compact p,
266div.compact div, div.compact div {
267 margin-top: 0.1em;
268 margin-bottom: 0.1em;
269}
Junio C Hamano1a4e8412005-12-27 08:17:23270
Junio C Hamano1a4e8412005-12-27 08:17:23271tfoot {
272 font-weight: bold;
273}
Junio C Hamano68cf15a2010-11-06 01:01:59274td > div.verse {
275 white-space: pre;
276}
Junio C Hamano68cf15a2010-11-06 01:01:59277
278div.hdlist {
Junio C Hamano1a4e8412005-12-27 08:17:23279 margin-top: 0.8em;
280 margin-bottom: 0.8em;
281}
Junio C Hamano68cf15a2010-11-06 01:01:59282div.hdlist tr {
283 padding-bottom: 15px;
Junio C Hamanoba4b9282008-07-06 05:20:31284}
Junio C Hamano68cf15a2010-11-06 01:01:59285dt.hdlist1.strong, td.hdlist1.strong {
286 font-weight: bold;
287}
288td.hdlist1 {
Junio C Hamano1a4e8412005-12-27 08:17:23289 vertical-align: top;
Junio C Hamano68cf15a2010-11-06 01:01:59290 font-style: normal;
Junio C Hamano1a4e8412005-12-27 08:17:23291 padding-right: 0.8em;
Junio C Hamano68cf15a2010-11-06 01:01:59292 color: navy;
Junio C Hamano1a4e8412005-12-27 08:17:23293}
Junio C Hamano68cf15a2010-11-06 01:01:59294td.hdlist2 {
Junio C Hamano1a4e8412005-12-27 08:17:23295 vertical-align: top;
296}
Junio C Hamano68cf15a2010-11-06 01:01:59297div.hdlist.compact tr {
298 margin: 0;
299 padding-bottom: 0;
300}
301
302.comment {
303 background: yellow;
304}
Junio C Hamano1a4e8412005-12-27 08:17:23305
Junio C Hamano7bd050f2011-09-22 06:32:22306.footnote, .footnoteref {
307 font-size: 0.8em;
308}
309
310span.footnote, span.footnoteref {
311 vertical-align: super;
312}
313
314#footnotes {
315 margin: 20px 0 20px 0;
316 padding: 7px 0 0 0;
317}
318
319#footnotes div.footnote {
320 margin: 0 0 5px 0;
321}
322
323#footnotes hr {
324 border: none;
325 border-top: 1px solid silver;
326 height: 1px;
327 text-align: left;
328 margin-left: 0;
329 width: 20%;
330 min-width: 100px;
331}
332
Junio C Hamano9d971152012-12-19 00:43:11333div.colist td {
334 padding-right: 0.5em;
335 padding-bottom: 0.3em;
336 vertical-align: top;
337}
338div.colist td img {
339 margin-top: 0.3em;
Junio C Hamano1a4e8412005-12-27 08:17:23340}
Junio C Hamanoba4b9282008-07-06 05:20:31341
Junio C Hamano9d971152012-12-19 00:43:11342@media print {
343 #footer-badges { display: none; }
344}
345
346#toc {
Junio C Hamano7bd050f2011-09-22 06:32:22347 margin-bottom: 2.5em;
348}
349
Junio C Hamano9d971152012-12-19 00:43:11350#toctitle {
Junio C Hamanoba4b9282008-07-06 05:20:31351 color: #527bbd;
Junio C Hamanoba4b9282008-07-06 05:20:31352 font-size: 1.1em;
353 font-weight: bold;
354 margin-top: 1.0em;
355 margin-bottom: 0.1em;
356}
357
Junio C Hamanoac12f0e2014-09-19 22:32:51358div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
Junio C Hamanoba4b9282008-07-06 05:20:31359 margin-top: 0;
360 margin-bottom: 0;
361}
362div.toclevel2 {
363 margin-left: 2em;
364 font-size: 0.9em;
365}
366div.toclevel3 {
367 margin-left: 4em;
368 font-size: 0.9em;
369}
370div.toclevel4 {
371 margin-left: 6em;
372 font-size: 0.9em;
373}
Junio C Hamano9d971152012-12-19 00:43:11374
375span.aqua { color: aqua; }
376span.black { color: black; }
377span.blue { color: blue; }
378span.fuchsia { color: fuchsia; }
379span.gray { color: gray; }
380span.green { color: green; }
381span.lime { color: lime; }
382span.maroon { color: maroon; }
383span.navy { color: navy; }
384span.olive { color: olive; }
385span.purple { color: purple; }
386span.red { color: red; }
387span.silver { color: silver; }
388span.teal { color: teal; }
389span.white { color: white; }
390span.yellow { color: yellow; }
391
392span.aqua-background { background: aqua; }
393span.black-background { background: black; }
394span.blue-background { background: blue; }
395span.fuchsia-background { background: fuchsia; }
396span.gray-background { background: gray; }
397span.green-background { background: green; }
398span.lime-background { background: lime; }
399span.maroon-background { background: maroon; }
400span.navy-background { background: navy; }
401span.olive-background { background: olive; }
402span.purple-background { background: purple; }
403span.red-background { background: red; }
404span.silver-background { background: silver; }
405span.teal-background { background: teal; }
406span.white-background { background: white; }
407span.yellow-background { background: yellow; }
408
409span.big { font-size: 2em; }
410span.small { font-size: 0.6em; }
411
412span.underline { text-decoration: underline; }
413span.overline { text-decoration: overline; }
414span.line-through { text-decoration: line-through; }
415
Junio C Hamanoac12f0e2014-09-19 22:32:51416div.unbreakable { page-break-inside: avoid; }
417
Junio C Hamano9d971152012-12-19 00:43:11418
419/*
420 * xhtml11 specific
421 *
422 * */
423
424div.tableblock {
425 margin-top: 1.0em;
426 margin-bottom: 1.5em;
427}
428div.tableblock > table {
429 border: 3px solid #527bbd;
430}
431thead, p.table.header {
432 font-weight: bold;
433 color: #527bbd;
434}
435p.table {
436 margin-top: 0;
437}
438/* Because the table frame attribute is overriden by CSS in most browsers. */
439div.tableblock > table[frame="void"] {
440 border-style: none;
441}
442div.tableblock > table[frame="hsides"] {
443 border-left-style: none;
444 border-right-style: none;
445}
446div.tableblock > table[frame="vsides"] {
447 border-top-style: none;
448 border-bottom-style: none;
449}
450
451
452/*
453 * html5 specific
454 *
455 * */
456
457table.tableblock {
458 margin-top: 1.0em;
459 margin-bottom: 1.5em;
460}
461thead, p.tableblock.header {
462 font-weight: bold;
463 color: #527bbd;
464}
465p.tableblock {
466 margin-top: 0;
467}
468table.tableblock {
469 border-width: 3px;
470 border-spacing: 0px;
471 border-style: solid;
472 border-color: #527bbd;
473 border-collapse: collapse;
474}
475th.tableblock, td.tableblock {
476 border-width: 1px;
477 padding: 4px;
478 border-style: solid;
479 border-color: #527bbd;
480}
481
482table.tableblock.frame-topbot {
483 border-left-style: hidden;
484 border-right-style: hidden;
485}
486table.tableblock.frame-sides {
487 border-top-style: hidden;
488 border-bottom-style: hidden;
489}
490table.tableblock.frame-none {
491 border-style: hidden;
492}
493
494th.tableblock.halign-left, td.tableblock.halign-left {
495 text-align: left;
496}
497th.tableblock.halign-center, td.tableblock.halign-center {
498 text-align: center;
499}
500th.tableblock.halign-right, td.tableblock.halign-right {
501 text-align: right;
502}
503
504th.tableblock.valign-top, td.tableblock.valign-top {
505 vertical-align: top;
506}
507th.tableblock.valign-middle, td.tableblock.valign-middle {
508 vertical-align: middle;
509}
510th.tableblock.valign-bottom, td.tableblock.valign-bottom {
511 vertical-align: bottom;
512}
513
514
515/*
516 * manpage specific
517 *
518 * */
519
520body.manpage h1 {
Junio C Hamano68cf15a2010-11-06 01:01:59521 padding-top: 0.5em;
522 padding-bottom: 0.5em;
523 border-top: 2px solid silver;
524 border-bottom: 2px solid silver;
525}
Junio C Hamano9d971152012-12-19 00:43:11526body.manpage h2 {
Junio C Hamano68cf15a2010-11-06 01:01:59527 border-style: none;
528}
Junio C Hamano9d971152012-12-19 00:43:11529body.manpage div.sectionbody {
530 margin-left: 3em;
Junio C Hamano68cf15a2010-11-06 01:01:59531}
532
533@media print {
Junio C Hamano9d971152012-12-19 00:43:11534 body.manpage div#toc { display: none; }
Junio C Hamano68cf15a2010-11-06 01:01:59535}
Junio C Hamanoac12f0e2014-09-19 22:32:51536
537
Junio C Hamano1a4e8412005-12-27 08:17:23538</style>
Junio C Hamano7bd050f2011-09-22 06:32:22539<script type="text/javascript">
540/*<![CDATA[*/
Junio C Hamano7bd050f2011-09-22 06:32:22541var asciidoc = { // Namespace.
542
543/////////////////////////////////////////////////////////////////////
544// Table Of Contents generator
545/////////////////////////////////////////////////////////////////////
546
547/* Author: Mihai Bazon, September 2002
548 * http://students.infoiasi.ro/~mishoo
549 *
550 * Table Of Content generator
551 * Version: 0.4
552 *
553 * Feel free to use this script under the terms of the GNU General Public
554 * License, as long as you do not remove or alter this notice.
555 */
556
557 /* modified by Troy D. Hanson, September 2006. License: GPL */
558 /* modified by Stuart Rackham, 2006, 2009. License: GPL */
559
560// toclevels = 1..4.
561toc: function (toclevels) {
562
563 function getText(el) {
564 var text = "";
565 for (var i = el.firstChild; i != null; i = i.nextSibling) {
566 if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
567 text += i.data;
568 else if (i.firstChild != null)
569 text += getText(i);
570 }
571 return text;
572 }
573
574 function TocEntry(el, text, toclevel) {
575 this.element = el;
576 this.text = text;
577 this.toclevel = toclevel;
578 }
579
580 function tocEntries(el, toclevels) {
581 var result = new Array;
Junio C Hamanoac12f0e2014-09-19 22:32:51582 var re = new RegExp('[hH]([1-'+(toclevels+1)+'])');
Junio C Hamano7bd050f2011-09-22 06:32:22583 // Function that scans the DOM tree for header elements (the DOM2
584 // nodeIterator API would be a better technique but not supported by all
585 // browsers).
586 var iterate = function (el) {
587 for (var i = el.firstChild; i != null; i = i.nextSibling) {
588 if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {
589 var mo = re.exec(i.tagName);
590 if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") {
591 result[result.length] = new TocEntry(i, getText(i), mo[1]-1);
592 }
593 iterate(i);
594 }
595 }
596 }
597 iterate(el);
598 return result;
599 }
600
601 var toc = document.getElementById("toc");
Junio C Hamano9d971152012-12-19 00:43:11602 if (!toc) {
603 return;
604 }
605
606 // Delete existing TOC entries in case we're reloading the TOC.
607 var tocEntriesToRemove = [];
608 var i;
609 for (i = 0; i < toc.childNodes.length; i++) {
610 var entry = toc.childNodes[i];
Junio C Hamanoac12f0e2014-09-19 22:32:51611 if (entry.nodeName.toLowerCase() == 'div'
Junio C Hamano9d971152012-12-19 00:43:11612 && entry.getAttribute("class")
613 && entry.getAttribute("class").match(/^toclevel/))
614 tocEntriesToRemove.push(entry);
615 }
616 for (i = 0; i < tocEntriesToRemove.length; i++) {
617 toc.removeChild(tocEntriesToRemove[i]);
618 }
619
620 // Rebuild TOC entries.
Junio C Hamano7bd050f2011-09-22 06:32:22621 var entries = tocEntries(document.getElementById("content"), toclevels);
622 for (var i = 0; i < entries.length; ++i) {
623 var entry = entries[i];
624 if (entry.element.id == "")
625 entry.element.id = "_toc_" + i;
626 var a = document.createElement("a");
627 a.href = "#" + entry.element.id;
628 a.appendChild(document.createTextNode(entry.text));
629 var div = document.createElement("div");
630 div.appendChild(a);
631 div.className = "toclevel" + entry.toclevel;
632 toc.appendChild(div);
633 }
634 if (entries.length == 0)
635 toc.parentNode.removeChild(toc);
636},
637
638
639/////////////////////////////////////////////////////////////////////
640// Footnotes generator
641/////////////////////////////////////////////////////////////////////
642
643/* Based on footnote generation code from:
644 * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html
645 */
646
647footnotes: function () {
Junio C Hamano9d971152012-12-19 00:43:11648 // Delete existing footnote entries in case we're reloading the footnodes.
649 var i;
Junio C Hamano7bd050f2011-09-22 06:32:22650 var noteholder = document.getElementById("footnotes");
Junio C Hamano9d971152012-12-19 00:43:11651 if (!noteholder) {
652 return;
653 }
654 var entriesToRemove = [];
655 for (i = 0; i < noteholder.childNodes.length; i++) {
656 var entry = noteholder.childNodes[i];
Junio C Hamanoac12f0e2014-09-19 22:32:51657 if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")
Junio C Hamano9d971152012-12-19 00:43:11658 entriesToRemove.push(entry);
659 }
660 for (i = 0; i < entriesToRemove.length; i++) {
661 noteholder.removeChild(entriesToRemove[i]);
662 }
663
664 // Rebuild footnote entries.
665 var cont = document.getElementById("content");
Junio C Hamano7bd050f2011-09-22 06:32:22666 var spans = cont.getElementsByTagName("span");
667 var refs = {};
668 var n = 0;
669 for (i=0; i<spans.length; i++) {
670 if (spans[i].className == "footnote") {
671 n++;
Junio C Hamano9d971152012-12-19 00:43:11672 var note = spans[i].getAttribute("data-note");
673 if (!note) {
674 // Use [\s\S] in place of . so multi-line matches work.
675 // Because JavaScript has no s (dotall) regex flag.
676 note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];
677 spans[i].innerHTML =
678 "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +
679 "' title='View footnote' class='footnote'>" + n + "</a>]";
680 spans[i].setAttribute("data-note", note);
681 }
Junio C Hamano7bd050f2011-09-22 06:32:22682 noteholder.innerHTML +=
683 "<div class='footnote' id='_footnote_" + n + "'>" +
684 "<a href='#_footnoteref_" + n + "' title='Return to text'>" +
685 n + "</a>. " + note + "</div>";
Junio C Hamano7bd050f2011-09-22 06:32:22686 var id =spans[i].getAttribute("id");
687 if (id != null) refs["#"+id] = n;
688 }
689 }
690 if (n == 0)
691 noteholder.parentNode.removeChild(noteholder);
692 else {
693 // Process footnoterefs.
694 for (i=0; i<spans.length; i++) {
695 if (spans[i].className == "footnoteref") {
696 var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");
697 href = href.match(/#.*/)[0]; // Because IE return full URL.
698 n = refs[href];
699 spans[i].innerHTML =
700 "[<a href='#_footnote_" + n +
701 "' title='View footnote' class='footnote'>" + n + "</a>]";
702 }
703 }
704 }
Junio C Hamano9d971152012-12-19 00:43:11705},
706
707install: function(toclevels) {
708 var timerId;
709
710 function reinstall() {
711 asciidoc.footnotes();
712 if (toclevels) {
713 asciidoc.toc(toclevels);
714 }
715 }
716
717 function reinstallAndRemoveTimer() {
718 clearInterval(timerId);
719 reinstall();
720 }
721
722 timerId = setInterval(reinstall, 500);
723 if (document.addEventListener)
724 document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false);
725 else
726 window.onload = reinstallAndRemoveTimer;
Junio C Hamano7bd050f2011-09-22 06:32:22727}
728
729}
Junio C Hamano9d971152012-12-19 00:43:11730asciidoc.install();
Junio C Hamano7bd050f2011-09-22 06:32:22731/*]]>*/
732</script>
Junio C Hamano1a4e8412005-12-27 08:17:23733</head>
Junio C Hamano9d971152012-12-19 00:43:11734<body class="manpage">
Junio C Hamano1a4e8412005-12-27 08:17:23735<div id="header">
736<h1>
Junio C Hamanof7c042d2008-06-06 22:50:53737git(1) Manual Page
Junio C Hamano1a4e8412005-12-27 08:17:23738</h1>
739<h2>NAME</h2>
740<div class="sectionbody">
741<p>git -
742 the stupid content tracker
743</p>
744</div>
745</div>
Junio C Hamano7bd050f2011-09-22 06:32:22746<div id="content">
Junio C Hamano9d971152012-12-19 00:43:11747<div class="sect1">
Junio C Hamano68cf15a2010-11-06 01:01:59748<h2 id="_synopsis">SYNOPSIS</h2>
Junio C Hamano1a4e8412005-12-27 08:17:23749<div class="sectionbody">
Junio C Hamano6b2cee12006-08-26 08:43:31750<div class="verseblock">
Junio C Hamano79f4c7c2013-09-20 21:03:37751<pre class="content"><em>git</em> [--version] [--help] [-C &lt;path&gt;] [-c &lt;name&gt;=&lt;value&gt;]
Junio C Hamano90ff60f2012-02-20 10:25:14752 [--exec-path[=&lt;path&gt;]] [--html-path] [--man-path] [--info-path]
Junio C Hamanof7279012011-08-18 06:13:13753 [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
754 [--git-dir=&lt;path&gt;] [--work-tree=&lt;path&gt;] [--namespace=&lt;name&gt;]
Junio C Hamano4a401d52016-10-26 22:24:37755 [--super-prefix=&lt;path&gt;]
Junio C Hamano9d971152012-12-19 00:43:11756 &lt;command&gt; [&lt;args&gt;]</pre>
757<div class="attribution">
Junio C Hamano68cf15a2010-11-06 01:01:59758</div></div>
Junio C Hamano1a4e8412005-12-27 08:17:23759</div>
Junio C Hamano9d971152012-12-19 00:43:11760</div>
761<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31762<h2 id="_description">DESCRIPTION</h2>
Junio C Hamano1a4e8412005-12-27 08:17:23763<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:59764<div class="paragraph"><p>Git is a fast, scalable, distributed revision control system with an
Junio C Hamanoe27fb932006-04-03 05:34:10765unusually rich command set that provides both high-level operations
Junio C Hamanoba4b9282008-07-06 05:20:31766and full access to internals.</p></div>
Junio C Hamanoa28a9202012-06-21 07:08:23767<div class="paragraph"><p>See <a href="gittutorial.html">gittutorial(7)</a> to get started, then see
Junio C Hamano446e30b2014-10-16 21:30:32768<a href="giteveryday.html">giteveryday(7)</a> for a useful minimum set of
Junio C Hamanod0316112012-08-22 19:55:29769commands. The <a href="user-manual.html">Git User&#8217;s Manual</a> has a more
770in-depth introduction.</p></div>
771<div class="paragraph"><p>After you mastered the basic concepts, you can come back to this
Junio C Hamano076ffcc2013-02-06 05:13:21772page to learn what commands Git offers. You can learn more about
773individual Git commands with "git help command". <a href="gitcli.html">gitcli(7)</a>
Junio C Hamanoe1aeb5e2014-06-06 19:16:29774manual page gives you an overview of the command-line command syntax.</p></div>
Junio C Hamano48931e22016-07-11 20:08:47775<div class="paragraph"><p>A formatted and hyperlinked copy of the latest Git documentation
776can be viewed at <code>https://git.github.io/htmldocs/git.html</code>.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:23777</div>
Junio C Hamano9d971152012-12-19 00:43:11778</div>
779<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31780<h2 id="_options">OPTIONS</h2>
Junio C Hamano1a4e8412005-12-27 08:17:23781<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:59782<div class="dlist"><dl>
783<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:23784--version
785</dt>
786<dd>
787<p>
Junio C Hamano076ffcc2013-02-06 05:13:21788 Prints the Git suite version that the <em>git</em> program came from.
Junio C Hamano1a4e8412005-12-27 08:17:23789</p>
790</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59791<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:23792--help
793</dt>
794<dd>
795<p>
Junio C Hamano01078922006-03-10 00:31:47796 Prints the synopsis and a list of the most commonly used
Junio C Hamano92d80372016-07-13 22:00:05797 commands. If the option <code>--all</code> or <code>-a</code> is given then all
Junio C Hamano076ffcc2013-02-06 05:13:21798 available commands are printed. If a Git command is named this
Junio C Hamano58256872007-12-04 08:31:13799 option will bring up the manual page for that command.
Junio C Hamano1a4e8412005-12-27 08:17:23800</p>
Junio C Hamano68cf15a2010-11-06 01:01:59801<div class="paragraph"><p>Other options are available to control how the manual page is
Junio C Hamanoa28a9202012-06-21 07:08:23802displayed. See <a href="git-help.html">git-help(1)</a> for more information,
Junio C Hamanoac12f0e2014-09-19 22:32:51803because <code>git --help ...</code> is converted internally into <code>git
804help ...</code>.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:23805</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59806<dt class="hdlist1">
Junio C Hamano79f4c7c2013-09-20 21:03:37807-C &lt;path&gt;
808</dt>
809<dd>
810<p>
811 Run as if git was started in <em>&lt;path&gt;</em> instead of the current working
Junio C Hamanoac12f0e2014-09-19 22:32:51812 directory. When multiple <code>-C</code> options are given, each subsequent
813 non-absolute <code>-C &lt;path&gt;</code> is interpreted relative to the preceding <code>-C
814 &lt;path&gt;</code>.
Junio C Hamano79f4c7c2013-09-20 21:03:37815</p>
Junio C Hamanoac12f0e2014-09-19 22:32:51816<div class="paragraph"><p>This option affects options that expect path name like <code>--git-dir</code> and
817<code>--work-tree</code> in that their interpretations of the path names would be
818made relative to the working directory caused by the <code>-C</code> option. For
Junio C Hamano79f4c7c2013-09-20 21:03:37819example the following invocations are equivalent:</p></div>
820<div class="literalblock">
821<div class="content">
Junio C Hamanoac12f0e2014-09-19 22:32:51822<pre><code>git --git-dir=a.git --work-tree=b -C c status
823git --git-dir=c/a.git --work-tree=c/b status</code></pre>
Junio C Hamano79f4c7c2013-09-20 21:03:37824</div></div>
825</dd>
826<dt class="hdlist1">
Junio C Hamanocc7636a2010-05-21 14:57:53827-c &lt;name&gt;=&lt;value&gt;
828</dt>
829<dd>
830<p>
831 Pass a configuration parameter to the command. The value
832 given will override values from configuration files.
833 The &lt;name&gt; is expected in the same format as listed by
834 <em>git config</em> (subkeys separated by dots).
835</p>
Junio C Hamanoac12f0e2014-09-19 22:32:51836<div class="paragraph"><p>Note that omitting the <code>=</code> in <code>git -c foo.bar ...</code> is allowed and sets
837<code>foo.bar</code> to the boolean true value (just like <code>[foo]bar</code> would in a
838config file). Including the equals but with an empty value (like <code>git -c
839foo.bar= ...</code>) sets <code>foo.bar</code> to the empty string.</p></div>
Junio C Hamanocc7636a2010-05-21 14:57:53840</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59841<dt class="hdlist1">
Junio C Hamanod2179ef2010-10-22 04:12:17842--exec-path[=&lt;path&gt;]
Junio C Hamano1a4e8412005-12-27 08:17:23843</dt>
844<dd>
845<p>
Junio C Hamano076ffcc2013-02-06 05:13:21846 Path to wherever your core Git programs are installed.
Junio C Hamano1a4e8412005-12-27 08:17:23847 This can also be controlled by setting the GIT_EXEC_PATH
Junio C Hamanoba4b9282008-07-06 05:20:31848 environment variable. If no path is given, <em>git</em> will print
Junio C Hamano1a4e8412005-12-27 08:17:23849 the current setting and then exit.
850</p>
851</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59852<dt class="hdlist1">
Junio C Hamanob4a9ede2009-04-08 07:36:32853--html-path
854</dt>
855<dd>
856<p>
Junio C Hamano076ffcc2013-02-06 05:13:21857 Print the path, without trailing slash, where Git&#8217;s HTML
Junio C Hamano5f2627d2011-05-06 20:23:48858 documentation is installed and exit.
859</p>
860</dd>
861<dt class="hdlist1">
862--man-path
863</dt>
864<dd>
865<p>
Junio C Hamanoac12f0e2014-09-19 22:32:51866 Print the manpath (see <code>man(1)</code>) for the man pages for
Junio C Hamano076ffcc2013-02-06 05:13:21867 this version of Git and exit.
Junio C Hamano5f2627d2011-05-06 20:23:48868</p>
869</dd>
870<dt class="hdlist1">
871--info-path
872</dt>
873<dd>
874<p>
875 Print the path where the Info files documenting this
Junio C Hamano076ffcc2013-02-06 05:13:21876 version of Git are installed and exit.
Junio C Hamanob4a9ede2009-04-08 07:36:32877</p>
878</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59879<dt class="hdlist1">
Junio C Hamanoeb415992008-06-08 22:49:47880-p
881</dt>
Junio C Hamano68cf15a2010-11-06 01:01:59882<dt class="hdlist1">
Junio C Hamanoeb415992008-06-08 22:49:47883--paginate
Junio C Hamanof870ef82006-07-29 09:10:13884</dt>
885<dd>
886<p>
Junio C Hamano4aa0bcc2010-03-03 05:13:12887 Pipe all output into <em>less</em> (or if set, $PAGER) if standard
Junio C Hamanoac12f0e2014-09-19 22:32:51888 output is a terminal. This overrides the <code>pager.&lt;cmd&gt;</code>
Junio C Hamano4aa0bcc2010-03-03 05:13:12889 configuration options (see the "Configuration Mechanism" section
890 below).
Junio C Hamanof870ef82006-07-29 09:10:13891</p>
892</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59893<dt class="hdlist1">
Junio C Hamanocae86272007-08-21 02:20:49894--no-pager
895</dt>
896<dd>
897<p>
Junio C Hamano076ffcc2013-02-06 05:13:21898 Do not pipe Git output into a pager.
Junio C Hamanocae86272007-08-21 02:20:49899</p>
900</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59901<dt class="hdlist1">
Junio C Hamanof870ef82006-07-29 09:10:13902--git-dir=&lt;path&gt;
903</dt>
904<dd>
905<p>
906 Set the path to the repository. This can also be controlled by
Junio C Hamano042f2142016-06-27 18:05:05907 setting the <code>GIT_DIR</code> environment variable. It can be an absolute
Junio C Hamano7d575a52008-04-30 08:45:27908 path or relative path to current working directory.
Junio C Hamanof870ef82006-07-29 09:10:13909</p>
910</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59911<dt class="hdlist1">
Junio C Hamanod526ba92007-07-02 00:17:42912--work-tree=&lt;path&gt;
913</dt>
914<dd>
915<p>
Junio C Hamano80d58462011-01-24 22:52:52916 Set the path to the working tree. It can be an absolute path
917 or a path relative to the current working directory.
Junio C Hamanod526ba92007-07-02 00:17:42918 This can also be controlled by setting the GIT_WORK_TREE
919 environment variable and the core.worktree configuration
Junio C Hamanoa28a9202012-06-21 07:08:23920 variable (see core.worktree in <a href="git-config.html">git-config(1)</a> for a
Junio C Hamano80d58462011-01-24 22:52:52921 more detailed discussion).
Junio C Hamanod526ba92007-07-02 00:17:42922</p>
923</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59924<dt class="hdlist1">
Junio C Hamanof7279012011-08-18 06:13:13925--namespace=&lt;path&gt;
926</dt>
927<dd>
928<p>
Junio C Hamano076ffcc2013-02-06 05:13:21929 Set the Git namespace. See <a href="gitnamespaces.html">gitnamespaces(7)</a> for more
Junio C Hamanoac12f0e2014-09-19 22:32:51930 details. Equivalent to setting the <code>GIT_NAMESPACE</code> environment
Junio C Hamanof7279012011-08-18 06:13:13931 variable.
932</p>
933</dd>
934<dt class="hdlist1">
Junio C Hamano4a401d52016-10-26 22:24:37935--super-prefix=&lt;path&gt;
936</dt>
937<dd>
938<p>
939 Currently for internal use only. Set a prefix which gives a path from
940 above a repository down to its root. One use is to give submodules
941 context about the superproject that invoked it.
942</p>
943</dd>
944<dt class="hdlist1">
Junio C Hamanof870ef82006-07-29 09:10:13945--bare
946</dt>
947<dd>
948<p>
Junio C Hamanoc435b1c2007-08-28 06:25:35949 Treat the repository as a bare repository. If GIT_DIR
950 environment is not set, it is set to the current working
951 directory.
Junio C Hamanof870ef82006-07-29 09:10:13952</p>
953</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59954<dt class="hdlist1">
Junio C Hamano3d23a0a2009-10-19 08:04:30955--no-replace-objects
956</dt>
957<dd>
958<p>
Junio C Hamano076ffcc2013-02-06 05:13:21959 Do not use replacement refs to replace Git objects. See
Junio C Hamanoa28a9202012-06-21 07:08:23960 <a href="git-replace.html">git-replace(1)</a> for more information.
Junio C Hamano3d23a0a2009-10-19 08:04:30961</p>
962</dd>
Junio C Hamanoabad6da2013-01-06 09:06:32963<dt class="hdlist1">
964--literal-pathspecs
965</dt>
966<dd>
967<p>
Junio C Hamano8eac2682013-09-09 22:35:20968 Treat pathspecs literally (i.e. no globbing, no pathspec magic).
Junio C Hamanoac12f0e2014-09-19 22:32:51969 This is equivalent to setting the <code>GIT_LITERAL_PATHSPECS</code> environment
970 variable to <code>1</code>.
Junio C Hamanoabad6da2013-01-06 09:06:32971</p>
972</dd>
Junio C Hamanob9acecb2013-10-16 01:18:56973<dt class="hdlist1">
974--glob-pathspecs
975</dt>
976<dd>
977<p>
Junio C Hamano8eac2682013-09-09 22:35:20978 Add "glob" magic to all pathspec. This is equivalent to setting
Junio C Hamanoac12f0e2014-09-19 22:32:51979 the <code>GIT_GLOB_PATHSPECS</code> environment variable to <code>1</code>. Disabling
Junio C Hamano8eac2682013-09-09 22:35:20980 globbing on individual pathspecs can be done using pathspec
Junio C Hamanob9acecb2013-10-16 01:18:56981 magic ":(literal)"
982</p>
983</dd>
984<dt class="hdlist1">
985--noglob-pathspecs
986</dt>
987<dd>
988<p>
Junio C Hamano8eac2682013-09-09 22:35:20989 Add "literal" magic to all pathspec. This is equivalent to setting
Junio C Hamanoac12f0e2014-09-19 22:32:51990 the <code>GIT_NOGLOB_PATHSPECS</code> environment variable to <code>1</code>. Enabling
Junio C Hamano8eac2682013-09-09 22:35:20991 globbing on individual pathspecs can be done using pathspec
Junio C Hamanob9acecb2013-10-16 01:18:56992 magic ":(glob)"
993</p>
994</dd>
995<dt class="hdlist1">
996--icase-pathspecs
997</dt>
998<dd>
999<p>
Junio C Hamano8eac2682013-09-09 22:35:201000 Add "icase" magic to all pathspec. This is equivalent to setting
Junio C Hamanoac12f0e2014-09-19 22:32:511001 the <code>GIT_ICASE_PATHSPECS</code> environment variable to <code>1</code>.
Junio C Hamanob9acecb2013-10-16 01:18:561002</p>
1003</dd>
1004</dl></div>
Junio C Hamano1a4e8412005-12-27 08:17:231005</div>
Junio C Hamano9d971152012-12-19 00:43:111006</div>
1007<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:311008<h2 id="_git_commands">GIT COMMANDS</h2>
Junio C Hamano1a4e8412005-12-27 08:17:231009<div class="sectionbody">
Junio C Hamano076ffcc2013-02-06 05:13:211010<div class="paragraph"><p>We divide Git into high level ("porcelain") commands and low level
Junio C Hamanoba4b9282008-07-06 05:20:311011("plumbing") commands.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:231012</div>
Junio C Hamano9d971152012-12-19 00:43:111013</div>
1014<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:311015<h2 id="_high_level_commands_porcelain">High-level commands (porcelain)</h2>
Junio C Hamano1a4e8412005-12-27 08:17:231016<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:591017<div class="paragraph"><p>We separate the porcelain commands into the main commands and some
Junio C Hamanoba4b9282008-07-06 05:20:311018ancillary user utilities.</p></div>
Junio C Hamano9d971152012-12-19 00:43:111019<div class="sect2">
1020<h3 id="_main_porcelain_commands">Main porcelain commands</h3>
Junio C Hamano68cf15a2010-11-06 01:01:591021<div class="dlist"><dl>
1022<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231023<a href="git-add.html">git-add(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231024</dt>
1025<dd>
1026<p>
Junio C Hamano4cd1c0e2007-08-06 04:39:141027 Add file contents to the index.
Junio C Hamano1a4e8412005-12-27 08:17:231028</p>
1029</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591030<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231031<a href="git-am.html">git-am(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231032</dt>
1033<dd>
1034<p>
Junio C Hamano7c73c662007-01-19 00:37:501035 Apply a series of patches from a mailbox.
Junio C Hamano1a4e8412005-12-27 08:17:231036</p>
1037</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591038<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231039<a href="git-archive.html">git-archive(1)</a>
Junio C Hamano817abb42006-09-26 07:16:581040</dt>
1041<dd>
1042<p>
Junio C Hamano4ec06712007-06-09 20:39:331043 Create an archive of files from a named tree.
Junio C Hamano817abb42006-09-26 07:16:581044</p>
1045</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591046<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231047<a href="git-bisect.html">git-bisect(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231048</dt>
1049<dd>
1050<p>
Junio C Hamano9c512872015-08-12 21:59:251051 Use binary search to find the commit that introduced a bug.
Junio C Hamano1a4e8412005-12-27 08:17:231052</p>
1053</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591054<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231055<a href="git-branch.html">git-branch(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231056</dt>
1057<dd>
1058<p>
Junio C Hamano7c73c662007-01-19 00:37:501059 List, create, or delete branches.
Junio C Hamano1a4e8412005-12-27 08:17:231060</p>
1061</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591062<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231063<a href="git-bundle.html">git-bundle(1)</a>
Junio C Hamano6ac2f142007-03-01 01:24:561064</dt>
1065<dd>
1066<p>
1067 Move objects and refs by archive.
1068</p>
1069</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591070<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231071<a href="git-checkout.html">git-checkout(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231072</dt>
1073<dd>
1074<p>
Junio C Hamano823eebb2015-07-10 22:29:341075 Switch branches or restore working tree files.
Junio C Hamano1a4e8412005-12-27 08:17:231076</p>
1077</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591078<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231079<a href="git-cherry-pick.html">git-cherry-pick(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231080</dt>
1081<dd>
1082<p>
Junio C Hamano89a57342010-06-22 23:22:551083 Apply the changes introduced by some existing commits.
Junio C Hamano1a4e8412005-12-27 08:17:231084</p>
1085</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591086<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231087<a href="git-citool.html">git-citool(1)</a>
Junio C Hamano58784fc2007-06-23 08:48:571088</dt>
1089<dd>
1090<p>
1091 Graphical alternative to git-commit.
1092</p>
1093</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591094<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231095<a href="git-clean.html">git-clean(1)</a>
Junio C Hamano54559c82006-04-13 07:45:121096</dt>
1097<dd>
1098<p>
1099 Remove untracked files from the working tree.
1100</p>
1101</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591102<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231103<a href="git-clone.html">git-clone(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231104</dt>
1105<dd>
1106<p>
Junio C Hamano4ec06712007-06-09 20:39:331107 Clone a repository into a new directory.
Junio C Hamano1a4e8412005-12-27 08:17:231108</p>
1109</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591110<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231111<a href="git-commit.html">git-commit(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231112</dt>
1113<dd>
1114<p>
1115 Record changes to the repository.
1116</p>
1117</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591118<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231119<a href="git-describe.html">git-describe(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501120</dt>
1121<dd>
1122<p>
Junio C Hamano2f797822015-07-01 22:26:231123 Describe a commit using the most recent tag reachable from it.
Junio C Hamano4ad294b2007-01-20 02:22:501124</p>
1125</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591126<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231127<a href="git-diff.html">git-diff(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231128</dt>
1129<dd>
1130<p>
1131 Show changes between commits, commit and working tree, etc.
1132</p>
1133</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591134<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231135<a href="git-fetch.html">git-fetch(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231136</dt>
1137<dd>
1138<p>
Junio C Hamano7c73c662007-01-19 00:37:501139 Download objects and refs from another repository.
Junio C Hamano1a4e8412005-12-27 08:17:231140</p>
1141</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591142<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231143<a href="git-format-patch.html">git-format-patch(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231144</dt>
1145<dd>
1146<p>
1147 Prepare patches for e-mail submission.
1148</p>
1149</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591150<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231151<a href="git-gc.html">git-gc(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501152</dt>
1153<dd>
1154<p>
1155 Cleanup unnecessary files and optimize the local repository.
1156</p>
1157</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591158<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231159<a href="git-grep.html">git-grep(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231160</dt>
1161<dd>
1162<p>
1163 Print lines matching a pattern.
1164</p>
1165</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591166<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231167<a href="git-gui.html">git-gui(1)</a>
Junio C Hamano58784fc2007-06-23 08:48:571168</dt>
1169<dd>
1170<p>
1171 A portable graphical interface to Git.
1172</p>
1173</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591174<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231175<a href="git-init.html">git-init(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501176</dt>
1177<dd>
1178<p>
Junio C Hamano076ffcc2013-02-06 05:13:211179 Create an empty Git repository or reinitialize an existing one.
Junio C Hamano4ad294b2007-01-20 02:22:501180</p>
1181</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591182<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231183<a href="git-log.html">git-log(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231184</dt>
1185<dd>
1186<p>
Junio C Hamano7c73c662007-01-19 00:37:501187 Show commit logs.
Junio C Hamano1a4e8412005-12-27 08:17:231188</p>
1189</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591190<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231191<a href="git-merge.html">git-merge(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231192</dt>
1193<dd>
1194<p>
Junio C Hamano7c73c662007-01-19 00:37:501195 Join two or more development histories together.
Junio C Hamano1a4e8412005-12-27 08:17:231196</p>
1197</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591198<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231199<a href="git-mv.html">git-mv(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231200</dt>
1201<dd>
1202<p>
1203 Move or rename a file, a directory, or a symlink.
1204</p>
1205</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591206<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231207<a href="git-notes.html">git-notes(1)</a>
Junio C Hamano3b70d3c2009-11-21 17:37:371208</dt>
1209<dd>
1210<p>
Junio C Hamanoa574a092010-06-13 19:57:101211 Add or inspect object notes.
Junio C Hamano3b70d3c2009-11-21 17:37:371212</p>
1213</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591214<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231215<a href="git-pull.html">git-pull(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231216</dt>
1217<dd>
1218<p>
Junio C Hamano8401f142013-07-12 22:47:461219 Fetch from and integrate with another repository or a local branch.
Junio C Hamano1a4e8412005-12-27 08:17:231220</p>
1221</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591222<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231223<a href="git-push.html">git-push(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231224</dt>
1225<dd>
1226<p>
1227 Update remote refs along with associated objects.
1228</p>
1229</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591230<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231231<a href="git-rebase.html">git-rebase(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231232</dt>
1233<dd>
1234<p>
Junio C Hamanodf97ffc2016-03-10 22:58:001235 Reapply commits on top of another base tip.
Junio C Hamano1a4e8412005-12-27 08:17:231236</p>
1237</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591238<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231239<a href="git-reset.html">git-reset(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231240</dt>
1241<dd>
1242<p>
1243 Reset current HEAD to the specified state.
1244</p>
1245</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591246<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231247<a href="git-revert.html">git-revert(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231248</dt>
1249<dd>
1250<p>
Junio C Hamano89a57342010-06-22 23:22:551251 Revert some existing commits.
Junio C Hamano1a4e8412005-12-27 08:17:231252</p>
1253</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591254<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231255<a href="git-rm.html">git-rm(1)</a>
Junio C Hamano54559c82006-04-13 07:45:121256</dt>
1257<dd>
1258<p>
1259 Remove files from the working tree and from the index.
1260</p>
1261</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591262<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231263<a href="git-shortlog.html">git-shortlog(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231264</dt>
1265<dd>
1266<p>
Junio C Hamano1aa40d22010-01-21 17:46:431267 Summarize <em>git log</em> output.
Junio C Hamano1a4e8412005-12-27 08:17:231268</p>
1269</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591270<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231271<a href="git-show.html">git-show(1)</a>
Junio C Hamano2b135272006-03-18 07:45:421272</dt>
1273<dd>
1274<p>
Junio C Hamano7c73c662007-01-19 00:37:501275 Show various types of objects.
Junio C Hamano2b135272006-03-18 07:45:421276</p>
1277</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591278<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231279<a href="git-stash.html">git-stash(1)</a>
Junio C Hamano1d90cb02007-07-03 07:05:311280</dt>
1281<dd>
1282<p>
1283 Stash the changes in a dirty working directory away.
1284</p>
1285</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591286<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231287<a href="git-status.html">git-status(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231288</dt>
1289<dd>
1290<p>
Junio C Hamano7c73c662007-01-19 00:37:501291 Show the working tree status.
Junio C Hamano1a4e8412005-12-27 08:17:231292</p>
1293</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591294<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231295<a href="git-submodule.html">git-submodule(1)</a>
Junio C Hamano38b693c2007-06-03 08:40:141296</dt>
1297<dd>
1298<p>
1299 Initialize, update or inspect submodules.
1300</p>
1301</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591302<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231303<a href="git-tag.html">git-tag(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501304</dt>
1305<dd>
1306<p>
Junio C Hamanodb450ba2007-01-21 08:57:141307 Create, list, delete or verify a tag object signed with GPG.
Junio C Hamano4ad294b2007-01-20 02:22:501308</p>
1309</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591310<dt class="hdlist1">
Junio C Hamanob5dd60f2015-07-13 21:48:051311<a href="git-worktree.html">git-worktree(1)</a>
1312</dt>
1313<dd>
1314<p>
Junio C Hamano9c512872015-08-12 21:59:251315 Manage multiple working trees.
Junio C Hamanob5dd60f2015-07-13 21:48:051316</p>
1317</dd>
1318<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231319<a href="gitk.html">gitk(1)</a>
Junio C Hamano0a16b952007-12-02 18:56:341320</dt>
1321<dd>
1322<p>
Junio C Hamano076ffcc2013-02-06 05:13:211323 The Git repository browser.
Junio C Hamano0a16b952007-12-02 18:56:341324</p>
1325</dd>
Junio C Hamanoba4b9282008-07-06 05:20:311326</dl></div>
Junio C Hamano9d971152012-12-19 00:43:111327</div>
1328<div class="sect2">
1329<h3 id="_ancillary_commands">Ancillary Commands</h3>
Junio C Hamano68cf15a2010-11-06 01:01:591330<div class="paragraph"><p>Manipulators:</p></div>
1331<div class="dlist"><dl>
1332<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231333<a href="git-config.html">git-config(1)</a>
Junio C Hamanob1d6e882007-08-11 08:30:161334</dt>
1335<dd>
1336<p>
1337 Get and set repository or global options.
1338</p>
1339</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591340<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231341<a href="git-fast-export.html">git-fast-export(1)</a>
Junio C Hamano58256872007-12-04 08:31:131342</dt>
1343<dd>
1344<p>
1345 Git data exporter.
1346</p>
1347</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591348<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231349<a href="git-fast-import.html">git-fast-import(1)</a>
Junio C Hamanodfc4ce72007-02-07 23:17:291350</dt>
1351<dd>
1352<p>
Junio C Hamano053827f2007-02-14 07:23:581353 Backend for fast Git data importers.
Junio C Hamanodfc4ce72007-02-07 23:17:291354</p>
1355</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591356<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231357<a href="git-filter-branch.html">git-filter-branch(1)</a>
Junio C Hamanobb0f4042007-07-04 06:41:401358</dt>
1359<dd>
1360<p>
1361 Rewrite branches.
1362</p>
1363</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591364<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231365<a href="git-mergetool.html">git-mergetool(1)</a>
Junio C Hamano103ad7f2007-03-14 11:19:261366</dt>
1367<dd>
1368<p>
1369 Run merge conflict resolution tools to resolve merge conflicts.
1370</p>
1371</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591372<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231373<a href="git-pack-refs.html">git-pack-refs(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501374</dt>
1375<dd>
1376<p>
1377 Pack heads and tags for efficient repository access.
1378</p>
1379</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591380<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231381<a href="git-prune.html">git-prune(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501382</dt>
1383<dd>
1384<p>
Junio C Hamano4ec06712007-06-09 20:39:331385 Prune all unreachable objects from the object database.
Junio C Hamano4ad294b2007-01-20 02:22:501386</p>
1387</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591388<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231389<a href="git-reflog.html">git-reflog(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501390</dt>
1391<dd>
1392<p>
1393 Manage reflog information.
1394</p>
1395</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591396<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231397<a href="git-relink.html">git-relink(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501398</dt>
1399<dd>
1400<p>
1401 Hardlink common objects in local repositories.
1402</p>
1403</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591404<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231405<a href="git-remote.html">git-remote(1)</a>
Junio C Hamano053827f2007-02-14 07:23:581406</dt>
1407<dd>
1408<p>
Junio C Hamano5b3533d2014-02-27 23:07:151409 Manage set of tracked repositories.
Junio C Hamano053827f2007-02-14 07:23:581410</p>
1411</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591412<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231413<a href="git-repack.html">git-repack(1)</a>
Junio C Hamanob1d6e882007-08-11 08:30:161414</dt>
1415<dd>
1416<p>
1417 Pack unpacked objects in a repository.
1418</p>
1419</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591420<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231421<a href="git-replace.html">git-replace(1)</a>
Junio C Hamano55295992009-10-13 09:06:331422</dt>
1423<dd>
1424<p>
1425 Create, list, delete refs to replace objects.
1426</p>
1427</dd>
Junio C Hamanoba4b9282008-07-06 05:20:311428</dl></div>
Junio C Hamano68cf15a2010-11-06 01:01:591429<div class="paragraph"><p>Interrogators:</p></div>
1430<div class="dlist"><dl>
1431<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231432<a href="git-annotate.html">git-annotate(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501433</dt>
1434<dd>
1435<p>
Junio C Hamano7924d5e2009-03-03 08:28:481436 Annotate file lines with commit information.
Junio C Hamano4ad294b2007-01-20 02:22:501437</p>
1438</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591439<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231440<a href="git-blame.html">git-blame(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501441</dt>
1442<dd>
1443<p>
1444 Show what revision and author last modified each line of a file.
1445</p>
1446</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591447<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231448<a href="git-cherry.html">git-cherry(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501449</dt>
1450<dd>
1451<p>
Junio C Hamano4c8f2d92013-12-13 00:55:421452 Find commits yet to be applied to upstream.
Junio C Hamano4ad294b2007-01-20 02:22:501453</p>
1454</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591455<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231456<a href="git-count-objects.html">git-count-objects(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501457</dt>
1458<dd>
1459<p>
1460 Count unpacked number of objects and their disk consumption.
1461</p>
1462</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591463<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231464<a href="git-difftool.html">git-difftool(1)</a>
Junio C Hamano3bd66e92009-04-18 06:17:561465</dt>
1466<dd>
1467<p>
1468 Show changes using common diff tools.
1469</p>
1470</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591471<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231472<a href="git-fsck.html">git-fsck(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501473</dt>
1474<dd>
1475<p>
1476 Verifies the connectivity and validity of the objects in the database.
1477</p>
1478</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591479<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231480<a href="git-get-tar-commit-id.html">git-get-tar-commit-id(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501481</dt>
1482<dd>
1483<p>
Junio C Hamano393e57f2007-11-20 04:53:251484 Extract commit ID from an archive created using git-archive.
Junio C Hamano4ad294b2007-01-20 02:22:501485</p>
1486</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591487<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231488<a href="git-help.html">git-help(1)</a>
Junio C Hamano58256872007-12-04 08:31:131489</dt>
1490<dd>
1491<p>
Junio C Hamano076ffcc2013-02-06 05:13:211492 Display help information about Git.
Junio C Hamano58256872007-12-04 08:31:131493</p>
1494</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591495<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231496<a href="git-instaweb.html">git-instaweb(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501497</dt>
1498<dd>
1499<p>
1500 Instantly browse your working repository in gitweb.
1501</p>
1502</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591503<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231504<a href="git-merge-tree.html">git-merge-tree(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501505</dt>
1506<dd>
1507<p>
1508 Show three-way merge without touching index.
1509</p>
1510</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591511<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231512<a href="git-rerere.html">git-rerere(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501513</dt>
1514<dd>
1515<p>
1516 Reuse recorded resolution of conflicted merges.
1517</p>
1518</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591519<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231520<a href="git-rev-parse.html">git-rev-parse(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501521</dt>
1522<dd>
1523<p>
1524 Pick out and massage parameters.
1525</p>
1526</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591527<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231528<a href="git-show-branch.html">git-show-branch(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501529</dt>
1530<dd>
1531<p>
1532 Show branches and their commits.
1533</p>
1534</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591535<dt class="hdlist1">
Junio C Hamano56121c42014-07-10 23:23:351536<a href="git-verify-commit.html">git-verify-commit(1)</a>
1537</dt>
1538<dd>
1539<p>
1540 Check the GPG signature of commits.
1541</p>
1542</dd>
1543<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231544<a href="git-verify-tag.html">git-verify-tag(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231545</dt>
1546<dd>
1547<p>
Junio C Hamanob1d6e882007-08-11 08:30:161548 Check the GPG signature of tags.
Junio C Hamano1a4e8412005-12-27 08:17:231549</p>
1550</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591551<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231552<a href="git-whatchanged.html">git-whatchanged(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231553</dt>
1554<dd>
1555<p>
Junio C Hamano7c73c662007-01-19 00:37:501556 Show logs with difference each commit introduces.
Junio C Hamano1a4e8412005-12-27 08:17:231557</p>
1558</dd>
Junio C Hamano11821ed2011-10-19 18:42:091559<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231560<a href="gitweb.html">gitweb(1)</a>
Junio C Hamano11821ed2011-10-19 18:42:091561</dt>
1562<dd>
1563<p>
1564 Git web interface (web frontend to Git repositories).
1565</p>
1566</dd>
Junio C Hamanoba4b9282008-07-06 05:20:311567</dl></div>
Junio C Hamano9d971152012-12-19 00:43:111568</div>
1569<div class="sect2">
1570<h3 id="_interacting_with_others">Interacting with Others</h3>
Junio C Hamano68cf15a2010-11-06 01:01:591571<div class="paragraph"><p>These commands are to interact with foreign SCM and with other
Junio C Hamanoba4b9282008-07-06 05:20:311572people via patch over e-mail.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:591573<div class="dlist"><dl>
1574<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231575<a href="git-archimport.html">git-archimport(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231576</dt>
1577<dd>
1578<p>
Junio C Hamano076ffcc2013-02-06 05:13:211579 Import an Arch repository into Git.
Junio C Hamano1a4e8412005-12-27 08:17:231580</p>
1581</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591582<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231583<a href="git-cvsexportcommit.html">git-cvsexportcommit(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231584</dt>
1585<dd>
1586<p>
1587 Export a single commit to a CVS checkout.
1588</p>
1589</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591590<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231591<a href="git-cvsimport.html">git-cvsimport(1)</a>
Junio C Hamano7c73c662007-01-19 00:37:501592</dt>
1593<dd>
1594<p>
1595 Salvage your data out of another SCM people love to hate.
1596</p>
1597</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591598<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231599<a href="git-cvsserver.html">git-cvsserver(1)</a>
Junio C Hamano54559c82006-04-13 07:45:121600</dt>
1601<dd>
1602<p>
Junio C Hamano076ffcc2013-02-06 05:13:211603 A CVS server emulator for Git.
Junio C Hamano54559c82006-04-13 07:45:121604</p>
1605</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591606<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231607<a href="git-imap-send.html">git-imap-send(1)</a>
Junio C Hamano52299462006-12-28 00:59:381608</dt>
1609<dd>
1610<p>
Junio C Hamano5cf43ca2008-08-20 09:14:141611 Send a collection of patches from stdin to an IMAP folder.
Junio C Hamano1a4e8412005-12-27 08:17:231612</p>
1613</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591614<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231615<a href="git-p4.html">git-p4(1)</a>
Junio C Hamano4eda1362012-04-23 20:55:491616</dt>
1617<dd>
1618<p>
1619 Import from and submit to Perforce repositories.
1620</p>
1621</dd>
1622<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231623<a href="git-quiltimport.html">git-quiltimport(1)</a>
Junio C Hamano33db4372006-06-07 19:51:451624</dt>
1625<dd>
1626<p>
1627 Applies a quilt patchset onto the current branch.
1628</p>
1629</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591630<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231631<a href="git-request-pull.html">git-request-pull(1)</a>
Junio C Hamano74640642006-12-27 10:59:551632</dt>
1633<dd>
1634<p>
Junio C Hamano4ad294b2007-01-20 02:22:501635 Generates a summary of pending changes.
Junio C Hamano74640642006-12-27 10:59:551636</p>
1637</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591638<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231639<a href="git-send-email.html">git-send-email(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:231640</dt>
1641<dd>
1642<p>
Junio C Hamano4ad294b2007-01-20 02:22:501643 Send a collection of patches as emails.
Junio C Hamano7c73c662007-01-19 00:37:501644</p>
1645</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591646<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231647<a href="git-svn.html">git-svn(1)</a>
Junio C Hamanob518f452006-08-04 00:18:061648</dt>
1649<dd>
1650<p>
Junio C Hamano076ffcc2013-02-06 05:13:211651 Bidirectional operation between a Subversion repository and Git.
Junio C Hamanob518f452006-08-04 00:18:061652</p>
1653</dd>
Junio C Hamanoba4b9282008-07-06 05:20:311654</dl></div>
Junio C Hamano1a4e8412005-12-27 08:17:231655</div>
Junio C Hamano9d971152012-12-19 00:43:111656</div>
1657</div>
1658<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:311659<h2 id="_low_level_commands_plumbing">Low-level commands (plumbing)</h2>
Junio C Hamanob19b4f02006-10-29 20:47:221660<div class="sectionbody">
Junio C Hamano076ffcc2013-02-06 05:13:211661<div class="paragraph"><p>Although Git includes its
Junio C Hamanob19b4f02006-10-29 20:47:221662own porcelain layer, its low-level commands are sufficient to support
1663development of alternative porcelains. Developers of such porcelains
Junio C Hamanoa28a9202012-06-21 07:08:231664might start by reading about <a href="git-update-index.html">git-update-index(1)</a> and
1665<a href="git-read-tree.html">git-read-tree(1)</a>.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:591666<div class="paragraph"><p>The interface (input, output, set of options and the semantics)
Junio C Hamano4ad294b2007-01-20 02:22:501667to these low-level commands are meant to be a lot more stable
1668than Porcelain level commands, because these commands are
1669primarily for scripted use. The interface to Porcelain commands
1670on the other hand are subject to change in order to improve the
Junio C Hamanoba4b9282008-07-06 05:20:311671end user experience.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:591672<div class="paragraph"><p>The following description divides
Junio C Hamano4ad294b2007-01-20 02:22:501673the low-level commands into commands that manipulate objects (in
Junio C Hamanob19b4f02006-10-29 20:47:221674the repository, index, and working tree), commands that interrogate and
1675compare objects, and commands that move objects and references between
Junio C Hamanoba4b9282008-07-06 05:20:311676repositories.</p></div>
Junio C Hamano9d971152012-12-19 00:43:111677<div class="sect2">
1678<h3 id="_manipulation_commands">Manipulation commands</h3>
Junio C Hamano68cf15a2010-11-06 01:01:591679<div class="dlist"><dl>
1680<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231681<a href="git-apply.html">git-apply(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221682</dt>
1683<dd>
1684<p>
Junio C Hamano5706e0b2009-11-24 10:54:161685 Apply a patch to files and/or to the index.
Junio C Hamanob19b4f02006-10-29 20:47:221686</p>
1687</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591688<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231689<a href="git-checkout-index.html">git-checkout-index(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221690</dt>
1691<dd>
1692<p>
1693 Copy files from the index to the working tree.
1694</p>
1695</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591696<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231697<a href="git-commit-tree.html">git-commit-tree(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221698</dt>
1699<dd>
1700<p>
Junio C Hamano7c73c662007-01-19 00:37:501701 Create a new commit object.
Junio C Hamanob19b4f02006-10-29 20:47:221702</p>
1703</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591704<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231705<a href="git-hash-object.html">git-hash-object(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221706</dt>
1707<dd>
1708<p>
Junio C Hamano7c73c662007-01-19 00:37:501709 Compute object ID and optionally creates a blob from a file.
Junio C Hamanob19b4f02006-10-29 20:47:221710</p>
1711</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591712<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231713<a href="git-index-pack.html">git-index-pack(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221714</dt>
1715<dd>
1716<p>
Junio C Hamano7c73c662007-01-19 00:37:501717 Build pack index file for an existing packed archive.
Junio C Hamanob19b4f02006-10-29 20:47:221718</p>
1719</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591720<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231721<a href="git-merge-file.html">git-merge-file(1)</a>
Junio C Hamano1de7bc62006-12-17 19:31:541722</dt>
1723<dd>
1724<p>
Junio C Hamano7c73c662007-01-19 00:37:501725 Run a three-way file merge.
Junio C Hamano1de7bc62006-12-17 19:31:541726</p>
1727</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591728<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231729<a href="git-merge-index.html">git-merge-index(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221730</dt>
1731<dd>
1732<p>
Junio C Hamano7c73c662007-01-19 00:37:501733 Run a merge for files needing merging.
Junio C Hamanob19b4f02006-10-29 20:47:221734</p>
1735</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591736<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231737<a href="git-mktag.html">git-mktag(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221738</dt>
1739<dd>
1740<p>
1741 Creates a tag object.
1742</p>
1743</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591744<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231745<a href="git-mktree.html">git-mktree(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221746</dt>
1747<dd>
1748<p>
1749 Build a tree-object from ls-tree formatted text.
1750</p>
1751</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591752<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231753<a href="git-pack-objects.html">git-pack-objects(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221754</dt>
1755<dd>
1756<p>
Junio C Hamano7c73c662007-01-19 00:37:501757 Create a packed archive of objects.
Junio C Hamanob19b4f02006-10-29 20:47:221758</p>
1759</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591760<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231761<a href="git-prune-packed.html">git-prune-packed(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221762</dt>
1763<dd>
1764<p>
1765 Remove extra objects that are already in pack files.
1766</p>
1767</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591768<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231769<a href="git-read-tree.html">git-read-tree(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221770</dt>
1771<dd>
1772<p>
1773 Reads tree information into the index.
1774</p>
1775</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591776<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231777<a href="git-symbolic-ref.html">git-symbolic-ref(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221778</dt>
1779<dd>
1780<p>
Junio C Hamano4eb2b9c2012-11-15 21:12:291781 Read, modify and delete symbolic refs.
Junio C Hamanob19b4f02006-10-29 20:47:221782</p>
1783</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591784<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231785<a href="git-unpack-objects.html">git-unpack-objects(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221786</dt>
1787<dd>
1788<p>
Junio C Hamano7c73c662007-01-19 00:37:501789 Unpack objects from a packed archive.
Junio C Hamanob19b4f02006-10-29 20:47:221790</p>
1791</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591792<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231793<a href="git-update-index.html">git-update-index(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221794</dt>
1795<dd>
1796<p>
Junio C Hamano7c73c662007-01-19 00:37:501797 Register file contents in the working tree to the index.
Junio C Hamanob19b4f02006-10-29 20:47:221798</p>
1799</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591800<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231801<a href="git-update-ref.html">git-update-ref(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501802</dt>
1803<dd>
1804<p>
1805 Update the object name stored in a ref safely.
1806</p>
1807</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591808<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231809<a href="git-write-tree.html">git-write-tree(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221810</dt>
1811<dd>
1812<p>
Junio C Hamano7c73c662007-01-19 00:37:501813 Create a tree object from the current index.
Junio C Hamanob19b4f02006-10-29 20:47:221814</p>
1815</dd>
Junio C Hamanoba4b9282008-07-06 05:20:311816</dl></div>
Junio C Hamano9d971152012-12-19 00:43:111817</div>
1818<div class="sect2">
1819<h3 id="_interrogation_commands">Interrogation commands</h3>
Junio C Hamano68cf15a2010-11-06 01:01:591820<div class="dlist"><dl>
1821<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231822<a href="git-cat-file.html">git-cat-file(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221823</dt>
1824<dd>
1825<p>
Junio C Hamano1de75722009-03-26 08:39:381826 Provide content or type and size information for repository objects.
Junio C Hamanob19b4f02006-10-29 20:47:221827</p>
1828</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591829<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231830<a href="git-diff-files.html">git-diff-files(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221831</dt>
1832<dd>
1833<p>
1834 Compares files in the working tree and the index.
1835</p>
1836</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591837<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231838<a href="git-diff-index.html">git-diff-index(1)</a>
Junio C Hamano7c73c662007-01-19 00:37:501839</dt>
1840<dd>
1841<p>
Junio C Hamano7e590a12013-06-02 23:46:521842 Compare a tree to the working tree or index.
Junio C Hamano7c73c662007-01-19 00:37:501843</p>
1844</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591845<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231846<a href="git-diff-tree.html">git-diff-tree(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221847</dt>
1848<dd>
1849<p>
1850 Compares the content and mode of blobs found via two tree objects.
1851</p>
1852</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591853<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231854<a href="git-for-each-ref.html">git-for-each-ref(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221855</dt>
1856<dd>
1857<p>
1858 Output information on each ref.
1859</p>
1860</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591861<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231862<a href="git-ls-files.html">git-ls-files(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221863</dt>
1864<dd>
1865<p>
Junio C Hamano7c73c662007-01-19 00:37:501866 Show information about files in the index and the working tree.
Junio C Hamanob19b4f02006-10-29 20:47:221867</p>
1868</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591869<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231870<a href="git-ls-remote.html">git-ls-remote(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501871</dt>
1872<dd>
1873<p>
1874 List references in a remote repository.
1875</p>
1876</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591877<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231878<a href="git-ls-tree.html">git-ls-tree(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221879</dt>
1880<dd>
1881<p>
Junio C Hamano7c73c662007-01-19 00:37:501882 List the contents of a tree object.
Junio C Hamanob19b4f02006-10-29 20:47:221883</p>
1884</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591885<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231886<a href="git-merge-base.html">git-merge-base(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221887</dt>
1888<dd>
1889<p>
Junio C Hamano7c73c662007-01-19 00:37:501890 Find as good common ancestors as possible for a merge.
Junio C Hamanob19b4f02006-10-29 20:47:221891</p>
1892</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591893<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231894<a href="git-name-rev.html">git-name-rev(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221895</dt>
1896<dd>
1897<p>
1898 Find symbolic names for given revs.
1899</p>
1900</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591901<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231902<a href="git-pack-redundant.html">git-pack-redundant(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221903</dt>
1904<dd>
1905<p>
1906 Find redundant pack files.
1907</p>
1908</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591909<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231910<a href="git-rev-list.html">git-rev-list(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221911</dt>
1912<dd>
1913<p>
1914 Lists commit objects in reverse chronological order.
1915</p>
1916</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591917<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231918<a href="git-show-index.html">git-show-index(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221919</dt>
1920<dd>
1921<p>
Junio C Hamano7c73c662007-01-19 00:37:501922 Show packed archive index.
Junio C Hamanob19b4f02006-10-29 20:47:221923</p>
1924</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591925<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231926<a href="git-show-ref.html">git-show-ref(1)</a>
Junio C Hamanod8c9d432006-11-07 07:19:131927</dt>
1928<dd>
1929<p>
1930 List references in a local repository.
1931</p>
1932</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591933<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231934<a href="git-unpack-file.html">git-unpack-file(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221935</dt>
1936<dd>
1937<p>
Junio C Hamano68cf15a2010-11-06 01:01:591938 Creates a temporary file with a blob&#8217;s contents.
Junio C Hamanob19b4f02006-10-29 20:47:221939</p>
1940</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591941<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231942<a href="git-var.html">git-var(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221943</dt>
1944<dd>
1945<p>
Junio C Hamano076ffcc2013-02-06 05:13:211946 Show a Git logical variable.
Junio C Hamanob19b4f02006-10-29 20:47:221947</p>
1948</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591949<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231950<a href="git-verify-pack.html">git-verify-pack(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221951</dt>
1952<dd>
1953<p>
Junio C Hamano076ffcc2013-02-06 05:13:211954 Validate packed Git archive files.
Junio C Hamanob19b4f02006-10-29 20:47:221955</p>
1956</dd>
Junio C Hamanoba4b9282008-07-06 05:20:311957</dl></div>
Junio C Hamano68cf15a2010-11-06 01:01:591958<div class="paragraph"><p>In general, the interrogate commands do not touch the files in
Junio C Hamanoba4b9282008-07-06 05:20:311959the working tree.</p></div>
Junio C Hamano9d971152012-12-19 00:43:111960</div>
1961<div class="sect2">
1962<h3 id="_synching_repositories">Synching repositories</h3>
Junio C Hamano68cf15a2010-11-06 01:01:591963<div class="dlist"><dl>
1964<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231965<a href="git-daemon.html">git-daemon(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:501966</dt>
1967<dd>
1968<p>
Junio C Hamano076ffcc2013-02-06 05:13:211969 A really simple server for Git repositories.
Junio C Hamano4ad294b2007-01-20 02:22:501970</p>
1971</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591972<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231973<a href="git-fetch-pack.html">git-fetch-pack(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221974</dt>
1975<dd>
1976<p>
Junio C Hamano7c73c662007-01-19 00:37:501977 Receive missing objects from another repository.
Junio C Hamanob19b4f02006-10-29 20:47:221978</p>
1979</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591980<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231981<a href="git-http-backend.html">git-http-backend(1)</a>
Junio C Hamano096dde22009-12-26 23:14:111982</dt>
1983<dd>
1984<p>
1985 Server side implementation of Git over HTTP.
1986</p>
1987</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591988<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231989<a href="git-send-pack.html">git-send-pack(1)</a>
Junio C Hamano7c73c662007-01-19 00:37:501990</dt>
1991<dd>
1992<p>
Junio C Hamano076ffcc2013-02-06 05:13:211993 Push objects over Git protocol to another repository.
Junio C Hamanob19b4f02006-10-29 20:47:221994</p>
1995</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591996<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:231997<a href="git-update-server-info.html">git-update-server-info(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:221998</dt>
1999<dd>
2000<p>
Junio C Hamano7c73c662007-01-19 00:37:502001 Update auxiliary info file to help dumb servers.
Junio C Hamanob19b4f02006-10-29 20:47:222002</p>
2003</dd>
Junio C Hamanoba4b9282008-07-06 05:20:312004</dl></div>
Junio C Hamano68cf15a2010-11-06 01:01:592005<div class="paragraph"><p>The following are helper commands used by the above; end users
Junio C Hamanoba4b9282008-07-06 05:20:312006typically do not use them directly.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:592007<div class="dlist"><dl>
2008<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232009<a href="git-http-fetch.html">git-http-fetch(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:502010</dt>
2011<dd>
2012<p>
Junio C Hamano076ffcc2013-02-06 05:13:212013 Download from a remote Git repository via HTTP.
Junio C Hamano4ad294b2007-01-20 02:22:502014</p>
2015</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592016<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232017<a href="git-http-push.html">git-http-push(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:502018</dt>
2019<dd>
2020<p>
2021 Push objects over HTTP/DAV to another repository.
2022</p>
2023</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592024<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232025<a href="git-parse-remote.html">git-parse-remote(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:502026</dt>
2027<dd>
2028<p>
2029 Routines to help parsing remote repository access parameters.
2030</p>
2031</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592032<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232033<a href="git-receive-pack.html">git-receive-pack(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:502034</dt>
2035<dd>
2036<p>
2037 Receive what is pushed into the repository.
2038</p>
2039</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592040<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232041<a href="git-shell.html">git-shell(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:502042</dt>
2043<dd>
2044<p>
Junio C Hamano3b4609d2010-09-30 00:04:342045 Restricted login shell for Git-only SSH access.
Junio C Hamano4ad294b2007-01-20 02:22:502046</p>
2047</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592048<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232049<a href="git-upload-archive.html">git-upload-archive(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:222050</dt>
2051<dd>
2052<p>
Junio C Hamano7c73c662007-01-19 00:37:502053 Send archive back to git-archive.
Junio C Hamanob19b4f02006-10-29 20:47:222054</p>
2055</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592056<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232057<a href="git-upload-pack.html">git-upload-pack(1)</a>
Junio C Hamanob19b4f02006-10-29 20:47:222058</dt>
2059<dd>
2060<p>
Junio C Hamano7c73c662007-01-19 00:37:502061 Send objects packed back to git-fetch-pack.
Junio C Hamanob19b4f02006-10-29 20:47:222062</p>
2063</dd>
Junio C Hamanoba4b9282008-07-06 05:20:312064</dl></div>
Junio C Hamano9d971152012-12-19 00:43:112065</div>
2066<div class="sect2">
2067<h3 id="_internal_helper_commands">Internal helper commands</h3>
Junio C Hamano68cf15a2010-11-06 01:01:592068<div class="paragraph"><p>These are internal helper commands used by other commands; end
Junio C Hamanoba4b9282008-07-06 05:20:312069users typically do not use them directly.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:592070<div class="dlist"><dl>
2071<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232072<a href="git-check-attr.html">git-check-attr(1)</a>
Junio C Hamanoe90436a2007-04-22 07:22:132073</dt>
2074<dd>
2075<p>
Junio C Hamano9bd39c42008-11-13 01:54:442076 Display gitattributes information.
Junio C Hamanoe90436a2007-04-22 07:22:132077</p>
2078</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592079<dt class="hdlist1">
Junio C Hamano36d52292013-01-25 21:32:362080<a href="git-check-ignore.html">git-check-ignore(1)</a>
2081</dt>
2082<dd>
2083<p>
2084 Debug gitignore / exclude files.
2085</p>
2086</dd>
2087<dt class="hdlist1">
Junio C Hamano58f587a2013-07-22 19:20:592088<a href="git-check-mailmap.html">git-check-mailmap(1)</a>
2089</dt>
2090<dd>
2091<p>
2092 Show canonical names and email addresses of contacts.
2093</p>
2094</dd>
2095<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232096<a href="git-check-ref-format.html">git-check-ref-format(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:502097</dt>
2098<dd>
2099<p>
Junio C Hamano1de75722009-03-26 08:39:382100 Ensures that a reference name is well formed.
Junio C Hamano4ad294b2007-01-20 02:22:502101</p>
2102</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592103<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232104<a href="git-column.html">git-column(1)</a>
Junio C Hamano22700fb2012-05-03 23:07:252105</dt>
2106<dd>
2107<p>
2108 Display data in columns.
2109</p>
2110</dd>
2111<dt class="hdlist1">
Junio C Hamano62e79372012-08-08 22:53:352112<a href="git-credential.html">git-credential(1)</a>
2113</dt>
2114<dd>
2115<p>
2116 Retrieve and store user credentials.
2117</p>
2118</dd>
2119<dt class="hdlist1">
Junio C Hamanod0316112012-08-22 19:55:292120<a href="git-credential-cache.html">git-credential-cache(1)</a>
2121</dt>
2122<dd>
2123<p>
2124 Helper to temporarily store passwords in memory.
2125</p>
2126</dd>
2127<dt class="hdlist1">
2128<a href="git-credential-store.html">git-credential-store(1)</a>
2129</dt>
2130<dd>
2131<p>
2132 Helper to store credentials on disk.
2133</p>
2134</dd>
2135<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232136<a href="git-fmt-merge-msg.html">git-fmt-merge-msg(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:502137</dt>
2138<dd>
2139<p>
2140 Produce a merge commit message.
2141</p>
2142</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592143<dt class="hdlist1">
Junio C Hamano4c43d652014-10-20 21:14:292144<a href="git-interpret-trailers.html">git-interpret-trailers(1)</a>
2145</dt>
2146<dd>
2147<p>
Junio C Hamanofb5ffde2014-11-04 22:38:562148 help add structured information into commit messages.
Junio C Hamano4c43d652014-10-20 21:14:292149</p>
2150</dd>
2151<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232152<a href="git-mailinfo.html">git-mailinfo(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:502153</dt>
2154<dd>
2155<p>
2156 Extracts patch and authorship from a single e-mail message.
2157</p>
2158</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592159<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232160<a href="git-mailsplit.html">git-mailsplit(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:502161</dt>
2162<dd>
2163<p>
2164 Simple UNIX mbox splitter program.
2165</p>
2166</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592167<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232168<a href="git-merge-one-file.html">git-merge-one-file(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:502169</dt>
2170<dd>
2171<p>
2172 The standard helper program to use with git-merge-index.
2173</p>
2174</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592175<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232176<a href="git-patch-id.html">git-patch-id(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:502177</dt>
2178<dd>
2179<p>
2180 Compute unique ID for a patch.
2181</p>
2182</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592183<dt class="hdlist1">
Junio C Hamanod0316112012-08-22 19:55:292184<a href="git-sh-i18n.html">git-sh-i18n(1)</a>
2185</dt>
2186<dd>
2187<p>
2188 Git&#8217;s i18n setup code for shell scripts.
2189</p>
2190</dd>
2191<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232192<a href="git-sh-setup.html">git-sh-setup(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:502193</dt>
2194<dd>
2195<p>
Junio C Hamano076ffcc2013-02-06 05:13:212196 Common Git shell script setup code.
Junio C Hamano4ad294b2007-01-20 02:22:502197</p>
2198</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592199<dt class="hdlist1">
Junio C Hamanoa28a9202012-06-21 07:08:232200<a href="git-stripspace.html">git-stripspace(1)</a>
Junio C Hamano4ad294b2007-01-20 02:22:502201</dt>
2202<dd>
2203<p>
Junio C Hamano0df92712011-12-21 22:30:442204 Remove unnecessary whitespace.
Junio C Hamano4ad294b2007-01-20 02:22:502205</p>
2206</dd>
Junio C Hamanoba4b9282008-07-06 05:20:312207</dl></div>
Junio C Hamanob19b4f02006-10-29 20:47:222208</div>
Junio C Hamano9d971152012-12-19 00:43:112209</div>
2210</div>
2211<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:312212<h2 id="_configuration_mechanism">Configuration Mechanism</h2>
Junio C Hamano1a4e8412005-12-27 08:17:232213<div class="sectionbody">
Junio C Hamano2da4ac42013-02-19 00:41:172214<div class="paragraph"><p>Git uses a simple text format to store customizations that are per
2215repository and are per user. Such a configuration file may look
2216like this:</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:232217<div class="listingblock">
2218<div class="content">
Junio C Hamanoac12f0e2014-09-19 22:32:512219<pre><code>#
Junio C Hamano1a4e8412005-12-27 08:17:232220# A '#' or ';' character indicates a comment.
2221#
2222
2223; core variables
2224[core]
2225 ; Don't trust file modes
2226 filemode = false
2227
2228; user identity
2229[user]
2230 name = "Junio C Hamano"
Junio C Hamanoac12f0e2014-09-19 22:32:512231 email = "gitster@pobox.com"</code></pre>
Junio C Hamano1a4e8412005-12-27 08:17:232232</div></div>
Junio C Hamano68cf15a2010-11-06 01:01:592233<div class="paragraph"><p>Various commands read from the configuration file and adjust
Junio C Hamanoa28a9202012-06-21 07:08:232234their operation accordingly. See <a href="git-config.html">git-config(1)</a> for a
Junio C Hamano2da4ac42013-02-19 00:41:172235list and more details about the configuration mechanism.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:232236</div>
Junio C Hamano9d971152012-12-19 00:43:112237</div>
2238<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:312239<h2 id="_identifier_terminology">Identifier Terminology</h2>
Junio C Hamano1a4e8412005-12-27 08:17:232240<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:592241<div class="dlist"><dl>
2242<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:232243&lt;object&gt;
2244</dt>
2245<dd>
2246<p>
2247 Indicates the object name for any type of object.
2248</p>
2249</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592250<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:232251&lt;blob&gt;
2252</dt>
2253<dd>
2254<p>
2255 Indicates a blob object name.
2256</p>
2257</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592258<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:232259&lt;tree&gt;
2260</dt>
2261<dd>
2262<p>
2263 Indicates a tree object name.
2264</p>
2265</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592266<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:232267&lt;commit&gt;
2268</dt>
2269<dd>
2270<p>
2271 Indicates a commit object name.
2272</p>
2273</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592274<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:232275&lt;tree-ish&gt;
2276</dt>
2277<dd>
2278<p>
2279 Indicates a tree, commit or tag object name. A
2280 command that takes a &lt;tree-ish&gt; argument ultimately wants to
2281 operate on a &lt;tree&gt; object but automatically dereferences
2282 &lt;commit&gt; and &lt;tag&gt; objects that point at a &lt;tree&gt;.
2283</p>
2284</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592285<dt class="hdlist1">
Junio C Hamano60f8aa82007-03-06 09:58:262286&lt;commit-ish&gt;
2287</dt>
2288<dd>
2289<p>
2290 Indicates a commit or tag object name. A
2291 command that takes a &lt;commit-ish&gt; argument ultimately wants to
2292 operate on a &lt;commit&gt; object but automatically dereferences
2293 &lt;tag&gt; objects that point at a &lt;commit&gt;.
2294</p>
2295</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592296<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:232297&lt;type&gt;
2298</dt>
2299<dd>
2300<p>
2301 Indicates that an object type is required.
Junio C Hamanoac12f0e2014-09-19 22:32:512302 Currently one of: <code>blob</code>, <code>tree</code>, <code>commit</code>, or <code>tag</code>.
Junio C Hamano1a4e8412005-12-27 08:17:232303</p>
2304</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592305<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:232306&lt;file&gt;
2307</dt>
2308<dd>
2309<p>
2310 Indicates a filename - almost always relative to the
Junio C Hamanoac12f0e2014-09-19 22:32:512311 root of the tree structure <code>GIT_INDEX_FILE</code> describes.
Junio C Hamano1a4e8412005-12-27 08:17:232312</p>
2313</dd>
Junio C Hamanoba4b9282008-07-06 05:20:312314</dl></div>
Junio C Hamano1a4e8412005-12-27 08:17:232315</div>
Junio C Hamano9d971152012-12-19 00:43:112316</div>
2317<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:312318<h2 id="_symbolic_identifiers">Symbolic Identifiers</h2>
Junio C Hamano1a4e8412005-12-27 08:17:232319<div class="sectionbody">
Junio C Hamano076ffcc2013-02-06 05:13:212320<div class="paragraph"><p>Any Git command accepting any &lt;object&gt; can also use the following
Junio C Hamanoba4b9282008-07-06 05:20:312321symbolic notation:</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:592322<div class="dlist"><dl>
2323<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:232324HEAD
2325</dt>
2326<dd>
2327<p>
Junio C Hamano360e3a12011-07-13 23:51:562328 indicates the head of the current branch.
Junio C Hamano1a4e8412005-12-27 08:17:232329</p>
2330</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592331<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:232332&lt;tag&gt;
2333</dt>
2334<dd>
2335<p>
2336 a valid tag <em>name</em>
Junio C Hamanoac12f0e2014-09-19 22:32:512337 (i.e. a <code>refs/tags/&lt;tag&gt;</code> reference).
Junio C Hamano1a4e8412005-12-27 08:17:232338</p>
2339</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592340<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:232341&lt;head&gt;
2342</dt>
2343<dd>
2344<p>
2345 a valid head <em>name</em>
Junio C Hamanoac12f0e2014-09-19 22:32:512346 (i.e. a <code>refs/heads/&lt;head&gt;</code> reference).
Junio C Hamano1a4e8412005-12-27 08:17:232347</p>
2348</dd>
Junio C Hamanoba4b9282008-07-06 05:20:312349</dl></div>
Junio C Hamano68cf15a2010-11-06 01:01:592350<div class="paragraph"><p>For a more complete list of ways to spell object names, see
Junio C Hamanoa28a9202012-06-21 07:08:232351"SPECIFYING REVISIONS" section in <a href="gitrevisions.html">gitrevisions(7)</a>.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:232352</div>
Junio C Hamano9d971152012-12-19 00:43:112353</div>
2354<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:312355<h2 id="_file_directory_structure">File/Directory Structure</h2>
Junio C Hamano1a4e8412005-12-27 08:17:232356<div class="sectionbody">
Junio C Hamanoa28a9202012-06-21 07:08:232357<div class="paragraph"><p>Please see the <a href="gitrepository-layout.html">gitrepository-layout(5)</a> document.</p></div>
2358<div class="paragraph"><p>Read <a href="githooks.html">githooks(5)</a> for more details about each hook.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:592359<div class="paragraph"><p>Higher level SCMs may provide and manage additional information in the
Junio C Hamanoac12f0e2014-09-19 22:32:512360<code>$GIT_DIR</code>.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:232361</div>
Junio C Hamano9d971152012-12-19 00:43:112362</div>
2363<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:312364<h2 id="_terminology">Terminology</h2>
Junio C Hamano1a4e8412005-12-27 08:17:232365<div class="sectionbody">
Junio C Hamanoa28a9202012-06-21 07:08:232366<div class="paragraph"><p>Please see <a href="gitglossary.html">gitglossary(7)</a>.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:232367</div>
Junio C Hamano9d971152012-12-19 00:43:112368</div>
2369<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:312370<h2 id="_environment_variables">Environment Variables</h2>
Junio C Hamano1a4e8412005-12-27 08:17:232371<div class="sectionbody">
Junio C Hamano076ffcc2013-02-06 05:13:212372<div class="paragraph"><p>Various Git commands use the following environment variables:</p></div>
Junio C Hamano9d971152012-12-19 00:43:112373<div class="sect2">
Junio C Hamano076ffcc2013-02-06 05:13:212374<h3 id="_the_git_repository">The Git Repository</h3>
2375<div class="paragraph"><p>These environment variables apply to <em>all</em> core Git commands. Nb: it
Junio C Hamano1a4e8412005-12-27 08:17:232376is worth noting that they may be used/overridden by SCMS sitting above
Junio C Hamanod7ed4042015-08-03 19:43:002377Git so take care if using a foreign front-end.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:592378<div class="dlist"><dl>
2379<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052380<code>GIT_INDEX_FILE</code>
Junio C Hamano1a4e8412005-12-27 08:17:232381</dt>
2382<dd>
2383<p>
2384 This environment allows the specification of an alternate
Junio C Hamanoac12f0e2014-09-19 22:32:512385 index file. If not specified, the default of <code>$GIT_DIR/index</code>
Junio C Hamano1a4e8412005-12-27 08:17:232386 is used.
2387</p>
2388</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592389<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052390<code>GIT_INDEX_VERSION</code>
Junio C Hamano81703b22014-03-14 22:00:272391</dt>
2392<dd>
2393<p>
2394 This environment variable allows the specification of an index
2395 version for new repositories. It won&#8217;t affect existing index
Junio C Hamanoef57d1e2015-03-25 21:23:002396 files. By default index file version 2 or 3 is used. See
2397 <a href="git-update-index.html">git-update-index(1)</a> for more information.
Junio C Hamano81703b22014-03-14 22:00:272398</p>
2399</dd>
2400<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052401<code>GIT_OBJECT_DIRECTORY</code>
Junio C Hamano1a4e8412005-12-27 08:17:232402</dt>
2403<dd>
2404<p>
2405 If the object storage directory is specified via this
2406 environment variable then the sha1 directories are created
Junio C Hamanoac12f0e2014-09-19 22:32:512407 underneath - otherwise the default <code>$GIT_DIR/objects</code>
Junio C Hamano1a4e8412005-12-27 08:17:232408 directory is used.
2409</p>
2410</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592411<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052412<code>GIT_ALTERNATE_OBJECT_DIRECTORIES</code>
Junio C Hamano1a4e8412005-12-27 08:17:232413</dt>
2414<dd>
2415<p>
Junio C Hamano076ffcc2013-02-06 05:13:212416 Due to the immutable nature of Git objects, old objects can be
Junio C Hamano1a4e8412005-12-27 08:17:232417 archived into shared, read-only directories. This variable
Junio C Hamano05bf9c52008-07-03 09:21:582418 specifies a ":" separated (on Windows ";" separated) list
Junio C Hamano076ffcc2013-02-06 05:13:212419 of Git object directories which can be used to search for Git
Junio C Hamano05bf9c52008-07-03 09:21:582420 objects. New objects will not be written to these directories.
Junio C Hamano1a4e8412005-12-27 08:17:232421</p>
2422</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592423<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052424<code>GIT_DIR</code>
Junio C Hamano1a4e8412005-12-27 08:17:232425</dt>
2426<dd>
2427<p>
Junio C Hamano042f2142016-06-27 18:05:052428 If the <code>GIT_DIR</code> environment variable is set then it
Junio C Hamanoac12f0e2014-09-19 22:32:512429 specifies a path to use instead of the default <code>.git</code>
Junio C Hamano1a4e8412005-12-27 08:17:232430 for the base of the repository.
Junio C Hamano92d80372016-07-13 22:00:052431 The <code>--git-dir</code> command-line option also sets this value.
Junio C Hamano1a4e8412005-12-27 08:17:232432</p>
2433</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592434<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052435<code>GIT_WORK_TREE</code>
Junio C Hamanod526ba92007-07-02 00:17:422436</dt>
2437<dd>
2438<p>
Junio C Hamanof1f5a7b2013-06-11 22:23:522439 Set the path to the root of the working tree.
Junio C Hamano92d80372016-07-13 22:00:052440 This can also be controlled by the <code>--work-tree</code> command-line
Junio C Hamanod526ba92007-07-02 00:17:422441 option and the core.worktree configuration variable.
2442</p>
2443</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592444<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052445<code>GIT_NAMESPACE</code>
Junio C Hamanof7279012011-08-18 06:13:132446</dt>
2447<dd>
2448<p>
Junio C Hamano076ffcc2013-02-06 05:13:212449 Set the Git namespace; see <a href="gitnamespaces.html">gitnamespaces(7)</a> for details.
Junio C Hamano92d80372016-07-13 22:00:052450 The <code>--namespace</code> command-line option also sets this value.
Junio C Hamanof7279012011-08-18 06:13:132451</p>
2452</dd>
2453<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052454<code>GIT_CEILING_DIRECTORIES</code>
Junio C Hamano15048272008-07-07 22:10:482455</dt>
2456<dd>
2457<p>
Junio C Hamano68061622013-03-01 22:13:372458 This should be a colon-separated list of absolute paths. If
2459 set, it is a list of directories that Git should not chdir up
2460 into while looking for a repository directory (useful for
2461 excluding slow-loading network directories). It will not
2462 exclude the current working directory or a GIT_DIR set on the
2463 command line or in the environment. Normally, Git has to read
2464 the entries in this list and resolve any symlink that
2465 might be present in order to compare them with the current
2466 directory. However, if even this access is slow, you
2467 can add an empty entry to the list to tell Git that the
2468 subsequent entries are not symlinks and needn&#8217;t be resolved;
2469 e.g.,
Junio C Hamano042f2142016-06-27 18:05:052470 <code>GIT_CEILING_DIRECTORIES=/maybe/symlink::/very/slow/non/symlink</code>.
Junio C Hamano15048272008-07-07 22:10:482471</p>
2472</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592473<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052474<code>GIT_DISCOVERY_ACROSS_FILESYSTEM</code>
Junio C Hamanocc7636a2010-05-21 14:57:532475</dt>
2476<dd>
2477<p>
2478 When run in a directory that does not have ".git" repository
Junio C Hamano076ffcc2013-02-06 05:13:212479 directory, Git tries to find such a directory in the parent
Junio C Hamanocc7636a2010-05-21 14:57:532480 directories to find the top of the working tree, but by default it
2481 does not cross filesystem boundaries. This environment variable
Junio C Hamano076ffcc2013-02-06 05:13:212482 can be set to true to tell Git not to stop at filesystem
Junio C Hamano042f2142016-06-27 18:05:052483 boundaries. Like <code>GIT_CEILING_DIRECTORIES</code>, this will not affect
2484 an explicit repository directory set via <code>GIT_DIR</code> or on the
Junio C Hamanocc7636a2010-05-21 14:57:532485 command line.
2486</p>
2487</dd>
Junio C Hamano4cc4a842015-05-11 22:41:022488<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052489<code>GIT_COMMON_DIR</code>
Junio C Hamano4cc4a842015-05-11 22:41:022490</dt>
2491<dd>
2492<p>
2493 If this variable is set to a path, non-worktree files that are
2494 normally in $GIT_DIR will be taken from this path
2495 instead. Worktree-specific files such as HEAD or index are
2496 taken from $GIT_DIR. See <a href="gitrepository-layout.html">gitrepository-layout(5)</a> and
Junio C Hamano1e4fff22015-07-17 22:44:482497 <a href="git-worktree.html">git-worktree(1)</a> for
Junio C Hamano4cc4a842015-05-11 22:41:022498 details. This variable has lower precedence than other path
2499 variables such as GIT_INDEX_FILE, GIT_OBJECT_DIRECTORY&#8230;
2500</p>
2501</dd>
Junio C Hamanoba4b9282008-07-06 05:20:312502</dl></div>
Junio C Hamano9d971152012-12-19 00:43:112503</div>
2504<div class="sect2">
Junio C Hamano076ffcc2013-02-06 05:13:212505<h3 id="_git_commits">Git Commits</h3>
Junio C Hamano68cf15a2010-11-06 01:01:592506<div class="dlist"><dl>
2507<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052508<code>GIT_AUTHOR_NAME</code>
Junio C Hamano1a4e8412005-12-27 08:17:232509</dt>
Junio C Hamano68cf15a2010-11-06 01:01:592510<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052511<code>GIT_AUTHOR_EMAIL</code>
Junio C Hamano1a4e8412005-12-27 08:17:232512</dt>
Junio C Hamano68cf15a2010-11-06 01:01:592513<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052514<code>GIT_AUTHOR_DATE</code>
Junio C Hamano1a4e8412005-12-27 08:17:232515</dt>
Junio C Hamano68cf15a2010-11-06 01:01:592516<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052517<code>GIT_COMMITTER_NAME</code>
Junio C Hamano1a4e8412005-12-27 08:17:232518</dt>
Junio C Hamano68cf15a2010-11-06 01:01:592519<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052520<code>GIT_COMMITTER_EMAIL</code>
Junio C Hamano1a4e8412005-12-27 08:17:232521</dt>
Junio C Hamano68cf15a2010-11-06 01:01:592522<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052523<code>GIT_COMMITTER_DATE</code>
Junio C Hamano469d60e2007-04-29 18:30:342524</dt>
Junio C Hamano68cf15a2010-11-06 01:01:592525<dt class="hdlist1">
Junio C Hamano469d60e2007-04-29 18:30:342526<em>EMAIL</em>
2527</dt>
Junio C Hamano1a4e8412005-12-27 08:17:232528<dd>
2529<p>
Junio C Hamanoa28a9202012-06-21 07:08:232530 see <a href="git-commit-tree.html">git-commit-tree(1)</a>
Junio C Hamano1a4e8412005-12-27 08:17:232531</p>
2532</dd>
Junio C Hamanoba4b9282008-07-06 05:20:312533</dl></div>
Junio C Hamano9d971152012-12-19 00:43:112534</div>
2535<div class="sect2">
Junio C Hamano076ffcc2013-02-06 05:13:212536<h3 id="_git_diffs">Git Diffs</h3>
Junio C Hamano68cf15a2010-11-06 01:01:592537<div class="dlist"><dl>
2538<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052539<code>GIT_DIFF_OPTS</code>
Junio C Hamano1a4e8412005-12-27 08:17:232540</dt>
Junio C Hamano1c437122006-11-28 02:22:252541<dd>
2542<p>
2543 Only valid setting is "--unified=??" or "-u??" to set the
2544 number of context lines shown when a unified diff is created.
2545 This takes precedence over any "-U" or "--unified" option
Junio C Hamano076ffcc2013-02-06 05:13:212546 value passed on the Git diff command line.
Junio C Hamano1c437122006-11-28 02:22:252547</p>
2548</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592549<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052550<code>GIT_EXTERNAL_DIFF</code>
Junio C Hamano1a4e8412005-12-27 08:17:232551</dt>
2552<dd>
2553<p>
Junio C Hamano042f2142016-06-27 18:05:052554 When the environment variable <code>GIT_EXTERNAL_DIFF</code> is set, the
Junio C Hamano1c437122006-11-28 02:22:252555 program named by it is called, instead of the diff invocation
2556 described above. For a path that is added, removed, or modified,
Junio C Hamano042f2142016-06-27 18:05:052557 <code>GIT_EXTERNAL_DIFF</code> is called with 7 parameters:
Junio C Hamano1a4e8412005-12-27 08:17:232558</p>
Junio C Hamano1c437122006-11-28 02:22:252559<div class="literalblock">
2560<div class="content">
Junio C Hamanoac12f0e2014-09-19 22:32:512561<pre><code>path old-file old-hex old-mode new-file new-hex new-mode</code></pre>
Junio C Hamano1c437122006-11-28 02:22:252562</div></div>
Junio C Hamano68cf15a2010-11-06 01:01:592563<div class="paragraph"><p>where:</p></div>
2564</dd>
2565<dt class="hdlist1">
Junio C Hamano1c437122006-11-28 02:22:252566&lt;old|new&gt;-file
Junio C Hamano68cf15a2010-11-06 01:01:592567</dt>
2568<dd>
2569<p>
Junio C Hamano1c437122006-11-28 02:22:252570are files GIT_EXTERNAL_DIFF can use to read the
2571 contents of &lt;old|new&gt;,
Junio C Hamano68cf15a2010-11-06 01:01:592572</p>
2573</dd>
2574<dt class="hdlist1">
Junio C Hamano1c437122006-11-28 02:22:252575&lt;old|new&gt;-hex
Junio C Hamano68cf15a2010-11-06 01:01:592576</dt>
2577<dd>
2578<p>
Junio C Hamanoe3f080d2013-04-22 02:27:132579are the 40-hexdigit SHA-1 hashes,
Junio C Hamano68cf15a2010-11-06 01:01:592580</p>
2581</dd>
2582<dt class="hdlist1">
Junio C Hamano1c437122006-11-28 02:22:252583&lt;old|new&gt;-mode
Junio C Hamano68cf15a2010-11-06 01:01:592584</dt>
2585<dd>
2586<p>
Junio C Hamano1c437122006-11-28 02:22:252587are the octal representation of the file modes.
Junio C Hamano68cf15a2010-11-06 01:01:592588</p>
Junio C Hamanof75a9402011-04-14 23:39:232589<div class="paragraph"><p>The file parameters can point at the user&#8217;s working file
Junio C Hamanoac12f0e2014-09-19 22:32:512590(e.g. <code>new-file</code> in "git-diff-files"), <code>/dev/null</code> (e.g. <code>old-file</code>
2591when a new file is added), or a temporary file (e.g. <code>old-file</code> in the
Junio C Hamano042f2142016-06-27 18:05:052592index). <code>GIT_EXTERNAL_DIFF</code> should not worry about unlinking the
2593temporary file --- it is removed when <code>GIT_EXTERNAL_DIFF</code> exits.</p></div>
2594<div class="paragraph"><p>For a path that is unmerged, <code>GIT_EXTERNAL_DIFF</code> is called with 1
Junio C Hamanoba4b9282008-07-06 05:20:312595parameter, &lt;path&gt;.</p></div>
Junio C Hamano042f2142016-06-27 18:05:052596<div class="paragraph"><p>For each path <code>GIT_EXTERNAL_DIFF</code> is called, two environment variables,
2597<code>GIT_DIFF_PATH_COUNTER</code> and <code>GIT_DIFF_PATH_TOTAL</code> are set.</p></div>
Junio C Hamanob1acf022013-12-28 00:33:162598</dd>
2599<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052600<code>GIT_DIFF_PATH_COUNTER</code>
Junio C Hamanob1acf022013-12-28 00:33:162601</dt>
2602<dd>
2603<p>
2604 A 1-based counter incremented by one for every path.
2605</p>
2606</dd>
2607<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052608<code>GIT_DIFF_PATH_TOTAL</code>
Junio C Hamanob1acf022013-12-28 00:33:162609</dt>
2610<dd>
2611<p>
2612 The total number of paths.
2613</p>
Junio C Hamanof75a9402011-04-14 23:39:232614</dd>
2615</dl></div>
Junio C Hamano9d971152012-12-19 00:43:112616</div>
2617<div class="sect2">
2618<h3 id="_other">other</h3>
Junio C Hamano68cf15a2010-11-06 01:01:592619<div class="dlist"><dl>
2620<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052621<code>GIT_MERGE_VERBOSITY</code>
Junio C Hamano1e6e0062007-07-13 05:33:252622</dt>
2623<dd>
2624<p>
2625 A number controlling the amount of output shown by
2626 the recursive merge strategy. Overrides merge.verbosity.
Junio C Hamanoa28a9202012-06-21 07:08:232627 See <a href="git-merge.html">git-merge(1)</a>
Junio C Hamano1e6e0062007-07-13 05:33:252628</p>
2629</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592630<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052631<code>GIT_PAGER</code>
Junio C Hamano85e45fa2006-08-13 07:47:412632</dt>
2633<dd>
2634<p>
Junio C Hamanoac12f0e2014-09-19 22:32:512635 This environment variable overrides <code>$PAGER</code>. If it is set
Junio C Hamano076ffcc2013-02-06 05:13:212636 to an empty string or to the value "cat", Git will not launch
Junio C Hamanoac12f0e2014-09-19 22:32:512637 a pager. See also the <code>core.pager</code> option in
Junio C Hamanoa28a9202012-06-21 07:08:232638 <a href="git-config.html">git-config(1)</a>.
Junio C Hamano85e45fa2006-08-13 07:47:412639</p>
2640</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592641<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052642<code>GIT_EDITOR</code>
Junio C Hamano0ff98162012-03-31 18:19:092643</dt>
2644<dd>
2645<p>
Junio C Hamanoac12f0e2014-09-19 22:32:512646 This environment variable overrides <code>$EDITOR</code> and <code>$VISUAL</code>.
Junio C Hamano076ffcc2013-02-06 05:13:212647 It is used by several Git commands when, on interactive mode,
Junio C Hamanoa28a9202012-06-21 07:08:232648 an editor is to be launched. See also <a href="git-var.html">git-var(1)</a>
Junio C Hamanoac12f0e2014-09-19 22:32:512649 and the <code>core.editor</code> option in <a href="git-config.html">git-config(1)</a>.
Junio C Hamano0ff98162012-03-31 18:19:092650</p>
2651</dd>
2652<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052653<code>GIT_SSH</code>
Junio C Hamano4cd1c0e2007-08-06 04:39:142654</dt>
Junio C Hamanofad84122014-12-05 23:38:062655<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052656<code>GIT_SSH_COMMAND</code>
Junio C Hamanofad84122014-12-05 23:38:062657</dt>
Junio C Hamano4cd1c0e2007-08-06 04:39:142658<dd>
2659<p>
Junio C Hamanofad84122014-12-05 23:38:062660 If either of these environment variables is set then <em>git fetch</em>
2661 and <em>git push</em> will use the specified command instead of <em>ssh</em>
2662 when they need to connect to a remote system.
2663 The command will be given exactly two or four arguments: the
2664 <em>username@host</em> (or just <em>host</em>) from the URL and the shell
2665 command to execute on that remote system, optionally preceded by
Junio C Hamano92d80372016-07-13 22:00:052666 <code>-p</code> (literally) and the <em>port</em> from the URL when it specifies
Junio C Hamanofad84122014-12-05 23:38:062667 something other than the default SSH port.
Junio C Hamano4cd1c0e2007-08-06 04:39:142668</p>
Junio C Hamanofad84122014-12-05 23:38:062669<div class="paragraph"><p><code>$GIT_SSH_COMMAND</code> takes precedence over <code>$GIT_SSH</code>, and is interpreted
2670by the shell, which allows additional arguments to be included.
2671<code>$GIT_SSH</code> on the other hand must be just the path to a program
2672(which can be a wrapper shell script, if additional arguments are
2673needed).</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:592674<div class="paragraph"><p>Usually it is easier to configure any desired options through your
Junio C Hamanoac12f0e2014-09-19 22:32:512675personal <code>.ssh/config</code> file. Please consult your ssh documentation
Junio C Hamanoba4b9282008-07-06 05:20:312676for further details.</p></div>
Junio C Hamano4cd1c0e2007-08-06 04:39:142677</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592678<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052679<code>GIT_ASKPASS</code>
Junio C Hamano3fd7b262010-09-08 22:44:202680</dt>
2681<dd>
2682<p>
Junio C Hamano076ffcc2013-02-06 05:13:212683 If this environment variable is set, then Git commands which need to
Junio C Hamano3fd7b262010-09-08 22:44:202684 acquire passwords or passphrases (e.g. for HTTP or IMAP authentication)
Junio C Hamanoe1aeb5e2014-06-06 19:16:292685 will call this program with a suitable prompt as command-line argument
Junio C Hamano042f2142016-06-27 18:05:052686 and read the password from its STDOUT. See also the <code>core.askPass</code>
Junio C Hamanoa28a9202012-06-21 07:08:232687 option in <a href="git-config.html">git-config(1)</a>.
Junio C Hamano3fd7b262010-09-08 22:44:202688</p>
2689</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592690<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052691<code>GIT_TERMINAL_PROMPT</code>
Junio C Hamano6df93d92014-12-22 22:48:092692</dt>
2693<dd>
2694<p>
2695 If this environment variable is set to <code>0</code>, git will not prompt
2696 on the terminal (e.g., when asking for HTTP authentication).
2697</p>
2698</dd>
2699<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052700<code>GIT_CONFIG_NOSYSTEM</code>
Junio C Hamanoeec745b2013-01-07 08:08:202701</dt>
2702<dd>
2703<p>
2704 Whether to skip reading settings from the system-wide
Junio C Hamanoac12f0e2014-09-19 22:32:512705 <code>$(prefix)/etc/gitconfig</code> file. This environment variable can
2706 be used along with <code>$HOME</code> and <code>$XDG_CONFIG_HOME</code> to create a
Junio C Hamanoeec745b2013-01-07 08:08:202707 predictable environment for a picky script, or you can set it
Junio C Hamanoac12f0e2014-09-19 22:32:512708 temporarily to avoid using a buggy <code>/etc/gitconfig</code> file while
Junio C Hamanoeec745b2013-01-07 08:08:202709 waiting for someone with sufficient permissions to fix it.
2710</p>
2711</dd>
2712<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052713<code>GIT_FLUSH</code>
Junio C Hamano401939f2007-07-01 06:34:302714</dt>
2715<dd>
2716<p>
2717 If this environment variable is set to "1", then commands such
Junio C Hamano1aa40d22010-01-21 17:46:432718 as <em>git blame</em> (in incremental mode), <em>git rev-list</em>, <em>git log</em>,
Junio C Hamano0241d052013-08-30 23:52:172719 <em>git check-attr</em> and <em>git check-ignore</em> will
Junio C Hamanoc7102962013-05-29 23:57:172720 force a flush of the output stream after each record have been
2721 flushed. If this
Junio C Hamano401939f2007-07-01 06:34:302722 variable is set to "0", the output of these commands will be done
2723 using completely buffered I/O. If this environment variable is
Junio C Hamano076ffcc2013-02-06 05:13:212724 not set, Git will choose buffered or record-oriented flushing
Junio C Hamano401939f2007-07-01 06:34:302725 based on whether stdout appears to be redirected to a file or not.
2726</p>
2727</dd>
Junio C Hamano68cf15a2010-11-06 01:01:592728<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052729<code>GIT_TRACE</code>
Junio C Hamano7ccb9fd2006-07-15 01:38:402730</dt>
2731<dd>
2732<p>
Junio C Hamanodbe51052014-07-22 19:39:512733 Enables general trace messages, e.g. alias expansion, built-in
2734 command execution and external command execution.
Junio C Hamano7ccb9fd2006-07-15 01:38:402735</p>
Junio C Hamanodbe51052014-07-22 19:39:512736<div class="paragraph"><p>If this variable is set to "1", "2" or "true" (comparison
2737is case insensitive), trace messages will be printed to
2738stderr.</p></div>
2739<div class="paragraph"><p>If the variable is set to an integer value greater than 2
2740and lower than 10 (strictly) then Git will interpret this
2741value as an open file descriptor and will try to write the
2742trace messages into this file descriptor.</p></div>
2743<div class="paragraph"><p>Alternatively, if the variable is set to an absolute path
2744(starting with a <em>/</em> character), Git will interpret this
2745as a file path and will try to write the trace messages
2746into it.</p></div>
2747<div class="paragraph"><p>Unsetting the variable, or setting it to empty, "0" or
2748"false" (case insensitive) disables trace messages.</p></div>
Junio C Hamano7ccb9fd2006-07-15 01:38:402749</dd>
Junio C Hamanoabad6da2013-01-06 09:06:322750<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052751<code>GIT_TRACE_PACK_ACCESS</code>
Junio C Hamanofa1d3492013-06-20 23:39:432752</dt>
2753<dd>
2754<p>
Junio C Hamanodbe51052014-07-22 19:39:512755 Enables trace messages for all accesses to any packs. For each
Junio C Hamanofa1d3492013-06-20 23:39:432756 access, the pack file name and an offset in the pack is
2757 recorded. This may be helpful for troubleshooting some
2758 pack-related performance problems.
Junio C Hamano042f2142016-06-27 18:05:052759 See <code>GIT_TRACE</code> for available trace output options.
Junio C Hamanofa1d3492013-06-20 23:39:432760</p>
2761</dd>
2762<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052763<code>GIT_TRACE_PACKET</code>
Junio C Hamanofa1d3492013-06-20 23:39:432764</dt>
2765<dd>
2766<p>
Junio C Hamanodbe51052014-07-22 19:39:512767 Enables trace messages for all packets coming in or out of a
2768 given program. This can help with debugging object negotiation
2769 or other protocol issues. Tracing is turned off at a packet
Junio C Hamano042f2142016-06-27 18:05:052770 starting with "PACK" (but see <code>GIT_TRACE_PACKFILE</code> below).
2771 See <code>GIT_TRACE</code> for available trace output options.
Junio C Hamanodbe51052014-07-22 19:39:512772</p>
2773</dd>
2774<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052775<code>GIT_TRACE_PACKFILE</code>
Junio C Hamanod7ed4042015-08-03 19:43:002776</dt>
2777<dd>
2778<p>
2779 Enables tracing of packfiles sent or received by a
2780 given program. Unlike other trace output, this trace is
2781 verbatim: no headers, and no quoting of binary data. You almost
2782 certainly want to direct into a file (e.g.,
2783 <code>GIT_TRACE_PACKFILE=/tmp/my.pack</code>) rather than displaying it on
2784 the terminal or mixing it with other trace output.
2785</p>
2786<div class="paragraph"><p>Note that this is currently only implemented for the client side
2787of clones and fetches.</p></div>
2788</dd>
2789<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052790<code>GIT_TRACE_PERFORMANCE</code>
Junio C Hamanodbe51052014-07-22 19:39:512791</dt>
2792<dd>
2793<p>
2794 Enables performance related trace messages, e.g. total execution
2795 time of each Git command.
Junio C Hamano042f2142016-06-27 18:05:052796 See <code>GIT_TRACE</code> for available trace output options.
Junio C Hamanodbe51052014-07-22 19:39:512797</p>
2798</dd>
2799<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052800<code>GIT_TRACE_SETUP</code>
Junio C Hamanodbe51052014-07-22 19:39:512801</dt>
2802<dd>
2803<p>
2804 Enables trace messages printing the .git, working tree and current
2805 working directory after Git has completed its setup phase.
Junio C Hamano042f2142016-06-27 18:05:052806 See <code>GIT_TRACE</code> for available trace output options.
Junio C Hamanodbe51052014-07-22 19:39:512807</p>
2808</dd>
2809<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052810<code>GIT_TRACE_SHALLOW</code>
Junio C Hamanodbe51052014-07-22 19:39:512811</dt>
2812<dd>
2813<p>
2814 Enables trace messages that can help debugging fetching /
2815 cloning of shallow repositories.
Junio C Hamano042f2142016-06-27 18:05:052816 See <code>GIT_TRACE</code> for available trace output options.
Junio C Hamanofa1d3492013-06-20 23:39:432817</p>
2818</dd>
2819<dt class="hdlist1">
Junio C Hamanoc6c919b2016-07-06 21:34:152820<code>GIT_TRACE_CURL</code>
2821</dt>
2822<dd>
2823<p>
2824 Enables a curl full trace dump of all incoming and outgoing data,
2825 including descriptive information, of the git transport protocol.
2826 This is similar to doing curl <code>--trace-ascii</code> on the command line.
2827 This option overrides setting the <code>GIT_CURL_VERBOSE</code> environment
2828 variable.
2829 See <code>GIT_TRACE</code> for available trace output options.
2830</p>
2831</dd>
2832<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052833<code>GIT_LITERAL_PATHSPECS</code>
Junio C Hamanoabad6da2013-01-06 09:06:322834</dt>
2835<dd>
2836<p>
Junio C Hamanoac12f0e2014-09-19 22:32:512837 Setting this variable to <code>1</code> will cause Git to treat all
Junio C Hamanoabad6da2013-01-06 09:06:322838 pathspecs literally, rather than as glob patterns. For example,
Junio C Hamanoac12f0e2014-09-19 22:32:512839 running <code>GIT_LITERAL_PATHSPECS=1 git log -- '*.c'</code> will search
2840 for commits that touch the path <code>*.c</code>, not any paths that the
2841 glob <code>*.c</code> matches. You might want this if you are feeding
Junio C Hamano076ffcc2013-02-06 05:13:212842 literal paths to Git (e.g., paths previously given to you by
Junio C Hamanoac12f0e2014-09-19 22:32:512843 <code>git ls-tree</code>, <code>--raw</code> diff output, etc).
Junio C Hamanoabad6da2013-01-06 09:06:322844</p>
2845</dd>
Junio C Hamano8eac2682013-09-09 22:35:202846<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052847<code>GIT_GLOB_PATHSPECS</code>
Junio C Hamano8eac2682013-09-09 22:35:202848</dt>
2849<dd>
2850<p>
Junio C Hamanoac12f0e2014-09-19 22:32:512851 Setting this variable to <code>1</code> will cause Git to treat all
Junio C Hamano8eac2682013-09-09 22:35:202852 pathspecs as glob patterns (aka "glob" magic).
2853</p>
2854</dd>
2855<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052856<code>GIT_NOGLOB_PATHSPECS</code>
Junio C Hamano8eac2682013-09-09 22:35:202857</dt>
2858<dd>
2859<p>
Junio C Hamanoac12f0e2014-09-19 22:32:512860 Setting this variable to <code>1</code> will cause Git to treat all
Junio C Hamano8eac2682013-09-09 22:35:202861 pathspecs as literal (aka "literal" magic).
2862</p>
2863</dd>
2864<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052865<code>GIT_ICASE_PATHSPECS</code>
Junio C Hamano8eac2682013-09-09 22:35:202866</dt>
2867<dd>
2868<p>
Junio C Hamanoac12f0e2014-09-19 22:32:512869 Setting this variable to <code>1</code> will cause Git to treat all
Junio C Hamano8eac2682013-09-09 22:35:202870 pathspecs as case-insensitive.
2871</p>
2872</dd>
Junio C Hamanoaef76442013-10-18 22:11:272873<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052874<code>GIT_REFLOG_ACTION</code>
Junio C Hamanoaef76442013-10-18 22:11:272875</dt>
2876<dd>
2877<p>
2878 When a ref is updated, reflog entries are created to keep
2879 track of the reason why the ref was updated (which is
2880 typically the name of the high-level command that updated
2881 the ref), in addition to the old and new values of the ref.
2882 A scripted Porcelain command can use set_reflog_action
Junio C Hamanoac12f0e2014-09-19 22:32:512883 helper function in <code>git-sh-setup</code> to set its name to this
Junio C Hamanoaef76442013-10-18 22:11:272884 variable when it is invoked as the top level command by the
2885 end user, to be recorded in the body of the reflog.
2886</p>
2887</dd>
Junio C Hamanoef57d1e2015-03-25 21:23:002888<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052889<code>GIT_REF_PARANOIA</code>
Junio C Hamanoef57d1e2015-03-25 21:23:002890</dt>
2891<dd>
2892<p>
2893 If set to <code>1</code>, include broken or badly named refs when iterating
2894 over lists of refs. In a normal, non-corrupted repository, this
2895 does nothing. However, enabling it may help git to detect and
2896 abort some operations in the presence of broken refs. Git sets
2897 this variable automatically when performing destructive
2898 operations like <a href="git-prune.html">git-prune(1)</a>. You should not need to set
2899 it yourself unless you want to be paranoid about making sure
2900 an operation has touched every ref (e.g., because you are
2901 cloning a repository to make a backup).
2902</p>
2903</dd>
Junio C Hamano1eb56092015-10-05 20:39:532904<dt class="hdlist1">
Junio C Hamano042f2142016-06-27 18:05:052905<code>GIT_ALLOW_PROTOCOL</code>
Junio C Hamano1eb56092015-10-05 20:39:532906</dt>
2907<dd>
2908<p>
2909 If set, provide a colon-separated list of protocols which are
2910 allowed to be used with fetch/push/clone. This is useful to
2911 restrict recursive submodule initialization from an untrusted
2912 repository. Any protocol not mentioned will be disallowed (i.e.,
2913 this is a whitelist, not a blacklist). If the variable is not
2914 set at all, all protocols are enabled. The protocol names
2915 currently used by git are:
2916</p>
2917<div class="ulist"><ul>
2918<li>
2919<p>
2920<code>file</code>: any local file-based path (including <code>file://</code> URLs,
2921 or local paths)
2922</p>
2923</li>
2924<li>
2925<p>
2926<code>git</code>: the anonymous git protocol over a direct TCP
2927 connection (or proxy, if configured)
2928</p>
2929</li>
2930<li>
2931<p>
2932<code>ssh</code>: git over ssh (including <code>host:path</code> syntax,
Junio C Hamano8f7d6232016-03-16 22:00:582933 <code>ssh://</code>, etc).
Junio C Hamano1eb56092015-10-05 20:39:532934</p>
2935</li>
2936<li>
2937<p>
Junio C Hamano1eb56092015-10-05 20:39:532938<code>http</code>: git over http, both "smart http" and "dumb http".
2939 Note that this does <em>not</em> include <code>https</code>; if you want both,
2940 you should specify both as <code>http:https</code>.
2941</p>
2942</li>
2943<li>
2944<p>
2945any external helpers are named by their protocol (e.g., use
2946 <code>hg</code> to allow the <code>git-remote-hg</code> helper)
2947</p>
2948</li>
2949</ul></div>
2950</dd>
Junio C Hamanoba4b9282008-07-06 05:20:312951</dl></div>
Junio C Hamano1a4e8412005-12-27 08:17:232952</div>
Junio C Hamano9d971152012-12-19 00:43:112953</div>
2954</div>
2955<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:312956<h2 id="_discussion_a_id_discussion_a">Discussion<a id="Discussion"></a></h2>
Junio C Hamano1a4e8412005-12-27 08:17:232957<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:592958<div class="paragraph"><p>More detail on the following is available from the
Junio C Hamano076ffcc2013-02-06 05:13:212959<a href="user-manual.html#git-concepts">Git concepts chapter of the
Junio C Hamanoa28a9202012-06-21 07:08:232960user-manual</a> and <a href="gitcore-tutorial.html">gitcore-tutorial(7)</a>.</p></div>
Junio C Hamano076ffcc2013-02-06 05:13:212961<div class="paragraph"><p>A Git project normally consists of a working directory with a ".git"
Junio C Hamano597ffcf2007-09-17 17:33:152962subdirectory at the top level. The .git directory contains, among other
2963things, a compressed object database representing the complete history
2964of the project, an "index" file which links that history to the current
2965contents of the working tree, and named pointers into that history such
Junio C Hamanoba4b9282008-07-06 05:20:312966as tags and branch heads.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:592967<div class="paragraph"><p>The object database contains objects of three main types: blobs, which
Junio C Hamano597ffcf2007-09-17 17:33:152968hold file data; trees, which point to blobs and other trees to build up
Junio C Hamanofe986052007-12-19 07:33:382969directory hierarchies; and commits, which each reference a single tree
Junio C Hamanoba4b9282008-07-06 05:20:312970and some number of parent commits.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:592971<div class="paragraph"><p>The commit, equivalent to what other systems call a "changeset" or
2972"version", represents a step in the project&#8217;s history, and each parent
Junio C Hamano597ffcf2007-09-17 17:33:152973represents an immediately preceding step. Commits with more than one
Junio C Hamanoba4b9282008-07-06 05:20:312974parent represent merges of independent lines of development.</p></div>
Junio C Hamanoe3f080d2013-04-22 02:27:132975<div class="paragraph"><p>All objects are named by the SHA-1 hash of their contents, normally
Junio C Hamano597ffcf2007-09-17 17:33:152976written as a string of 40 hex digits. Such names are globally unique.
2977The entire history leading up to a commit can be vouched for by signing
2978just that commit. A fourth object type, the tag, is provided for this
Junio C Hamanoba4b9282008-07-06 05:20:312979purpose.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:592980<div class="paragraph"><p>When first created, objects are stored in individual files, but for
Junio C Hamanoba4b9282008-07-06 05:20:312981efficiency may later be compressed together into "pack files".</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:592982<div class="paragraph"><p>Named pointers called refs mark interesting points in history. A ref
Junio C Hamanoe3f080d2013-04-22 02:27:132983may contain the SHA-1 name of an object or the name of another ref. Refs
Junio C Hamanoac12f0e2014-09-19 22:32:512984with names beginning <code>ref/head/</code> contain the SHA-1 name of the most
Junio C Hamanoe3f080d2013-04-22 02:27:132985recent commit (or "head") of a branch under development. SHA-1 names of
Junio C Hamanoac12f0e2014-09-19 22:32:512986tags of interest are stored under <code>ref/tags/</code>. A special ref named
2987<code>HEAD</code> contains the name of the currently checked-out branch.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:592988<div class="paragraph"><p>The index file is initialized with a list of all paths and, for each
Junio C Hamano597ffcf2007-09-17 17:33:152989path, a blob object and a set of attributes. The blob object represents
2990the contents of the file as of the head of the current branch. The
2991attributes (last modified time, size, etc.) are taken from the
2992corresponding file in the working tree. Subsequent changes to the
2993working tree can be found by comparing these attributes. The index may
2994be updated with new content, and new commits may be created from the
Junio C Hamanoba4b9282008-07-06 05:20:312995content stored in the index.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:592996<div class="paragraph"><p>The index is also capable of storing multiple entries (called "stages")
Junio C Hamano597ffcf2007-09-17 17:33:152997for a given pathname. These stages are used to hold the various
Junio C Hamanoba4b9282008-07-06 05:20:312998unmerged version of a file when a merge is in progress.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:232999</div>
Junio C Hamano9d971152012-12-19 00:43:113000</div>
3001<div class="sect1">
Junio C Hamanod0316112012-08-22 19:55:293002<h2 id="_further_documentation">FURTHER DOCUMENTATION</h2>
3003<div class="sectionbody">
3004<div class="paragraph"><p>See the references in the "description" section to get started
Junio C Hamano076ffcc2013-02-06 05:13:213005using Git. The following is probably more detail than necessary
Junio C Hamanod0316112012-08-22 19:55:293006for a first-time user.</p></div>
Junio C Hamano076ffcc2013-02-06 05:13:213007<div class="paragraph"><p>The <a href="user-manual.html#git-concepts">Git concepts chapter of the
Junio C Hamanod0316112012-08-22 19:55:293008user-manual</a> and <a href="gitcore-tutorial.html">gitcore-tutorial(7)</a> both provide
Junio C Hamano076ffcc2013-02-06 05:13:213009introductions to the underlying Git architecture.</p></div>
Junio C Hamanod0316112012-08-22 19:55:293010<div class="paragraph"><p>See <a href="gitworkflows.html">gitworkflows(7)</a> for an overview of recommended workflows.</p></div>
3011<div class="paragraph"><p>See also the <a href="howto-index.html">howto</a> documents for some useful
3012examples.</p></div>
3013<div class="paragraph"><p>The internals are documented in the
Junio C Hamano076ffcc2013-02-06 05:13:213014<a href="technical/api-index.html">Git API documentation</a>.</p></div>
Junio C Hamanod0316112012-08-22 19:55:293015<div class="paragraph"><p>Users migrating from CVS may also want to
3016read <a href="gitcvs-migration.html">gitcvs-migration(7)</a>.</p></div>
3017</div>
Junio C Hamano9d971152012-12-19 00:43:113018</div>
3019<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:313020<h2 id="_authors">Authors</h2>
Junio C Hamano1a4e8412005-12-27 08:17:233021<div class="sectionbody">
Junio C Hamano5f3d8392011-03-15 23:33:353022<div class="paragraph"><p>Git was started by Linus Torvalds, and is currently maintained by Junio
Junio C Hamano076ffcc2013-02-06 05:13:213023C Hamano. Numerous contributions have come from the Git mailing list
Junio C Hamano7b43d412014-07-23 23:09:443024&lt;<a href="mailto:git@vger.kernel.org">git@vger.kernel.org</a>&gt;. <a href="http://www.openhub.net/p/git/contributors/summary">http://www.openhub.net/p/git/contributors/summary</a>
Junio C Hamano0b0417b2012-12-13 20:35:023025gives you a more complete list of contributors.</p></div>
3026<div class="paragraph"><p>If you have a clone of git.git itself, the
Junio C Hamanoa28a9202012-06-21 07:08:233027output of <a href="git-shortlog.html">git-shortlog(1)</a> and <a href="git-blame.html">git-blame(1)</a> can show you
Junio C Hamano5f3d8392011-03-15 23:33:353028the authors for specific parts of the project.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:233029</div>
Junio C Hamano9d971152012-12-19 00:43:113030</div>
3031<div class="sect1">
Junio C Hamanoa9788762010-08-03 15:15:543032<h2 id="_reporting_bugs">Reporting Bugs</h2>
3033<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:593034<div class="paragraph"><p>Report bugs to the Git mailing list &lt;<a href="mailto:git@vger.kernel.org">git@vger.kernel.org</a>&gt; where the
Junio C Hamanoa9788762010-08-03 15:15:543035development and maintenance is primarily done. You do not have to be
3036subscribed to the list to send a message there.</p></div>
3037</div>
Junio C Hamano9d971152012-12-19 00:43:113038</div>
3039<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:313040<h2 id="_see_also">SEE ALSO</h2>
Junio C Hamano9e1793f2008-06-02 07:31:163041<div class="sectionbody">
Junio C Hamanoa28a9202012-06-21 07:08:233042<div class="paragraph"><p><a href="gittutorial.html">gittutorial(7)</a>, <a href="gittutorial-2.html">gittutorial-2(7)</a>,
Junio C Hamano446e30b2014-10-16 21:30:323043<a href="giteveryday.html">giteveryday(7)</a>, <a href="gitcvs-migration.html">gitcvs-migration(7)</a>,
Junio C Hamanoa28a9202012-06-21 07:08:233044<a href="gitglossary.html">gitglossary(7)</a>, <a href="gitcore-tutorial.html">gitcore-tutorial(7)</a>,
3045<a href="gitcli.html">gitcli(7)</a>, <a href="user-manual.html">The Git User&#8217;s Manual</a>,
3046<a href="gitworkflows.html">gitworkflows(7)</a></p></div>
Junio C Hamano9e1793f2008-06-02 07:31:163047</div>
Junio C Hamano9d971152012-12-19 00:43:113048</div>
3049<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:313050<h2 id="_git">GIT</h2>
Junio C Hamano1a4e8412005-12-27 08:17:233051<div class="sectionbody">
Junio C Hamanoa28a9202012-06-21 07:08:233052<div class="paragraph"><p>Part of the <a href="git.html">git(1)</a> suite</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:233053</div>
Junio C Hamano7bd050f2011-09-22 06:32:223054</div>
Junio C Hamano9d971152012-12-19 00:43:113055</div>
Junio C Hamano7bd050f2011-09-22 06:32:223056<div id="footnotes"><hr /></div>
Junio C Hamano1a4e8412005-12-27 08:17:233057<div id="footer">
3058<div id="footer-text">
Junio C Hamano4a401d52016-10-26 22:24:373059Last updated 2016-10-26 15:23:54 PDT
Junio C Hamano1a4e8412005-12-27 08:17:233060</div>
3061</div>
3062</body>
3063</html>