Updated git_doc to git 1.8
[TortoiseGit.git] / doc / source / en / TortoiseGit / git_doc / git.xml
blobac265f65884cafa615efcb7a6f6d185663feda82
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">\r
3 \r
4 <sect2 lang="en" id="git(1)">\r
5     <title>git(1)</title>\r
6 <indexterm>\r
7 <primary>git(1)</primary>\r
8 </indexterm>\r
9 <simplesect id="git(1)__name">\r
10 <title>NAME</title>\r
11 <simpara>git - the stupid content tracker</simpara>\r
12 </simplesect>\r
13 <simplesect id="git(1)__synopsis">\r
14 <title>SYNOPSIS</title>\r
15 <blockquote>\r
16 <literallayout><emphasis>git</emphasis> [--version] [--help] [-c &lt;name&gt;=&lt;value&gt;]\r
17     [--exec-path[=&lt;path&gt;]] [--html-path] [--man-path] [--info-path]\r
18     [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]\r
19     [--git-dir=&lt;path&gt;] [--work-tree=&lt;path&gt;] [--namespace=&lt;name&gt;]\r
20     &lt;command&gt; [&lt;args&gt;]</literallayout>\r
21 </blockquote>\r
22 </simplesect>\r
23 <simplesect id="git(1)__description">\r
24 <title>DESCRIPTION</title>\r
25 <simpara>Git is a fast, scalable, distributed revision control system with an\r
26 unusually rich command set that provides both high-level operations\r
27 and full access to internals.</simpara>\r
28 <simpara>See <xref linkend="gittutorial(7)" /> to get started, then see\r
29 link:everyday.html[Everyday Git] for a useful minimum set of\r
30 commands.  The link:user-manual.html[Git User's Manual] has a more\r
31 in-depth introduction.</simpara>\r
32 <simpara>After you mastered the basic concepts, you can come back to this\r
33 page to learn what commands git offers.  You can learn more about\r
34 individual git commands with "git help command".  <xref linkend="gitcli(7)" />\r
35 manual page gives you an overview of the command line command syntax.</simpara>\r
36 <simpara>Formatted and hyperlinked version of the latest git documentation\r
37 can be viewed at <emphasis>http://git-htmldocs.googlecode.com/git/git.html</emphasis>.</simpara>\r
38 </simplesect>\r
39 <simplesect id="git(1)__options">\r
40 <title>OPTIONS</title>\r
41 <variablelist>\r
42 <varlistentry>\r
43 <term>\r
44 --version\r
45 </term>\r
46 <listitem>\r
47 <simpara>\r
48         Prints the git suite version that the <emphasis>git</emphasis> program came from.\r
49 </simpara>\r
50 </listitem>\r
51 </varlistentry>\r
52 <varlistentry>\r
53 <term>\r
54 --help\r
55 </term>\r
56 <listitem>\r
57 <simpara>\r
58         Prints the synopsis and a list of the most commonly used\r
59         commands. If the option <emphasis>--all</emphasis> or <emphasis>-a</emphasis> is given then all\r
60         available commands are printed. If a git command is named this\r
61         option will bring up the manual page for that command.\r
62 </simpara>\r
63 <simpara>Other options are available to control how the manual page is\r
64 displayed. See <xref linkend="git-help(1)" /> for more information,\r
65 because <emphasis>git --help ...</emphasis> is converted internally into <emphasis>git\r
66 help ...</emphasis>.</simpara>\r
67 </listitem>\r
68 </varlistentry>\r
69 <varlistentry>\r
70 <term>\r
71 -c &lt;name&gt;=&lt;value&gt;\r
72 </term>\r
73 <listitem>\r
74 <simpara>\r
75         Pass a configuration parameter to the command. The value\r
76         given will override values from configuration files.\r
77         The &lt;name&gt; is expected in the same format as listed by\r
78         <emphasis>git config</emphasis> (subkeys separated by dots).\r
79 </simpara>\r
80 </listitem>\r
81 </varlistentry>\r
82 <varlistentry>\r
83 <term>\r
84 --exec-path[=&lt;path&gt;]\r
85 </term>\r
86 <listitem>\r
87 <simpara>\r
88         Path to wherever your core git programs are installed.\r
89         This can also be controlled by setting the GIT_EXEC_PATH\r
90         environment variable. If no path is given, <emphasis>git</emphasis> will print\r
91         the current setting and then exit.\r
92 </simpara>\r
93 </listitem>\r
94 </varlistentry>\r
95 <varlistentry>\r
96 <term>\r
97 --html-path\r
98 </term>\r
99 <listitem>\r
100 <simpara>\r
101         Print the path, without trailing slash, where git's HTML\r
102         documentation is installed and exit.\r
103 </simpara>\r
104 </listitem>\r
105 </varlistentry>\r
106 <varlistentry>\r
107 <term>\r
108 --man-path\r
109 </term>\r
110 <listitem>\r
111 <simpara>\r
112         Print the manpath (see <emphasis>man(1)</emphasis>) for the man pages for\r
113         this version of git and exit.\r
114 </simpara>\r
115 </listitem>\r
116 </varlistentry>\r
117 <varlistentry>\r
118 <term>\r
119 --info-path\r
120 </term>\r
121 <listitem>\r
122 <simpara>\r
123         Print the path where the Info files documenting this\r
124         version of git are installed and exit.\r
125 </simpara>\r
126 </listitem>\r
127 </varlistentry>\r
128 <varlistentry>\r
129 <term>\r
130 -p\r
131 </term>\r
132 <term>\r
133 --paginate\r
134 </term>\r
135 <listitem>\r
136 <simpara>\r
137         Pipe all output into <emphasis>less</emphasis> (or if set, $PAGER) if standard\r
138         output is a terminal.  This overrides the <emphasis>pager.&lt;cmd&gt;</emphasis>\r
139         configuration options (see the "Configuration Mechanism" section\r
140         below).\r
141 </simpara>\r
142 </listitem>\r
143 </varlistentry>\r
144 <varlistentry>\r
145 <term>\r
146 --no-pager\r
147 </term>\r
148 <listitem>\r
149 <simpara>\r
150         Do not pipe git output into a pager.\r
151 </simpara>\r
152 </listitem>\r
153 </varlistentry>\r
154 <varlistentry>\r
155 <term>\r
156 --git-dir=&lt;path&gt;\r
157 </term>\r
158 <listitem>\r
159 <simpara>\r
160         Set the path to the repository. This can also be controlled by\r
161         setting the GIT_DIR environment variable. It can be an absolute\r
162         path or relative path to current working directory.\r
163 </simpara>\r
164 </listitem>\r
165 </varlistentry>\r
166 <varlistentry>\r
167 <term>\r
168 --work-tree=&lt;path&gt;\r
169 </term>\r
170 <listitem>\r
171 <simpara>\r
172         Set the path to the working tree. It can be an absolute path\r
173         or a path relative to the current working directory.\r
174         This can also be controlled by setting the GIT_WORK_TREE\r
175         environment variable and the core.worktree configuration\r
176         variable (see core.worktree in <xref linkend="git-config(1)" /> for a\r
177         more detailed discussion).\r
178 </simpara>\r
179 </listitem>\r
180 </varlistentry>\r
181 <varlistentry>\r
182 <term>\r
183 --namespace=&lt;path&gt;\r
184 </term>\r
185 <listitem>\r
186 <simpara>\r
187         Set the git namespace.  See <xref linkend="gitnamespaces(7)" /> for more\r
188         details.  Equivalent to setting the <emphasis>GIT_NAMESPACE</emphasis> environment\r
189         variable.\r
190 </simpara>\r
191 </listitem>\r
192 </varlistentry>\r
193 <varlistentry>\r
194 <term>\r
195 --bare\r
196 </term>\r
197 <listitem>\r
198 <simpara>\r
199         Treat the repository as a bare repository.  If GIT_DIR\r
200         environment is not set, it is set to the current working\r
201         directory.\r
202 </simpara>\r
203 </listitem>\r
204 </varlistentry>\r
205 <varlistentry>\r
206 <term>\r
207 --no-replace-objects\r
208 </term>\r
209 <listitem>\r
210 <simpara>\r
211         Do not use replacement refs to replace git objects. See\r
212         <xref linkend="git-replace(1)" /> for more information.\r
213 </simpara>\r
214 </listitem>\r
215 </varlistentry>\r
216 </variablelist>\r
217 </simplesect>\r
218 <simplesect id="git(1)__git_commands">\r
219 <title>GIT COMMANDS</title>\r
220 <simpara>We divide git into high level ("porcelain") commands and low level\r
221 ("plumbing") commands.</simpara>\r
222 </simplesect>\r
223 <simplesect id="git(1)__high_level_commands_porcelain">\r
224 <title>High-level commands (porcelain)</title>\r
225 <simpara>We separate the porcelain commands into the main commands and some\r
226 ancillary user utilities.</simpara>\r
227 <section id="git(1)__main_porcelain_commands">\r
228 <title>Main porcelain commands</title>\r
229 <variablelist>\r
230 <varlistentry>\r
231 <term>\r
232 <xref linkend="git-add(1)" />\r
233 </term>\r
234 <listitem>\r
235 <simpara>\r
236         Add file contents to the index.\r
237 </simpara>\r
238 </listitem>\r
239 </varlistentry>\r
240 <varlistentry>\r
241 <term>\r
242 <xref linkend="git-am(1)" />\r
243 </term>\r
244 <listitem>\r
245 <simpara>\r
246         Apply a series of patches from a mailbox.\r
247 </simpara>\r
248 </listitem>\r
249 </varlistentry>\r
250 <varlistentry>\r
251 <term>\r
252 <xref linkend="git-archive(1)" />\r
253 </term>\r
254 <listitem>\r
255 <simpara>\r
256         Create an archive of files from a named tree.\r
257 </simpara>\r
258 </listitem>\r
259 </varlistentry>\r
260 <varlistentry>\r
261 <term>\r
262 <xref linkend="git-bisect(1)" />\r
263 </term>\r
264 <listitem>\r
265 <simpara>\r
266         Find by binary search the change that introduced a bug.\r
267 </simpara>\r
268 </listitem>\r
269 </varlistentry>\r
270 <varlistentry>\r
271 <term>\r
272 <xref linkend="git-branch(1)" />\r
273 </term>\r
274 <listitem>\r
275 <simpara>\r
276         List, create, or delete branches.\r
277 </simpara>\r
278 </listitem>\r
279 </varlistentry>\r
280 <varlistentry>\r
281 <term>\r
282 <xref linkend="git-bundle(1)" />\r
283 </term>\r
284 <listitem>\r
285 <simpara>\r
286         Move objects and refs by archive.\r
287 </simpara>\r
288 </listitem>\r
289 </varlistentry>\r
290 <varlistentry>\r
291 <term>\r
292 <xref linkend="git-checkout(1)" />\r
293 </term>\r
294 <listitem>\r
295 <simpara>\r
296         Checkout a branch or paths to the working tree.\r
297 </simpara>\r
298 </listitem>\r
299 </varlistentry>\r
300 <varlistentry>\r
301 <term>\r
302 <xref linkend="git-cherry-pick(1)" />\r
303 </term>\r
304 <listitem>\r
305 <simpara>\r
306         Apply the changes introduced by some existing commits.\r
307 </simpara>\r
308 </listitem>\r
309 </varlistentry>\r
310 <varlistentry>\r
311 <term>\r
312 <xref linkend="git-citool(1)" />\r
313 </term>\r
314 <listitem>\r
315 <simpara>\r
316         Graphical alternative to git-commit.\r
317 </simpara>\r
318 </listitem>\r
319 </varlistentry>\r
320 <varlistentry>\r
321 <term>\r
322 <xref linkend="git-clean(1)" />\r
323 </term>\r
324 <listitem>\r
325 <simpara>\r
326         Remove untracked files from the working tree.\r
327 </simpara>\r
328 </listitem>\r
329 </varlistentry>\r
330 <varlistentry>\r
331 <term>\r
332 <xref linkend="git-clone(1)" />\r
333 </term>\r
334 <listitem>\r
335 <simpara>\r
336         Clone a repository into a new directory.\r
337 </simpara>\r
338 </listitem>\r
339 </varlistentry>\r
340 <varlistentry>\r
341 <term>\r
342 <xref linkend="git-commit(1)" />\r
343 </term>\r
344 <listitem>\r
345 <simpara>\r
346         Record changes to the repository.\r
347 </simpara>\r
348 </listitem>\r
349 </varlistentry>\r
350 <varlistentry>\r
351 <term>\r
352 <xref linkend="git-describe(1)" />\r
353 </term>\r
354 <listitem>\r
355 <simpara>\r
356         Show the most recent tag that is reachable from a commit.\r
357 </simpara>\r
358 </listitem>\r
359 </varlistentry>\r
360 <varlistentry>\r
361 <term>\r
362 <xref linkend="git-diff(1)" />\r
363 </term>\r
364 <listitem>\r
365 <simpara>\r
366         Show changes between commits, commit and working tree, etc.\r
367 </simpara>\r
368 </listitem>\r
369 </varlistentry>\r
370 <varlistentry>\r
371 <term>\r
372 <xref linkend="git-fetch(1)" />\r
373 </term>\r
374 <listitem>\r
375 <simpara>\r
376         Download objects and refs from another repository.\r
377 </simpara>\r
378 </listitem>\r
379 </varlistentry>\r
380 <varlistentry>\r
381 <term>\r
382 <xref linkend="git-format-patch(1)" />\r
383 </term>\r
384 <listitem>\r
385 <simpara>\r
386         Prepare patches for e-mail submission.\r
387 </simpara>\r
388 </listitem>\r
389 </varlistentry>\r
390 <varlistentry>\r
391 <term>\r
392 <xref linkend="git-gc(1)" />\r
393 </term>\r
394 <listitem>\r
395 <simpara>\r
396         Cleanup unnecessary files and optimize the local repository.\r
397 </simpara>\r
398 </listitem>\r
399 </varlistentry>\r
400 <varlistentry>\r
401 <term>\r
402 <xref linkend="git-grep(1)" />\r
403 </term>\r
404 <listitem>\r
405 <simpara>\r
406         Print lines matching a pattern.\r
407 </simpara>\r
408 </listitem>\r
409 </varlistentry>\r
410 <varlistentry>\r
411 <term>\r
412 <xref linkend="git-gui(1)" />\r
413 </term>\r
414 <listitem>\r
415 <simpara>\r
416         A portable graphical interface to Git.\r
417 </simpara>\r
418 </listitem>\r
419 </varlistentry>\r
420 <varlistentry>\r
421 <term>\r
422 <xref linkend="git-init(1)" />\r
423 </term>\r
424 <listitem>\r
425 <simpara>\r
426         Create an empty git repository or reinitialize an existing one.\r
427 </simpara>\r
428 </listitem>\r
429 </varlistentry>\r
430 <varlistentry>\r
431 <term>\r
432 <xref linkend="git-log(1)" />\r
433 </term>\r
434 <listitem>\r
435 <simpara>\r
436         Show commit logs.\r
437 </simpara>\r
438 </listitem>\r
439 </varlistentry>\r
440 <varlistentry>\r
441 <term>\r
442 <xref linkend="git-merge(1)" />\r
443 </term>\r
444 <listitem>\r
445 <simpara>\r
446         Join two or more development histories together.\r
447 </simpara>\r
448 </listitem>\r
449 </varlistentry>\r
450 <varlistentry>\r
451 <term>\r
452 <xref linkend="git-mv(1)" />\r
453 </term>\r
454 <listitem>\r
455 <simpara>\r
456         Move or rename a file, a directory, or a symlink.\r
457 </simpara>\r
458 </listitem>\r
459 </varlistentry>\r
460 <varlistentry>\r
461 <term>\r
462 <xref linkend="git-notes(1)" />\r
463 </term>\r
464 <listitem>\r
465 <simpara>\r
466         Add or inspect object notes.\r
467 </simpara>\r
468 </listitem>\r
469 </varlistentry>\r
470 <varlistentry>\r
471 <term>\r
472 <xref linkend="git-pull(1)" />\r
473 </term>\r
474 <listitem>\r
475 <simpara>\r
476         Fetch from and merge with another repository or a local branch.\r
477 </simpara>\r
478 </listitem>\r
479 </varlistentry>\r
480 <varlistentry>\r
481 <term>\r
482 <xref linkend="git-push(1)" />\r
483 </term>\r
484 <listitem>\r
485 <simpara>\r
486         Update remote refs along with associated objects.\r
487 </simpara>\r
488 </listitem>\r
489 </varlistentry>\r
490 <varlistentry>\r
491 <term>\r
492 <xref linkend="git-rebase(1)" />\r
493 </term>\r
494 <listitem>\r
495 <simpara>\r
496         Forward-port local commits to the updated upstream head.\r
497 </simpara>\r
498 </listitem>\r
499 </varlistentry>\r
500 <varlistentry>\r
501 <term>\r
502 <xref linkend="git-reset(1)" />\r
503 </term>\r
504 <listitem>\r
505 <simpara>\r
506         Reset current HEAD to the specified state.\r
507 </simpara>\r
508 </listitem>\r
509 </varlistentry>\r
510 <varlistentry>\r
511 <term>\r
512 <xref linkend="git-revert(1)" />\r
513 </term>\r
514 <listitem>\r
515 <simpara>\r
516         Revert some existing commits.\r
517 </simpara>\r
518 </listitem>\r
519 </varlistentry>\r
520 <varlistentry>\r
521 <term>\r
522 <xref linkend="git-rm(1)" />\r
523 </term>\r
524 <listitem>\r
525 <simpara>\r
526         Remove files from the working tree and from the index.\r
527 </simpara>\r
528 </listitem>\r
529 </varlistentry>\r
530 <varlistentry>\r
531 <term>\r
532 <xref linkend="git-shortlog(1)" />\r
533 </term>\r
534 <listitem>\r
535 <simpara>\r
536         Summarize <emphasis>git log</emphasis> output.\r
537 </simpara>\r
538 </listitem>\r
539 </varlistentry>\r
540 <varlistentry>\r
541 <term>\r
542 <xref linkend="git-show(1)" />\r
543 </term>\r
544 <listitem>\r
545 <simpara>\r
546         Show various types of objects.\r
547 </simpara>\r
548 </listitem>\r
549 </varlistentry>\r
550 <varlistentry>\r
551 <term>\r
552 <xref linkend="git-stash(1)" />\r
553 </term>\r
554 <listitem>\r
555 <simpara>\r
556         Stash the changes in a dirty working directory away.\r
557 </simpara>\r
558 </listitem>\r
559 </varlistentry>\r
560 <varlistentry>\r
561 <term>\r
562 <xref linkend="git-status(1)" />\r
563 </term>\r
564 <listitem>\r
565 <simpara>\r
566         Show the working tree status.\r
567 </simpara>\r
568 </listitem>\r
569 </varlistentry>\r
570 <varlistentry>\r
571 <term>\r
572 <xref linkend="git-submodule(1)" />\r
573 </term>\r
574 <listitem>\r
575 <simpara>\r
576         Initialize, update or inspect submodules.\r
577 </simpara>\r
578 </listitem>\r
579 </varlistentry>\r
580 <varlistentry>\r
581 <term>\r
582 <xref linkend="git-tag(1)" />\r
583 </term>\r
584 <listitem>\r
585 <simpara>\r
586         Create, list, delete or verify a tag object signed with GPG.\r
587 </simpara>\r
588 </listitem>\r
589 </varlistentry>\r
590 <varlistentry>\r
591 <term>\r
592 <xref linkend="gitk(1)" />\r
593 </term>\r
594 <listitem>\r
595 <simpara>\r
596         The git repository browser.\r
597 </simpara>\r
598 </listitem>\r
599 </varlistentry>\r
600 </variablelist>\r
601 </section>\r
602 <section id="git(1)__ancillary_commands">\r
603 <title>Ancillary Commands</title>\r
604 <simpara>Manipulators:</simpara>\r
605 <variablelist>\r
606 <varlistentry>\r
607 <term>\r
608 <xref linkend="git-config(1)" />\r
609 </term>\r
610 <listitem>\r
611 <simpara>\r
612         Get and set repository or global options.\r
613 </simpara>\r
614 </listitem>\r
615 </varlistentry>\r
616 <varlistentry>\r
617 <term>\r
618 <xref linkend="git-fast-export(1)" />\r
619 </term>\r
620 <listitem>\r
621 <simpara>\r
622         Git data exporter.\r
623 </simpara>\r
624 </listitem>\r
625 </varlistentry>\r
626 <varlistentry>\r
627 <term>\r
628 <xref linkend="git-fast-import(1)" />\r
629 </term>\r
630 <listitem>\r
631 <simpara>\r
632         Backend for fast Git data importers.\r
633 </simpara>\r
634 </listitem>\r
635 </varlistentry>\r
636 <varlistentry>\r
637 <term>\r
638 <xref linkend="git-filter-branch(1)" />\r
639 </term>\r
640 <listitem>\r
641 <simpara>\r
642         Rewrite branches.\r
643 </simpara>\r
644 </listitem>\r
645 </varlistentry>\r
646 <varlistentry>\r
647 <term>\r
648 <xref linkend="git-lost-found(1)" />\r
649 </term>\r
650 <listitem>\r
651 <simpara>\r
652         (deprecated) Recover lost refs that luckily have not yet been pruned.\r
653 </simpara>\r
654 </listitem>\r
655 </varlistentry>\r
656 <varlistentry>\r
657 <term>\r
658 <xref linkend="git-mergetool(1)" />\r
659 </term>\r
660 <listitem>\r
661 <simpara>\r
662         Run merge conflict resolution tools to resolve merge conflicts.\r
663 </simpara>\r
664 </listitem>\r
665 </varlistentry>\r
666 <varlistentry>\r
667 <term>\r
668 <xref linkend="git-pack-refs(1)" />\r
669 </term>\r
670 <listitem>\r
671 <simpara>\r
672         Pack heads and tags for efficient repository access.\r
673 </simpara>\r
674 </listitem>\r
675 </varlistentry>\r
676 <varlistentry>\r
677 <term>\r
678 <xref linkend="git-prune(1)" />\r
679 </term>\r
680 <listitem>\r
681 <simpara>\r
682         Prune all unreachable objects from the object database.\r
683 </simpara>\r
684 </listitem>\r
685 </varlistentry>\r
686 <varlistentry>\r
687 <term>\r
688 <xref linkend="git-reflog(1)" />\r
689 </term>\r
690 <listitem>\r
691 <simpara>\r
692         Manage reflog information.\r
693 </simpara>\r
694 </listitem>\r
695 </varlistentry>\r
696 <varlistentry>\r
697 <term>\r
698 <xref linkend="git-relink(1)" />\r
699 </term>\r
700 <listitem>\r
701 <simpara>\r
702         Hardlink common objects in local repositories.\r
703 </simpara>\r
704 </listitem>\r
705 </varlistentry>\r
706 <varlistentry>\r
707 <term>\r
708 <xref linkend="git-remote(1)" />\r
709 </term>\r
710 <listitem>\r
711 <simpara>\r
712         manage set of tracked repositories.\r
713 </simpara>\r
714 </listitem>\r
715 </varlistentry>\r
716 <varlistentry>\r
717 <term>\r
718 <xref linkend="git-repack(1)" />\r
719 </term>\r
720 <listitem>\r
721 <simpara>\r
722         Pack unpacked objects in a repository.\r
723 </simpara>\r
724 </listitem>\r
725 </varlistentry>\r
726 <varlistentry>\r
727 <term>\r
728 <xref linkend="git-replace(1)" />\r
729 </term>\r
730 <listitem>\r
731 <simpara>\r
732         Create, list, delete refs to replace objects.\r
733 </simpara>\r
734 </listitem>\r
735 </varlistentry>\r
736 <varlistentry>\r
737 <term>\r
738 <xref linkend="git-repo-config(1)" />\r
739 </term>\r
740 <listitem>\r
741 <simpara>\r
742         (deprecated) Get and set repository or global options.\r
743 </simpara>\r
744 </listitem>\r
745 </varlistentry>\r
746 </variablelist>\r
747 <simpara>Interrogators:</simpara>\r
748 <variablelist>\r
749 <varlistentry>\r
750 <term>\r
751 <xref linkend="git-annotate(1)" />\r
752 </term>\r
753 <listitem>\r
754 <simpara>\r
755         Annotate file lines with commit information.\r
756 </simpara>\r
757 </listitem>\r
758 </varlistentry>\r
759 <varlistentry>\r
760 <term>\r
761 <xref linkend="git-blame(1)" />\r
762 </term>\r
763 <listitem>\r
764 <simpara>\r
765         Show what revision and author last modified each line of a file.\r
766 </simpara>\r
767 </listitem>\r
768 </varlistentry>\r
769 <varlistentry>\r
770 <term>\r
771 <xref linkend="git-cherry(1)" />\r
772 </term>\r
773 <listitem>\r
774 <simpara>\r
775         Find commits not merged upstream.\r
776 </simpara>\r
777 </listitem>\r
778 </varlistentry>\r
779 <varlistentry>\r
780 <term>\r
781 <xref linkend="git-count-objects(1)" />\r
782 </term>\r
783 <listitem>\r
784 <simpara>\r
785         Count unpacked number of objects and their disk consumption.\r
786 </simpara>\r
787 </listitem>\r
788 </varlistentry>\r
789 <varlistentry>\r
790 <term>\r
791 <xref linkend="git-difftool(1)" />\r
792 </term>\r
793 <listitem>\r
794 <simpara>\r
795         Show changes using common diff tools.\r
796 </simpara>\r
797 </listitem>\r
798 </varlistentry>\r
799 <varlistentry>\r
800 <term>\r
801 <xref linkend="git-fsck(1)" />\r
802 </term>\r
803 <listitem>\r
804 <simpara>\r
805         Verifies the connectivity and validity of the objects in the database.\r
806 </simpara>\r
807 </listitem>\r
808 </varlistentry>\r
809 <varlistentry>\r
810 <term>\r
811 <xref linkend="git-get-tar-commit-id(1)" />\r
812 </term>\r
813 <listitem>\r
814 <simpara>\r
815         Extract commit ID from an archive created using git-archive.\r
816 </simpara>\r
817 </listitem>\r
818 </varlistentry>\r
819 <varlistentry>\r
820 <term>\r
821 <xref linkend="git-help(1)" />\r
822 </term>\r
823 <listitem>\r
824 <simpara>\r
825         display help information about git.\r
826 </simpara>\r
827 </listitem>\r
828 </varlistentry>\r
829 <varlistentry>\r
830 <term>\r
831 <xref linkend="git-instaweb(1)" />\r
832 </term>\r
833 <listitem>\r
834 <simpara>\r
835         Instantly browse your working repository in gitweb.\r
836 </simpara>\r
837 </listitem>\r
838 </varlistentry>\r
839 <varlistentry>\r
840 <term>\r
841 <xref linkend="git-merge-tree(1)" />\r
842 </term>\r
843 <listitem>\r
844 <simpara>\r
845         Show three-way merge without touching index.\r
846 </simpara>\r
847 </listitem>\r
848 </varlistentry>\r
849 <varlistentry>\r
850 <term>\r
851 <xref linkend="git-rerere(1)" />\r
852 </term>\r
853 <listitem>\r
854 <simpara>\r
855         Reuse recorded resolution of conflicted merges.\r
856 </simpara>\r
857 </listitem>\r
858 </varlistentry>\r
859 <varlistentry>\r
860 <term>\r
861 <xref linkend="git-rev-parse(1)" />\r
862 </term>\r
863 <listitem>\r
864 <simpara>\r
865         Pick out and massage parameters.\r
866 </simpara>\r
867 </listitem>\r
868 </varlistentry>\r
869 <varlistentry>\r
870 <term>\r
871 <xref linkend="git-show-branch(1)" />\r
872 </term>\r
873 <listitem>\r
874 <simpara>\r
875         Show branches and their commits.\r
876 </simpara>\r
877 </listitem>\r
878 </varlistentry>\r
879 <varlistentry>\r
880 <term>\r
881 <xref linkend="git-verify-tag(1)" />\r
882 </term>\r
883 <listitem>\r
884 <simpara>\r
885         Check the GPG signature of tags.\r
886 </simpara>\r
887 </listitem>\r
888 </varlistentry>\r
889 <varlistentry>\r
890 <term>\r
891 <xref linkend="git-whatchanged(1)" />\r
892 </term>\r
893 <listitem>\r
894 <simpara>\r
895         Show logs with difference each commit introduces.\r
896 </simpara>\r
897 </listitem>\r
898 </varlistentry>\r
899 <varlistentry>\r
900 <term>\r
901 <xref linkend="gitweb(1)" />\r
902 </term>\r
903 <listitem>\r
904 <simpara>\r
905         Git web interface (web frontend to Git repositories).\r
906 </simpara>\r
907 </listitem>\r
908 </varlistentry>\r
909 </variablelist>\r
910 </section>\r
911 <section id="git(1)__interacting_with_others">\r
912 <title>Interacting with Others</title>\r
913 <simpara>These commands are to interact with foreign SCM and with other\r
914 people via patch over e-mail.</simpara>\r
915 <variablelist>\r
916 <varlistentry>\r
917 <term>\r
918 <xref linkend="git-archimport(1)" />\r
919 </term>\r
920 <listitem>\r
921 <simpara>\r
922         Import an Arch repository into git.\r
923 </simpara>\r
924 </listitem>\r
925 </varlistentry>\r
926 <varlistentry>\r
927 <term>\r
928 <xref linkend="git-cvsexportcommit(1)" />\r
929 </term>\r
930 <listitem>\r
931 <simpara>\r
932         Export a single commit to a CVS checkout.\r
933 </simpara>\r
934 </listitem>\r
935 </varlistentry>\r
936 <varlistentry>\r
937 <term>\r
938 <xref linkend="git-cvsimport(1)" />\r
939 </term>\r
940 <listitem>\r
941 <simpara>\r
942         Salvage your data out of another SCM people love to hate.\r
943 </simpara>\r
944 </listitem>\r
945 </varlistentry>\r
946 <varlistentry>\r
947 <term>\r
948 <xref linkend="git-cvsserver(1)" />\r
949 </term>\r
950 <listitem>\r
951 <simpara>\r
952         A CVS server emulator for git.\r
953 </simpara>\r
954 </listitem>\r
955 </varlistentry>\r
956 <varlistentry>\r
957 <term>\r
958 <xref linkend="git-imap-send(1)" />\r
959 </term>\r
960 <listitem>\r
961 <simpara>\r
962         Send a collection of patches from stdin to an IMAP folder.\r
963 </simpara>\r
964 </listitem>\r
965 </varlistentry>\r
966 <varlistentry>\r
967 <term>\r
968 <xref linkend="git-p4(1)" />\r
969 </term>\r
970 <listitem>\r
971 <simpara>\r
972         Import from and submit to Perforce repositories.\r
973 </simpara>\r
974 </listitem>\r
975 </varlistentry>\r
976 <varlistentry>\r
977 <term>\r
978 <xref linkend="git-quiltimport(1)" />\r
979 </term>\r
980 <listitem>\r
981 <simpara>\r
982         Applies a quilt patchset onto the current branch.\r
983 </simpara>\r
984 </listitem>\r
985 </varlistentry>\r
986 <varlistentry>\r
987 <term>\r
988 <xref linkend="git-request-pull(1)" />\r
989 </term>\r
990 <listitem>\r
991 <simpara>\r
992         Generates a summary of pending changes.\r
993 </simpara>\r
994 </listitem>\r
995 </varlistentry>\r
996 <varlistentry>\r
997 <term>\r
998 <xref linkend="git-send-email(1)" />\r
999 </term>\r
1000 <listitem>\r
1001 <simpara>\r
1002         Send a collection of patches as emails.\r
1003 </simpara>\r
1004 </listitem>\r
1005 </varlistentry>\r
1006 <varlistentry>\r
1007 <term>\r
1008 <xref linkend="git-svn(1)" />\r
1009 </term>\r
1010 <listitem>\r
1011 <simpara>\r
1012         Bidirectional operation between a Subversion repository and git.\r
1013 </simpara>\r
1014 </listitem>\r
1015 </varlistentry>\r
1016 </variablelist>\r
1017 </section>\r
1018 </simplesect>\r
1019 <simplesect id="git(1)__low_level_commands_plumbing">\r
1020 <title>Low-level commands (plumbing)</title>\r
1021 <simpara>Although git includes its\r
1022 own porcelain layer, its low-level commands are sufficient to support\r
1023 development of alternative porcelains.  Developers of such porcelains\r
1024 might start by reading about <xref linkend="git-update-index(1)" /> and\r
1025 <xref linkend="git-read-tree(1)" />.</simpara>\r
1026 <simpara>The interface (input, output, set of options and the semantics)\r
1027 to these low-level commands are meant to be a lot more stable\r
1028 than Porcelain level commands, because these commands are\r
1029 primarily for scripted use.  The interface to Porcelain commands\r
1030 on the other hand are subject to change in order to improve the\r
1031 end user experience.</simpara>\r
1032 <simpara>The following description divides\r
1033 the low-level commands into commands that manipulate objects (in\r
1034 the repository, index, and working tree), commands that interrogate and\r
1035 compare objects, and commands that move objects and references between\r
1036 repositories.</simpara>\r
1037 <section id="git(1)__manipulation_commands">\r
1038 <title>Manipulation commands</title>\r
1039 <variablelist>\r
1040 <varlistentry>\r
1041 <term>\r
1042 <xref linkend="git-apply(1)" />\r
1043 </term>\r
1044 <listitem>\r
1045 <simpara>\r
1046         Apply a patch to files and/or to the index.\r
1047 </simpara>\r
1048 </listitem>\r
1049 </varlistentry>\r
1050 <varlistentry>\r
1051 <term>\r
1052 <xref linkend="git-checkout-index(1)" />\r
1053 </term>\r
1054 <listitem>\r
1055 <simpara>\r
1056         Copy files from the index to the working tree.\r
1057 </simpara>\r
1058 </listitem>\r
1059 </varlistentry>\r
1060 <varlistentry>\r
1061 <term>\r
1062 <xref linkend="git-commit-tree(1)" />\r
1063 </term>\r
1064 <listitem>\r
1065 <simpara>\r
1066         Create a new commit object.\r
1067 </simpara>\r
1068 </listitem>\r
1069 </varlistentry>\r
1070 <varlistentry>\r
1071 <term>\r
1072 <xref linkend="git-hash-object(1)" />\r
1073 </term>\r
1074 <listitem>\r
1075 <simpara>\r
1076         Compute object ID and optionally creates a blob from a file.\r
1077 </simpara>\r
1078 </listitem>\r
1079 </varlistentry>\r
1080 <varlistentry>\r
1081 <term>\r
1082 <xref linkend="git-index-pack(1)" />\r
1083 </term>\r
1084 <listitem>\r
1085 <simpara>\r
1086         Build pack index file for an existing packed archive.\r
1087 </simpara>\r
1088 </listitem>\r
1089 </varlistentry>\r
1090 <varlistentry>\r
1091 <term>\r
1092 <xref linkend="git-merge-file(1)" />\r
1093 </term>\r
1094 <listitem>\r
1095 <simpara>\r
1096         Run a three-way file merge.\r
1097 </simpara>\r
1098 </listitem>\r
1099 </varlistentry>\r
1100 <varlistentry>\r
1101 <term>\r
1102 <xref linkend="git-merge-index(1)" />\r
1103 </term>\r
1104 <listitem>\r
1105 <simpara>\r
1106         Run a merge for files needing merging.\r
1107 </simpara>\r
1108 </listitem>\r
1109 </varlistentry>\r
1110 <varlistentry>\r
1111 <term>\r
1112 <xref linkend="git-mktag(1)" />\r
1113 </term>\r
1114 <listitem>\r
1115 <simpara>\r
1116         Creates a tag object.\r
1117 </simpara>\r
1118 </listitem>\r
1119 </varlistentry>\r
1120 <varlistentry>\r
1121 <term>\r
1122 <xref linkend="git-mktree(1)" />\r
1123 </term>\r
1124 <listitem>\r
1125 <simpara>\r
1126         Build a tree-object from ls-tree formatted text.\r
1127 </simpara>\r
1128 </listitem>\r
1129 </varlistentry>\r
1130 <varlistentry>\r
1131 <term>\r
1132 <xref linkend="git-pack-objects(1)" />\r
1133 </term>\r
1134 <listitem>\r
1135 <simpara>\r
1136         Create a packed archive of objects.\r
1137 </simpara>\r
1138 </listitem>\r
1139 </varlistentry>\r
1140 <varlistentry>\r
1141 <term>\r
1142 <xref linkend="git-prune-packed(1)" />\r
1143 </term>\r
1144 <listitem>\r
1145 <simpara>\r
1146         Remove extra objects that are already in pack files.\r
1147 </simpara>\r
1148 </listitem>\r
1149 </varlistentry>\r
1150 <varlistentry>\r
1151 <term>\r
1152 <xref linkend="git-read-tree(1)" />\r
1153 </term>\r
1154 <listitem>\r
1155 <simpara>\r
1156         Reads tree information into the index.\r
1157 </simpara>\r
1158 </listitem>\r
1159 </varlistentry>\r
1160 <varlistentry>\r
1161 <term>\r
1162 <xref linkend="git-symbolic-ref(1)" />\r
1163 </term>\r
1164 <listitem>\r
1165 <simpara>\r
1166         Read, modify and delete symbolic refs.\r
1167 </simpara>\r
1168 </listitem>\r
1169 </varlistentry>\r
1170 <varlistentry>\r
1171 <term>\r
1172 <xref linkend="git-unpack-objects(1)" />\r
1173 </term>\r
1174 <listitem>\r
1175 <simpara>\r
1176         Unpack objects from a packed archive.\r
1177 </simpara>\r
1178 </listitem>\r
1179 </varlistentry>\r
1180 <varlistentry>\r
1181 <term>\r
1182 <xref linkend="git-update-index(1)" />\r
1183 </term>\r
1184 <listitem>\r
1185 <simpara>\r
1186         Register file contents in the working tree to the index.\r
1187 </simpara>\r
1188 </listitem>\r
1189 </varlistentry>\r
1190 <varlistentry>\r
1191 <term>\r
1192 <xref linkend="git-update-ref(1)" />\r
1193 </term>\r
1194 <listitem>\r
1195 <simpara>\r
1196         Update the object name stored in a ref safely.\r
1197 </simpara>\r
1198 </listitem>\r
1199 </varlistentry>\r
1200 <varlistentry>\r
1201 <term>\r
1202 <xref linkend="git-write-tree(1)" />\r
1203 </term>\r
1204 <listitem>\r
1205 <simpara>\r
1206         Create a tree object from the current index.\r
1207 </simpara>\r
1208 </listitem>\r
1209 </varlistentry>\r
1210 </variablelist>\r
1211 </section>\r
1212 <section id="git(1)__interrogation_commands">\r
1213 <title>Interrogation commands</title>\r
1214 <variablelist>\r
1215 <varlistentry>\r
1216 <term>\r
1217 <xref linkend="git-cat-file(1)" />\r
1218 </term>\r
1219 <listitem>\r
1220 <simpara>\r
1221         Provide content or type and size information for repository objects.\r
1222 </simpara>\r
1223 </listitem>\r
1224 </varlistentry>\r
1225 <varlistentry>\r
1226 <term>\r
1227 <xref linkend="git-diff-files(1)" />\r
1228 </term>\r
1229 <listitem>\r
1230 <simpara>\r
1231         Compares files in the working tree and the index.\r
1232 </simpara>\r
1233 </listitem>\r
1234 </varlistentry>\r
1235 <varlistentry>\r
1236 <term>\r
1237 <xref linkend="git-diff-index(1)" />\r
1238 </term>\r
1239 <listitem>\r
1240 <simpara>\r
1241         Compares content and mode of blobs between the index and repository.\r
1242 </simpara>\r
1243 </listitem>\r
1244 </varlistentry>\r
1245 <varlistentry>\r
1246 <term>\r
1247 <xref linkend="git-diff-tree(1)" />\r
1248 </term>\r
1249 <listitem>\r
1250 <simpara>\r
1251         Compares the content and mode of blobs found via two tree objects.\r
1252 </simpara>\r
1253 </listitem>\r
1254 </varlistentry>\r
1255 <varlistentry>\r
1256 <term>\r
1257 <xref linkend="git-for-each-ref(1)" />\r
1258 </term>\r
1259 <listitem>\r
1260 <simpara>\r
1261         Output information on each ref.\r
1262 </simpara>\r
1263 </listitem>\r
1264 </varlistentry>\r
1265 <varlistentry>\r
1266 <term>\r
1267 <xref linkend="git-ls-files(1)" />\r
1268 </term>\r
1269 <listitem>\r
1270 <simpara>\r
1271         Show information about files in the index and the working tree.\r
1272 </simpara>\r
1273 </listitem>\r
1274 </varlistentry>\r
1275 <varlistentry>\r
1276 <term>\r
1277 <xref linkend="git-ls-remote(1)" />\r
1278 </term>\r
1279 <listitem>\r
1280 <simpara>\r
1281         List references in a remote repository.\r
1282 </simpara>\r
1283 </listitem>\r
1284 </varlistentry>\r
1285 <varlistentry>\r
1286 <term>\r
1287 <xref linkend="git-ls-tree(1)" />\r
1288 </term>\r
1289 <listitem>\r
1290 <simpara>\r
1291         List the contents of a tree object.\r
1292 </simpara>\r
1293 </listitem>\r
1294 </varlistentry>\r
1295 <varlistentry>\r
1296 <term>\r
1297 <xref linkend="git-merge-base(1)" />\r
1298 </term>\r
1299 <listitem>\r
1300 <simpara>\r
1301         Find as good common ancestors as possible for a merge.\r
1302 </simpara>\r
1303 </listitem>\r
1304 </varlistentry>\r
1305 <varlistentry>\r
1306 <term>\r
1307 <xref linkend="git-name-rev(1)" />\r
1308 </term>\r
1309 <listitem>\r
1310 <simpara>\r
1311         Find symbolic names for given revs.\r
1312 </simpara>\r
1313 </listitem>\r
1314 </varlistentry>\r
1315 <varlistentry>\r
1316 <term>\r
1317 <xref linkend="git-pack-redundant(1)" />\r
1318 </term>\r
1319 <listitem>\r
1320 <simpara>\r
1321         Find redundant pack files.\r
1322 </simpara>\r
1323 </listitem>\r
1324 </varlistentry>\r
1325 <varlistentry>\r
1326 <term>\r
1327 <xref linkend="git-rev-list(1)" />\r
1328 </term>\r
1329 <listitem>\r
1330 <simpara>\r
1331         Lists commit objects in reverse chronological order.\r
1332 </simpara>\r
1333 </listitem>\r
1334 </varlistentry>\r
1335 <varlistentry>\r
1336 <term>\r
1337 <xref linkend="git-show-index(1)" />\r
1338 </term>\r
1339 <listitem>\r
1340 <simpara>\r
1341         Show packed archive index.\r
1342 </simpara>\r
1343 </listitem>\r
1344 </varlistentry>\r
1345 <varlistentry>\r
1346 <term>\r
1347 <xref linkend="git-show-ref(1)" />\r
1348 </term>\r
1349 <listitem>\r
1350 <simpara>\r
1351         List references in a local repository.\r
1352 </simpara>\r
1353 </listitem>\r
1354 </varlistentry>\r
1355 <varlistentry>\r
1356 <term>\r
1357 <xref linkend="git-tar-tree(1)" />\r
1358 </term>\r
1359 <listitem>\r
1360 <simpara>\r
1361         (deprecated) Create a tar archive of the files in the named tree object.\r
1362 </simpara>\r
1363 </listitem>\r
1364 </varlistentry>\r
1365 <varlistentry>\r
1366 <term>\r
1367 <xref linkend="git-unpack-file(1)" />\r
1368 </term>\r
1369 <listitem>\r
1370 <simpara>\r
1371         Creates a temporary file with a blob's contents.\r
1372 </simpara>\r
1373 </listitem>\r
1374 </varlistentry>\r
1375 <varlistentry>\r
1376 <term>\r
1377 <xref linkend="git-var(1)" />\r
1378 </term>\r
1379 <listitem>\r
1380 <simpara>\r
1381         Show a git logical variable.\r
1382 </simpara>\r
1383 </listitem>\r
1384 </varlistentry>\r
1385 <varlistentry>\r
1386 <term>\r
1387 <xref linkend="git-verify-pack(1)" />\r
1388 </term>\r
1389 <listitem>\r
1390 <simpara>\r
1391         Validate packed git archive files.\r
1392 </simpara>\r
1393 </listitem>\r
1394 </varlistentry>\r
1395 </variablelist>\r
1396 <simpara>In general, the interrogate commands do not touch the files in\r
1397 the working tree.</simpara>\r
1398 </section>\r
1399 <section id="git(1)__synching_repositories">\r
1400 <title>Synching repositories</title>\r
1401 <variablelist>\r
1402 <varlistentry>\r
1403 <term>\r
1404 <xref linkend="git-daemon(1)" />\r
1405 </term>\r
1406 <listitem>\r
1407 <simpara>\r
1408         A really simple server for git repositories.\r
1409 </simpara>\r
1410 </listitem>\r
1411 </varlistentry>\r
1412 <varlistentry>\r
1413 <term>\r
1414 <xref linkend="git-fetch-pack(1)" />\r
1415 </term>\r
1416 <listitem>\r
1417 <simpara>\r
1418         Receive missing objects from another repository.\r
1419 </simpara>\r
1420 </listitem>\r
1421 </varlistentry>\r
1422 <varlistentry>\r
1423 <term>\r
1424 <xref linkend="git-http-backend(1)" />\r
1425 </term>\r
1426 <listitem>\r
1427 <simpara>\r
1428         Server side implementation of Git over HTTP.\r
1429 </simpara>\r
1430 </listitem>\r
1431 </varlistentry>\r
1432 <varlistentry>\r
1433 <term>\r
1434 <xref linkend="git-send-pack(1)" />\r
1435 </term>\r
1436 <listitem>\r
1437 <simpara>\r
1438         Push objects over git protocol to another repository.\r
1439 </simpara>\r
1440 </listitem>\r
1441 </varlistentry>\r
1442 <varlistentry>\r
1443 <term>\r
1444 <xref linkend="git-update-server-info(1)" />\r
1445 </term>\r
1446 <listitem>\r
1447 <simpara>\r
1448         Update auxiliary info file to help dumb servers.\r
1449 </simpara>\r
1450 </listitem>\r
1451 </varlistentry>\r
1452 </variablelist>\r
1453 <simpara>The following are helper commands used by the above; end users\r
1454 typically do not use them directly.</simpara>\r
1455 <variablelist>\r
1456 <varlistentry>\r
1457 <term>\r
1458 <xref linkend="git-http-fetch(1)" />\r
1459 </term>\r
1460 <listitem>\r
1461 <simpara>\r
1462         Download from a remote git repository via HTTP.\r
1463 </simpara>\r
1464 </listitem>\r
1465 </varlistentry>\r
1466 <varlistentry>\r
1467 <term>\r
1468 <xref linkend="git-http-push(1)" />\r
1469 </term>\r
1470 <listitem>\r
1471 <simpara>\r
1472         Push objects over HTTP/DAV to another repository.\r
1473 </simpara>\r
1474 </listitem>\r
1475 </varlistentry>\r
1476 <varlistentry>\r
1477 <term>\r
1478 <xref linkend="git-parse-remote(1)" />\r
1479 </term>\r
1480 <listitem>\r
1481 <simpara>\r
1482         Routines to help parsing remote repository access parameters.\r
1483 </simpara>\r
1484 </listitem>\r
1485 </varlistentry>\r
1486 <varlistentry>\r
1487 <term>\r
1488 <xref linkend="git-receive-pack(1)" />\r
1489 </term>\r
1490 <listitem>\r
1491 <simpara>\r
1492         Receive what is pushed into the repository.\r
1493 </simpara>\r
1494 </listitem>\r
1495 </varlistentry>\r
1496 <varlistentry>\r
1497 <term>\r
1498 <xref linkend="git-shell(1)" />\r
1499 </term>\r
1500 <listitem>\r
1501 <simpara>\r
1502         Restricted login shell for Git-only SSH access.\r
1503 </simpara>\r
1504 </listitem>\r
1505 </varlistentry>\r
1506 <varlistentry>\r
1507 <term>\r
1508 <xref linkend="git-upload-archive(1)" />\r
1509 </term>\r
1510 <listitem>\r
1511 <simpara>\r
1512         Send archive back to git-archive.\r
1513 </simpara>\r
1514 </listitem>\r
1515 </varlistentry>\r
1516 <varlistentry>\r
1517 <term>\r
1518 <xref linkend="git-upload-pack(1)" />\r
1519 </term>\r
1520 <listitem>\r
1521 <simpara>\r
1522         Send objects packed back to git-fetch-pack.\r
1523 </simpara>\r
1524 </listitem>\r
1525 </varlistentry>\r
1526 </variablelist>\r
1527 </section>\r
1528 <section id="git(1)__internal_helper_commands">\r
1529 <title>Internal helper commands</title>\r
1530 <simpara>These are internal helper commands used by other commands; end\r
1531 users typically do not use them directly.</simpara>\r
1532 <variablelist>\r
1533 <varlistentry>\r
1534 <term>\r
1535 <xref linkend="git-check-attr(1)" />\r
1536 </term>\r
1537 <listitem>\r
1538 <simpara>\r
1539         Display gitattributes information.\r
1540 </simpara>\r
1541 </listitem>\r
1542 </varlistentry>\r
1543 <varlistentry>\r
1544 <term>\r
1545 <xref linkend="git-check-ref-format(1)" />\r
1546 </term>\r
1547 <listitem>\r
1548 <simpara>\r
1549         Ensures that a reference name is well formed.\r
1550 </simpara>\r
1551 </listitem>\r
1552 </varlistentry>\r
1553 <varlistentry>\r
1554 <term>\r
1555 <xref linkend="git-column(1)" />\r
1556 </term>\r
1557 <listitem>\r
1558 <simpara>\r
1559         Display data in columns.\r
1560 </simpara>\r
1561 </listitem>\r
1562 </varlistentry>\r
1563 <varlistentry>\r
1564 <term>\r
1565 <xref linkend="git-credential(1)" />\r
1566 </term>\r
1567 <listitem>\r
1568 <simpara>\r
1569         Retrieve and store user credentials.\r
1570 </simpara>\r
1571 </listitem>\r
1572 </varlistentry>\r
1573 <varlistentry>\r
1574 <term>\r
1575 <xref linkend="git-credential-cache(1)" />\r
1576 </term>\r
1577 <listitem>\r
1578 <simpara>\r
1579         Helper to temporarily store passwords in memory.\r
1580 </simpara>\r
1581 </listitem>\r
1582 </varlistentry>\r
1583 <varlistentry>\r
1584 <term>\r
1585 <xref linkend="git-credential-store(1)" />\r
1586 </term>\r
1587 <listitem>\r
1588 <simpara>\r
1589         Helper to store credentials on disk.\r
1590 </simpara>\r
1591 </listitem>\r
1592 </varlistentry>\r
1593 <varlistentry>\r
1594 <term>\r
1595 <xref linkend="git-fmt-merge-msg(1)" />\r
1596 </term>\r
1597 <listitem>\r
1598 <simpara>\r
1599         Produce a merge commit message.\r
1600 </simpara>\r
1601 </listitem>\r
1602 </varlistentry>\r
1603 <varlistentry>\r
1604 <term>\r
1605 <xref linkend="git-mailinfo(1)" />\r
1606 </term>\r
1607 <listitem>\r
1608 <simpara>\r
1609         Extracts patch and authorship from a single e-mail message.\r
1610 </simpara>\r
1611 </listitem>\r
1612 </varlistentry>\r
1613 <varlistentry>\r
1614 <term>\r
1615 <xref linkend="git-mailsplit(1)" />\r
1616 </term>\r
1617 <listitem>\r
1618 <simpara>\r
1619         Simple UNIX mbox splitter program.\r
1620 </simpara>\r
1621 </listitem>\r
1622 </varlistentry>\r
1623 <varlistentry>\r
1624 <term>\r
1625 <xref linkend="git-merge-one-file(1)" />\r
1626 </term>\r
1627 <listitem>\r
1628 <simpara>\r
1629         The standard helper program to use with git-merge-index.\r
1630 </simpara>\r
1631 </listitem>\r
1632 </varlistentry>\r
1633 <varlistentry>\r
1634 <term>\r
1635 <xref linkend="git-patch-id(1)" />\r
1636 </term>\r
1637 <listitem>\r
1638 <simpara>\r
1639         Compute unique ID for a patch.\r
1640 </simpara>\r
1641 </listitem>\r
1642 </varlistentry>\r
1643 <varlistentry>\r
1644 <term>\r
1645 <xref linkend="git-peek-remote(1)" />\r
1646 </term>\r
1647 <listitem>\r
1648 <simpara>\r
1649         (deprecated) List the references in a remote repository.\r
1650 </simpara>\r
1651 </listitem>\r
1652 </varlistentry>\r
1653 <varlistentry>\r
1654 <term>\r
1655 <xref linkend="git-sh-i18n(1)" />\r
1656 </term>\r
1657 <listitem>\r
1658 <simpara>\r
1659         Git's i18n setup code for shell scripts.\r
1660 </simpara>\r
1661 </listitem>\r
1662 </varlistentry>\r
1663 <varlistentry>\r
1664 <term>\r
1665 <xref linkend="git-sh-setup(1)" />\r
1666 </term>\r
1667 <listitem>\r
1668 <simpara>\r
1669         Common git shell script setup code.\r
1670 </simpara>\r
1671 </listitem>\r
1672 </varlistentry>\r
1673 <varlistentry>\r
1674 <term>\r
1675 <xref linkend="git-stripspace(1)" />\r
1676 </term>\r
1677 <listitem>\r
1678 <simpara>\r
1679         Remove unnecessary whitespace.\r
1680 </simpara>\r
1681 </listitem>\r
1682 </varlistentry>\r
1683 </variablelist>\r
1684 </section>\r
1685 </simplesect>\r
1686 <simplesect id="git(1)__configuration_mechanism">\r
1687 <title>Configuration Mechanism</title>\r
1688 <simpara>Starting from 0.99.9 (actually mid 0.99.8.GIT), <emphasis>.git/config</emphasis> file\r
1689 is used to hold per-repository configuration options.  It is a\r
1690 simple text file modeled after <emphasis>.ini</emphasis> format familiar to some\r
1691 people.  Here is an example:</simpara>\r
1692 <screen>#\r
1693 # A '#' or ';' character indicates a comment.\r
1696 ; core variables\r
1697 [core]\r
1698         ; Don't trust file modes\r
1699         filemode = false\r
1701 ; user identity\r
1702 [user]\r
1703         name = "Junio C Hamano"\r
1704         email = "junkio@twinsun.com"</screen>\r
1705 <simpara>Various commands read from the configuration file and adjust\r
1706 their operation accordingly.  See <xref linkend="git-config(1)" /> for a\r
1707 list.</simpara>\r
1708 </simplesect>\r
1709 <simplesect id="git(1)__identifier_terminology">\r
1710 <title>Identifier Terminology</title>\r
1711 <variablelist>\r
1712 <varlistentry>\r
1713 <term>\r
1714 &lt;object&gt;\r
1715 </term>\r
1716 <listitem>\r
1717 <simpara>\r
1718         Indicates the object name for any type of object.\r
1719 </simpara>\r
1720 </listitem>\r
1721 </varlistentry>\r
1722 <varlistentry>\r
1723 <term>\r
1724 &lt;blob&gt;\r
1725 </term>\r
1726 <listitem>\r
1727 <simpara>\r
1728         Indicates a blob object name.\r
1729 </simpara>\r
1730 </listitem>\r
1731 </varlistentry>\r
1732 <varlistentry>\r
1733 <term>\r
1734 &lt;tree&gt;\r
1735 </term>\r
1736 <listitem>\r
1737 <simpara>\r
1738         Indicates a tree object name.\r
1739 </simpara>\r
1740 </listitem>\r
1741 </varlistentry>\r
1742 <varlistentry>\r
1743 <term>\r
1744 &lt;commit&gt;\r
1745 </term>\r
1746 <listitem>\r
1747 <simpara>\r
1748         Indicates a commit object name.\r
1749 </simpara>\r
1750 </listitem>\r
1751 </varlistentry>\r
1752 <varlistentry>\r
1753 <term>\r
1754 &lt;tree-ish&gt;\r
1755 </term>\r
1756 <listitem>\r
1757 <simpara>\r
1758         Indicates a tree, commit or tag object name.  A\r
1759         command that takes a &lt;tree-ish&gt; argument ultimately wants to\r
1760         operate on a &lt;tree&gt; object but automatically dereferences\r
1761         &lt;commit&gt; and &lt;tag&gt; objects that point at a &lt;tree&gt;.\r
1762 </simpara>\r
1763 </listitem>\r
1764 </varlistentry>\r
1765 <varlistentry>\r
1766 <term>\r
1767 &lt;commit-ish&gt;\r
1768 </term>\r
1769 <listitem>\r
1770 <simpara>\r
1771         Indicates a commit or tag object name.  A\r
1772         command that takes a &lt;commit-ish&gt; argument ultimately wants to\r
1773         operate on a &lt;commit&gt; object but automatically dereferences\r
1774         &lt;tag&gt; objects that point at a &lt;commit&gt;.\r
1775 </simpara>\r
1776 </listitem>\r
1777 </varlistentry>\r
1778 <varlistentry>\r
1779 <term>\r
1780 &lt;type&gt;\r
1781 </term>\r
1782 <listitem>\r
1783 <simpara>\r
1784         Indicates that an object type is required.\r
1785         Currently one of: <emphasis>blob</emphasis>, <emphasis>tree</emphasis>, <emphasis>commit</emphasis>, or <emphasis>tag</emphasis>.\r
1786 </simpara>\r
1787 </listitem>\r
1788 </varlistentry>\r
1789 <varlistentry>\r
1790 <term>\r
1791 &lt;file&gt;\r
1792 </term>\r
1793 <listitem>\r
1794 <simpara>\r
1795         Indicates a filename - almost always relative to the\r
1796         root of the tree structure <emphasis>GIT_INDEX_FILE</emphasis> describes.\r
1797 </simpara>\r
1798 </listitem>\r
1799 </varlistentry>\r
1800 </variablelist>\r
1801 </simplesect>\r
1802 <simplesect id="git(1)__symbolic_identifiers">\r
1803 <title>Symbolic Identifiers</title>\r
1804 <simpara>Any git command accepting any &lt;object&gt; can also use the following\r
1805 symbolic notation:</simpara>\r
1806 <variablelist>\r
1807 <varlistentry>\r
1808 <term>\r
1809 HEAD\r
1810 </term>\r
1811 <listitem>\r
1812 <simpara>\r
1813         indicates the head of the current branch.\r
1814 </simpara>\r
1815 </listitem>\r
1816 </varlistentry>\r
1817 <varlistentry>\r
1818 <term>\r
1819 &lt;tag&gt;\r
1820 </term>\r
1821 <listitem>\r
1822 <simpara>\r
1823         a valid tag <emphasis>name</emphasis>\r
1824         (i.e. a <emphasis>refs/tags/&lt;tag&gt;</emphasis> reference).\r
1825 </simpara>\r
1826 </listitem>\r
1827 </varlistentry>\r
1828 <varlistentry>\r
1829 <term>\r
1830 &lt;head&gt;\r
1831 </term>\r
1832 <listitem>\r
1833 <simpara>\r
1834         a valid head <emphasis>name</emphasis>\r
1835         (i.e. a <emphasis>refs/heads/&lt;head&gt;</emphasis> reference).\r
1836 </simpara>\r
1837 </listitem>\r
1838 </varlistentry>\r
1839 </variablelist>\r
1840 <simpara>For a more complete list of ways to spell object names, see\r
1841 "SPECIFYING REVISIONS" section in <xref linkend="gitrevisions(7)" />.</simpara>\r
1842 </simplesect>\r
1843 <simplesect id="git(1)__file_directory_structure">\r
1844 <title>File/Directory Structure</title>\r
1845 <simpara>Please see the <xref linkend="gitrepository-layout(5)" /> document.</simpara>\r
1846 <simpara>Read <xref linkend="githooks(5)" /> for more details about each hook.</simpara>\r
1847 <simpara>Higher level SCMs may provide and manage additional information in the\r
1848 <emphasis>$GIT_DIR</emphasis>.</simpara>\r
1849 </simplesect>\r
1850 <simplesect id="git(1)__terminology">\r
1851 <title>Terminology</title>\r
1852 <simpara>Please see <xref linkend="gitglossary(7)" />.</simpara>\r
1853 </simplesect>\r
1854 <simplesect id="git(1)__environment_variables">\r
1855 <title>Environment Variables</title>\r
1856 <simpara>Various git commands use the following environment variables:</simpara>\r
1857 <section id="git(1)__the_git_repository">\r
1858 <title>The git Repository</title>\r
1859 <simpara>These environment variables apply to <emphasis>all</emphasis> core git commands. Nb: it\r
1860 is worth noting that they may be used/overridden by SCMS sitting above\r
1861 git so take care if using Cogito etc.</simpara>\r
1862 <variablelist>\r
1863 <varlistentry>\r
1864 <term>\r
1865 <emphasis>GIT_INDEX_FILE</emphasis>\r
1866 </term>\r
1867 <listitem>\r
1868 <simpara>\r
1869         This environment allows the specification of an alternate\r
1870         index file. If not specified, the default of <emphasis>$GIT_DIR/index</emphasis>\r
1871         is used.\r
1872 </simpara>\r
1873 </listitem>\r
1874 </varlistentry>\r
1875 <varlistentry>\r
1876 <term>\r
1877 <emphasis>GIT_OBJECT_DIRECTORY</emphasis>\r
1878 </term>\r
1879 <listitem>\r
1880 <simpara>\r
1881         If the object storage directory is specified via this\r
1882         environment variable then the sha1 directories are created\r
1883         underneath - otherwise the default <emphasis>$GIT_DIR/objects</emphasis>\r
1884         directory is used.\r
1885 </simpara>\r
1886 </listitem>\r
1887 </varlistentry>\r
1888 <varlistentry>\r
1889 <term>\r
1890 <emphasis>GIT_ALTERNATE_OBJECT_DIRECTORIES</emphasis>\r
1891 </term>\r
1892 <listitem>\r
1893 <simpara>\r
1894         Due to the immutable nature of git objects, old objects can be\r
1895         archived into shared, read-only directories. This variable\r
1896         specifies a ":" separated (on Windows ";" separated) list\r
1897         of git object directories which can be used to search for git\r
1898         objects. New objects will not be written to these directories.\r
1899 </simpara>\r
1900 </listitem>\r
1901 </varlistentry>\r
1902 <varlistentry>\r
1903 <term>\r
1904 <emphasis>GIT_DIR</emphasis>\r
1905 </term>\r
1906 <listitem>\r
1907 <simpara>\r
1908         If the <emphasis>GIT_DIR</emphasis> environment variable is set then it\r
1909         specifies a path to use instead of the default <emphasis>.git</emphasis>\r
1910         for the base of the repository.\r
1911         The <emphasis>--git-dir</emphasis> command-line option also sets this value.\r
1912 </simpara>\r
1913 </listitem>\r
1914 </varlistentry>\r
1915 <varlistentry>\r
1916 <term>\r
1917 <emphasis>GIT_WORK_TREE</emphasis>\r
1918 </term>\r
1919 <listitem>\r
1920 <simpara>\r
1921         Set the path to the working tree.  The value will not be\r
1922         used in combination with repositories found automatically in\r
1923         a .git directory (i.e. $GIT_DIR is not set).\r
1924         This can also be controlled by the <emphasis>--work-tree</emphasis> command line\r
1925         option and the core.worktree configuration variable.\r
1926 </simpara>\r
1927 </listitem>\r
1928 </varlistentry>\r
1929 <varlistentry>\r
1930 <term>\r
1931 <emphasis>GIT_NAMESPACE</emphasis>\r
1932 </term>\r
1933 <listitem>\r
1934 <simpara>\r
1935         Set the git namespace; see <xref linkend="gitnamespaces(7)" /> for details.\r
1936         The <emphasis>--namespace</emphasis> command-line option also sets this value.\r
1937 </simpara>\r
1938 </listitem>\r
1939 </varlistentry>\r
1940 <varlistentry>\r
1941 <term>\r
1942 <emphasis>GIT_CEILING_DIRECTORIES</emphasis>\r
1943 </term>\r
1944 <listitem>\r
1945 <simpara>\r
1946         This should be a colon-separated list of absolute paths.\r
1947         If set, it is a list of directories that git should not chdir\r
1948         up into while looking for a repository directory.\r
1949         It will not exclude the current working directory or\r
1950         a GIT_DIR set on the command line or in the environment.\r
1951         (Useful for excluding slow-loading network directories.)\r
1952 </simpara>\r
1953 </listitem>\r
1954 </varlistentry>\r
1955 <varlistentry>\r
1956 <term>\r
1957 <emphasis>GIT_DISCOVERY_ACROSS_FILESYSTEM</emphasis>\r
1958 </term>\r
1959 <listitem>\r
1960 <simpara>\r
1961         When run in a directory that does not have ".git" repository\r
1962         directory, git tries to find such a directory in the parent\r
1963         directories to find the top of the working tree, but by default it\r
1964         does not cross filesystem boundaries.  This environment variable\r
1965         can be set to true to tell git not to stop at filesystem\r
1966         boundaries.  Like <emphasis>GIT_CEILING_DIRECTORIES</emphasis>, this will not affect\r
1967         an explicit repository directory set via <emphasis>GIT_DIR</emphasis> or on the\r
1968         command line.\r
1969 </simpara>\r
1970 </listitem>\r
1971 </varlistentry>\r
1972 </variablelist>\r
1973 </section>\r
1974 <section id="git(1)__git_commits">\r
1975 <title>git Commits</title>\r
1976 <variablelist>\r
1977 <varlistentry>\r
1978 <term>\r
1979 <emphasis>GIT_AUTHOR_NAME</emphasis>\r
1980 </term>\r
1981 <term>\r
1982 <emphasis>GIT_AUTHOR_EMAIL</emphasis>\r
1983 </term>\r
1984 <term>\r
1985 <emphasis>GIT_AUTHOR_DATE</emphasis>\r
1986 </term>\r
1987 <term>\r
1988 <emphasis>GIT_COMMITTER_NAME</emphasis>\r
1989 </term>\r
1990 <term>\r
1991 <emphasis>GIT_COMMITTER_EMAIL</emphasis>\r
1992 </term>\r
1993 <term>\r
1994 <emphasis>GIT_COMMITTER_DATE</emphasis>\r
1995 </term>\r
1996 <term>\r
1997 <emphasis>EMAIL</emphasis>\r
1998 </term>\r
1999 <listitem>\r
2000 <simpara>\r
2001         see <xref linkend="git-commit-tree(1)" />\r
2002 </simpara>\r
2003 </listitem>\r
2004 </varlistentry>\r
2005 </variablelist>\r
2006 </section>\r
2007 <section id="git(1)__git_diffs">\r
2008 <title>git Diffs</title>\r
2009 <variablelist>\r
2010 <varlistentry>\r
2011 <term>\r
2012 <emphasis>GIT_DIFF_OPTS</emphasis>\r
2013 </term>\r
2014 <listitem>\r
2015 <simpara>\r
2016         Only valid setting is "--unified=??" or "-u??" to set the\r
2017         number of context lines shown when a unified diff is created.\r
2018         This takes precedence over any "-U" or "--unified" option\r
2019         value passed on the git diff command line.\r
2020 </simpara>\r
2021 </listitem>\r
2022 </varlistentry>\r
2023 <varlistentry>\r
2024 <term>\r
2025 <emphasis>GIT_EXTERNAL_DIFF</emphasis>\r
2026 </term>\r
2027 <listitem>\r
2028 <simpara>\r
2029         When the environment variable <emphasis>GIT_EXTERNAL_DIFF</emphasis> is set, the\r
2030         program named by it is called, instead of the diff invocation\r
2031         described above.  For a path that is added, removed, or modified,\r
2032         <emphasis>GIT_EXTERNAL_DIFF</emphasis> is called with 7 parameters:\r
2033 </simpara>\r
2034 <literallayout class="monospaced">path old-file old-hex old-mode new-file new-hex new-mode</literallayout>\r
2035 <simpara>where:</simpara>\r
2036 </listitem>\r
2037 </varlistentry>\r
2038 <varlistentry>\r
2039 <term>\r
2040 &lt;old|new&gt;-file\r
2041 </term>\r
2042 <listitem>\r
2043 <simpara>\r
2044 are files GIT_EXTERNAL_DIFF can use to read the\r
2045                          contents of &lt;old|new&gt;,\r
2046 </simpara>\r
2047 </listitem>\r
2048 </varlistentry>\r
2049 <varlistentry>\r
2050 <term>\r
2051 &lt;old|new&gt;-hex\r
2052 </term>\r
2053 <listitem>\r
2054 <simpara>\r
2055 are the 40-hexdigit SHA1 hashes,\r
2056 </simpara>\r
2057 </listitem>\r
2058 </varlistentry>\r
2059 <varlistentry>\r
2060 <term>\r
2061 &lt;old|new&gt;-mode\r
2062 </term>\r
2063 <listitem>\r
2064 <simpara>\r
2065 are the octal representation of the file modes.\r
2066 </simpara>\r
2067 <simpara>The file parameters can point at the user's working file\r
2068 (e.g. <emphasis>new-file</emphasis> in "git-diff-files"), <emphasis>/dev/null</emphasis> (e.g. <emphasis>old-file</emphasis>\r
2069 when a new file is added), or a temporary file (e.g. <emphasis>old-file</emphasis> in the\r
2070 index).  <emphasis>GIT_EXTERNAL_DIFF</emphasis> should not worry about unlinking the\r
2071 temporary file --- it is removed when <emphasis>GIT_EXTERNAL_DIFF</emphasis> exits.</simpara>\r
2072 <simpara>For a path that is unmerged, <emphasis>GIT_EXTERNAL_DIFF</emphasis> is called with 1\r
2073 parameter, &lt;path&gt;.</simpara>\r
2074 </listitem>\r
2075 </varlistentry>\r
2076 </variablelist>\r
2077 </section>\r
2078 <section id="git(1)__other">\r
2079 <title>other</title>\r
2080 <variablelist>\r
2081 <varlistentry>\r
2082 <term>\r
2083 <emphasis>GIT_MERGE_VERBOSITY</emphasis>\r
2084 </term>\r
2085 <listitem>\r
2086 <simpara>\r
2087         A number controlling the amount of output shown by\r
2088         the recursive merge strategy.  Overrides merge.verbosity.\r
2089         See <xref linkend="git-merge(1)" />\r
2090 </simpara>\r
2091 </listitem>\r
2092 </varlistentry>\r
2093 <varlistentry>\r
2094 <term>\r
2095 <emphasis>GIT_PAGER</emphasis>\r
2096 </term>\r
2097 <listitem>\r
2098 <simpara>\r
2099         This environment variable overrides <emphasis>$PAGER</emphasis>. If it is set\r
2100         to an empty string or to the value "cat", git will not launch\r
2101         a pager.  See also the <emphasis>core.pager</emphasis> option in\r
2102         <xref linkend="git-config(1)" />.\r
2103 </simpara>\r
2104 </listitem>\r
2105 </varlistentry>\r
2106 <varlistentry>\r
2107 <term>\r
2108 <emphasis>GIT_EDITOR</emphasis>\r
2109 </term>\r
2110 <listitem>\r
2111 <simpara>\r
2112         This environment variable overrides <emphasis>$EDITOR</emphasis> and <emphasis>$VISUAL</emphasis>.\r
2113         It is used by several git commands when, on interactive mode,\r
2114         an editor is to be launched. See also <xref linkend="git-var(1)" />\r
2115         and the <emphasis>core.editor</emphasis> option in <xref linkend="git-config(1)" />.\r
2116 </simpara>\r
2117 </listitem>\r
2118 </varlistentry>\r
2119 <varlistentry>\r
2120 <term>\r
2121 <emphasis>GIT_SSH</emphasis>\r
2122 </term>\r
2123 <listitem>\r
2124 <simpara>\r
2125         If this environment variable is set then <emphasis>git fetch</emphasis>\r
2126         and <emphasis>git push</emphasis> will use this command instead\r
2127         of <emphasis>ssh</emphasis> when they need to connect to a remote system.\r
2128         The <emphasis>$GIT_SSH</emphasis> command will be given exactly two arguments:\r
2129         the <emphasis>username@host</emphasis> (or just <emphasis>host</emphasis>) from the URL and the\r
2130         shell command to execute on that remote system.\r
2131 </simpara>\r
2132 <simpara>To pass options to the program that you want to list in GIT_SSH\r
2133 you will need to wrap the program and options into a shell script,\r
2134 then set GIT_SSH to refer to the shell script.</simpara>\r
2135 <simpara>Usually it is easier to configure any desired options through your\r
2136 personal <emphasis>.ssh/config</emphasis> file.  Please consult your ssh documentation\r
2137 for further details.</simpara>\r
2138 </listitem>\r
2139 </varlistentry>\r
2140 <varlistentry>\r
2141 <term>\r
2142 <emphasis>GIT_ASKPASS</emphasis>\r
2143 </term>\r
2144 <listitem>\r
2145 <simpara>\r
2146         If this environment variable is set, then git commands which need to\r
2147         acquire passwords or passphrases (e.g. for HTTP or IMAP authentication)\r
2148         will call this program with a suitable prompt as command line argument\r
2149         and read the password from its STDOUT. See also the <emphasis>core.askpass</emphasis>\r
2150         option in <xref linkend="git-config(1)" />.\r
2151 </simpara>\r
2152 </listitem>\r
2153 </varlistentry>\r
2154 <varlistentry>\r
2155 <term>\r
2156 <emphasis>GIT_FLUSH</emphasis>\r
2157 </term>\r
2158 <listitem>\r
2159 <simpara>\r
2160         If this environment variable is set to "1", then commands such\r
2161         as <emphasis>git blame</emphasis> (in incremental mode), <emphasis>git rev-list</emphasis>, <emphasis>git log</emphasis>,\r
2162         and <emphasis>git whatchanged</emphasis> will force a flush of the output stream\r
2163         after each commit-oriented record have been flushed.   If this\r
2164         variable is set to "0", the output of these commands will be done\r
2165         using completely buffered I/O.   If this environment variable is\r
2166         not set, git will choose buffered or record-oriented flushing\r
2167         based on whether stdout appears to be redirected to a file or not.\r
2168 </simpara>\r
2169 </listitem>\r
2170 </varlistentry>\r
2171 <varlistentry>\r
2172 <term>\r
2173 <emphasis>GIT_TRACE</emphasis>\r
2174 </term>\r
2175 <listitem>\r
2176 <simpara>\r
2177         If this variable is set to "1", "2" or "true" (comparison\r
2178         is case insensitive), git will print <emphasis>trace:</emphasis> messages on\r
2179         stderr telling about alias expansion, built-in command\r
2180         execution and external command execution.\r
2181         If this variable is set to an integer value greater than 1\r
2182         and lower than 10 (strictly) then git will interpret this\r
2183         value as an open file descriptor and will try to write the\r
2184         trace messages into this file descriptor.\r
2185         Alternatively, if this variable is set to an absolute path\r
2186         (starting with a <emphasis>/</emphasis> character), git will interpret this\r
2187         as a file path and will try to write the trace messages\r
2188         into it.\r
2189 </simpara>\r
2190 </listitem>\r
2191 </varlistentry>\r
2192 </variablelist>\r
2193 </section>\r
2194 </simplesect>\r
2195 <simplesect id="git(1)__discussion_anchor_id_git_1__discussion_xreflabel_discussion">\r
2196 <title>Discussion<anchor id="git(1)_Discussion" xreflabel="[Discussion]"/></title>\r
2197 <simpara>More detail on the following is available from the\r
2198 <link linkend="git-concepts">git concepts chapter of the\r
2199 user-manual</link> and <xref linkend="gitcore-tutorial(7)" />.</simpara>\r
2200 <simpara>A git project normally consists of a working directory with a ".git"\r
2201 subdirectory at the top level.  The .git directory contains, among other\r
2202 things, a compressed object database representing the complete history\r
2203 of the project, an "index" file which links that history to the current\r
2204 contents of the working tree, and named pointers into that history such\r
2205 as tags and branch heads.</simpara>\r
2206 <simpara>The object database contains objects of three main types: blobs, which\r
2207 hold file data; trees, which point to blobs and other trees to build up\r
2208 directory hierarchies; and commits, which each reference a single tree\r
2209 and some number of parent commits.</simpara>\r
2210 <simpara>The commit, equivalent to what other systems call a "changeset" or\r
2211 "version", represents a step in the project's history, and each parent\r
2212 represents an immediately preceding step.  Commits with more than one\r
2213 parent represent merges of independent lines of development.</simpara>\r
2214 <simpara>All objects are named by the SHA1 hash of their contents, normally\r
2215 written as a string of 40 hex digits.  Such names are globally unique.\r
2216 The entire history leading up to a commit can be vouched for by signing\r
2217 just that commit.  A fourth object type, the tag, is provided for this\r
2218 purpose.</simpara>\r
2219 <simpara>When first created, objects are stored in individual files, but for\r
2220 efficiency may later be compressed together into "pack files".</simpara>\r
2221 <simpara>Named pointers called refs mark interesting points in history.  A ref\r
2222 may contain the SHA1 name of an object or the name of another ref.  Refs\r
2223 with names beginning <emphasis>ref/head/</emphasis> contain the SHA1 name of the most\r
2224 recent commit (or "head") of a branch under development.  SHA1 names of\r
2225 tags of interest are stored under <emphasis>ref/tags/</emphasis>.  A special ref named\r
2226 <emphasis>HEAD</emphasis> contains the name of the currently checked-out branch.</simpara>\r
2227 <simpara>The index file is initialized with a list of all paths and, for each\r
2228 path, a blob object and a set of attributes.  The blob object represents\r
2229 the contents of the file as of the head of the current branch.  The\r
2230 attributes (last modified time, size, etc.) are taken from the\r
2231 corresponding file in the working tree.  Subsequent changes to the\r
2232 working tree can be found by comparing these attributes.  The index may\r
2233 be updated with new content, and new commits may be created from the\r
2234 content stored in the index.</simpara>\r
2235 <simpara>The index is also capable of storing multiple entries (called "stages")\r
2236 for a given pathname.  These stages are used to hold the various\r
2237 unmerged version of a file when a merge is in progress.</simpara>\r
2238 </simplesect>\r
2239 <simplesect id="git(1)__further_documentation">\r
2240 <title>FURTHER DOCUMENTATION</title>\r
2241 <simpara>See the references in the "description" section to get started\r
2242 using git.  The following is probably more detail than necessary\r
2243 for a first-time user.</simpara>\r
2244 <simpara>The <link linkend="git-concepts">git concepts chapter of the\r
2245 user-manual</link> and <xref linkend="gitcore-tutorial(7)" /> both provide\r
2246 introductions to the underlying git architecture.</simpara>\r
2247 <simpara>See <xref linkend="gitworkflows(7)" /> for an overview of recommended workflows.</simpara>\r
2248 <simpara>See also the link:howto-index.html[howto] documents for some useful\r
2249 examples.</simpara>\r
2250 <simpara>The internals are documented in the\r
2251 link:technical/api-index.html[GIT API documentation].</simpara>\r
2252 <simpara>Users migrating from CVS may also want to\r
2253 read <xref linkend="gitcvs-migration(7)" />.</simpara>\r
2254 </simplesect>\r
2255 <simplesect id="git(1)__authors">\r
2256 <title>Authors</title>\r
2257 <simpara>Git was started by Linus Torvalds, and is currently maintained by Junio\r
2258 C Hamano. Numerous contributions have come from the git mailing list\r
2259 &lt;<ulink url="mailto:git@vger.kernel.org">git@vger.kernel.org</ulink>&gt;.  <ulink url="http://www.ohloh.net/p/git/contributors/summary">http://www.ohloh.net/p/git/contributors/summary</ulink>\r
2260 gives you a more complete list of contributors.</simpara>\r
2261 <simpara>If you have a clone of git.git itself, the\r
2262 output of <xref linkend="git-shortlog(1)" /> and <xref linkend="git-blame(1)" /> can show you\r
2263 the authors for specific parts of the project.</simpara>\r
2264 </simplesect>\r
2265 <simplesect id="git(1)__reporting_bugs">\r
2266 <title>Reporting Bugs</title>\r
2267 <simpara>Report bugs to the Git mailing list &lt;<ulink url="mailto:git@vger.kernel.org">git@vger.kernel.org</ulink>&gt; where the\r
2268 development and maintenance is primarily done.  You do not have to be\r
2269 subscribed to the list to send a message there.</simpara>\r
2270 </simplesect>\r
2271 <simplesect id="git(1)__see_also">\r
2272 <title>SEE ALSO</title>\r
2273 <simpara><xref linkend="gittutorial(7)" />, <xref linkend="gittutorial-2(7)" />,\r
2274 link:everyday.html[Everyday Git], <xref linkend="gitcvs-migration(7)" />,\r
2275 <xref linkend="gitglossary(7)" />, <xref linkend="gitcore-tutorial(7)" />,\r
2276 <xref linkend="gitcli(7)" />, link:user-manual.html[The Git User's Manual],\r
2277 <xref linkend="gitworkflows(7)" /></simpara>\r
2278 </simplesect>\r
2279 <simplesect id="git(1)__git">\r
2280 <title>GIT</title>\r
2281 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>\r
2282 </simplesect>\r
2283 </sect2>\r