blob: 3954b10fefd9678d5ce62c4a191ee16471cb436c [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Junio C Hamanod32738e2008-07-09 19:53:426<meta name="generator" content="AsciiDoc 8.2.5" />
Junio C Hamano1a4e8412005-12-27 08:17:237<style type="text/css">
8/* Debug borders */
9p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
10/*
11 border: 1px solid red;
12*/
13}
14
15body {
16 margin: 1em 5% 1em 5%;
17}
18
Junio C Hamanod32738e2008-07-09 19:53:4219a {
20 color: blue;
21 text-decoration: underline;
22}
23a:visited {
24 color: fuchsia;
25}
Junio C Hamano1a4e8412005-12-27 08:17:2326
27em {
28 font-style: italic;
29}
30
31strong {
32 font-weight: bold;
33}
34
35tt {
36 color: navy;
37}
38
39h1, h2, h3, h4, h5, h6 {
40 color: #527bbd;
41 font-family: sans-serif;
42 margin-top: 1.2em;
43 margin-bottom: 0.5em;
44 line-height: 1.3;
45}
46
Junio C Hamanod32738e2008-07-09 19:53:4247h1, h2, h3 {
Junio C Hamano1a4e8412005-12-27 08:17:2348 border-bottom: 2px solid silver;
49}
50h2 {
Junio C Hamano1a4e8412005-12-27 08:17:2351 padding-top: 0.5em;
52}
Junio C Hamanod32738e2008-07-09 19:53:4253h3 {
54 float: left;
55}
56h3 + * {
57 clear: left;
58}
Junio C Hamano1a4e8412005-12-27 08:17:2359
60div.sectionbody {
61 font-family: serif;
62 margin-left: 0;
63}
64
65hr {
66 border: 1px solid silver;
67}
68
69p {
70 margin-top: 0.5em;
71 margin-bottom: 0.5em;
72}
73
74pre {
75 padding: 0;
76 margin: 0;
77}
78
79span#author {
80 color: #527bbd;
81 font-family: sans-serif;
82 font-weight: bold;
Junio C Hamanod32738e2008-07-09 19:53:4283 font-size: 1.1em;
Junio C Hamano1a4e8412005-12-27 08:17:2384}
85span#email {
86}
87span#revision {
88 font-family: sans-serif;
89}
90
91div#footer {
92 font-family: sans-serif;
93 font-size: small;
94 border-top: 2px solid silver;
95 padding-top: 0.5em;
96 margin-top: 4.0em;
97}
98div#footer-text {
99 float: left;
100 padding-bottom: 0.5em;
101}
102div#footer-badges {
103 float: right;
104 padding-bottom: 0.5em;
105}
106
107div#preamble,
108div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
109div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
110div.admonitionblock {
111 margin-right: 10%;
112 margin-top: 1.5em;
113 margin-bottom: 1.5em;
114}
115div.admonitionblock {
116 margin-top: 2.5em;
117 margin-bottom: 2.5em;
118}
119
120div.content { /* Block element content. */
121 padding: 0;
122}
123
124/* Block element titles. */
125div.title, caption.title {
126 font-family: sans-serif;
127 font-weight: bold;
128 text-align: left;
129 margin-top: 1.0em;
130 margin-bottom: 0.5em;
131}
132div.title + * {
133 margin-top: 0;
134}
135
136td div.title:first-child {
137 margin-top: 0.0em;
138}
139div.content div.title:first-child {
140 margin-top: 0.0em;
141}
142div.content + div.title {
143 margin-top: 0.0em;
144}
145
146div.sidebarblock > div.content {
147 background: #ffffee;
148 border: 1px solid silver;
149 padding: 0.5em;
150}
151
Junio C Hamanod32738e2008-07-09 19:53:42152div.listingblock {
153 margin-right: 0%;
154}
Junio C Hamano1a4e8412005-12-27 08:17:23155div.listingblock > div.content {
156 border: 1px solid silver;
157 background: #f4f4f4;
158 padding: 0.5em;
159}
160
161div.quoteblock > div.content {
162 padding-left: 2.0em;
163}
Junio C Hamanod32738e2008-07-09 19:53:42164
165div.attribution {
Junio C Hamano1a4e8412005-12-27 08:17:23166 text-align: right;
167}
Junio C Hamanod32738e2008-07-09 19:53:42168div.verseblock + div.attribution {
169 text-align: left;
170}
Junio C Hamano1a4e8412005-12-27 08:17:23171
172div.admonitionblock .icon {
173 vertical-align: top;
174 font-size: 1.1em;
175 font-weight: bold;
176 text-decoration: underline;
177 color: #527bbd;
178 padding-right: 0.5em;
179}
180div.admonitionblock td.content {
181 padding-left: 0.5em;
182 border-left: 2px solid silver;
183}
184
185div.exampleblock > div.content {
186 border-left: 2px solid silver;
187 padding: 0.5em;
188}
189
190div.verseblock div.content {
191 white-space: pre;
192}
193
194div.imageblock div.content { padding-left: 0; }
195div.imageblock img { border: 1px solid silver; }
196span.image img { border-style: none; }
197
198dl {
199 margin-top: 0.8em;
200 margin-bottom: 0.8em;
201}
202dt {
203 margin-top: 0.5em;
204 margin-bottom: 0;
205 font-style: italic;
206}
207dd > *:first-child {
208 margin-top: 0;
209}
210
211ul, ol {
212 list-style-position: outside;
213}
Junio C Hamanod32738e2008-07-09 19:53:42214div.olist2 ol {
Junio C Hamano1a4e8412005-12-27 08:17:23215 list-style-type: lower-alpha;
216}
217
218div.tableblock > table {
Junio C Hamanod32738e2008-07-09 19:53:42219 border: 3px solid #527bbd;
Junio C Hamano1a4e8412005-12-27 08:17:23220}
221thead {
222 font-family: sans-serif;
223 font-weight: bold;
224}
225tfoot {
226 font-weight: bold;
227}
228
229div.hlist {
230 margin-top: 0.8em;
231 margin-bottom: 0.8em;
232}
Junio C Hamanod32738e2008-07-09 19:53:42233div.hlist td {
234 padding-bottom: 5px;
235}
Junio C Hamano1a4e8412005-12-27 08:17:23236td.hlist1 {
237 vertical-align: top;
238 font-style: italic;
239 padding-right: 0.8em;
240}
241td.hlist2 {
242 vertical-align: top;
243}
244
245@media print {
246 div#footer-badges { display: none; }
247}
Junio C Hamanod32738e2008-07-09 19:53:42248
249div#toctitle {
250 color: #527bbd;
251 font-family: sans-serif;
252 font-size: 1.1em;
253 font-weight: bold;
254 margin-top: 1.0em;
255 margin-bottom: 0.1em;
256}
257
258div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
259 margin-top: 0;
260 margin-bottom: 0;
261}
262div.toclevel2 {
263 margin-left: 2em;
264 font-size: 0.9em;
265}
266div.toclevel3 {
267 margin-left: 4em;
268 font-size: 0.9em;
269}
270div.toclevel4 {
271 margin-left: 6em;
272 font-size: 0.9em;
273}
274include1::./stylesheets/xhtml11-manpage.css[]
Junio C Hamano1a4e8412005-12-27 08:17:23275/* Workarounds for IE6's broken and incomplete CSS2. */
276
277div.sidebar-content {
278 background: #ffffee;
279 border: 1px solid silver;
280 padding: 0.5em;
281}
282div.sidebar-title, div.image-title {
283 font-family: sans-serif;
284 font-weight: bold;
285 margin-top: 0.0em;
286 margin-bottom: 0.5em;
287}
288
289div.listingblock div.content {
290 border: 1px solid silver;
291 background: #f4f4f4;
292 padding: 0.5em;
293}
294
295div.quoteblock-content {
296 padding-left: 2.0em;
297}
298
299div.exampleblock-content {
300 border-left: 2px solid silver;
301 padding-left: 0.5em;
302}
Junio C Hamanod32738e2008-07-09 19:53:42303
304/* IE6 sets dynamically generated links as visited. */
305div#toc a:visited { color: blue; }
Junio C Hamano1a4e8412005-12-27 08:17:23306</style>
Junio C Hamano9e1793f2008-06-02 07:31:16307<title>gitglossary(7)</title>
Junio C Hamano1a4e8412005-12-27 08:17:23308</head>
309<body>
310<div id="header">
Junio C Hamano9e1793f2008-06-02 07:31:16311<h1>
312gitglossary(7) Manual Page
313</h1>
314<h2>NAME</h2>
315<div class="sectionbody">
316<p>gitglossary -
317 A GIT Glossary
318</p>
Junio C Hamano1a4e8412005-12-27 08:17:23319</div>
Junio C Hamano9e1793f2008-06-02 07:31:16320</div>
321<h2>SYNOPSIS</h2>
322<div class="sectionbody">
Junio C Hamanod32738e2008-07-09 19:53:42323<div class="para"><p>*</p></div>
Junio C Hamano9e1793f2008-06-02 07:31:16324</div>
Junio C Hamanod32738e2008-07-09 19:53:42325<h2 id="_description">DESCRIPTION</h2>
Junio C Hamano1a4e8412005-12-27 08:17:23326<div class="sectionbody">
Junio C Hamanod32738e2008-07-09 19:53:42327<div class="vlist"><dl>
Junio C Hamano1a4e8412005-12-27 08:17:23328<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41329<a id="def_alternate_object_database"></a>alternate object database
Junio C Hamano1a4e8412005-12-27 08:17:23330</dt>
331<dd>
332<p>
Junio C Hamano75485c82007-05-19 04:20:33333 Via the alternates mechanism, a <a href="#def_repository">repository</a>
334 can inherit part of its <a href="#def_object_database">object database</a>
335 from another object database, which is called "alternate".
Junio C Hamano1a4e8412005-12-27 08:17:23336</p>
337</dd>
338<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41339<a id="def_bare_repository"></a>bare repository
Junio C Hamano88a3a072006-05-04 08:01:43340</dt>
341<dd>
342<p>
Junio C Hamano75485c82007-05-19 04:20:33343 A bare repository is normally an appropriately
Junio C Hamano3d5b41f2007-03-26 02:33:41344 named <a href="#def_directory">directory</a> with a <tt>.git</tt> suffix that does not
Junio C Hamano88a3a072006-05-04 08:01:43345 have a locally checked-out copy of any of the files under
Junio C Hamano36460982007-05-27 04:29:12346 revision control. That is, all of the <tt>git</tt>
Junio C Hamano88a3a072006-05-04 08:01:43347 administrative and control files that would normally be present in the
Junio C Hamanoc51fede2007-03-12 07:29:20348 hidden <tt>.git</tt> sub-directory are directly present in the
Junio C Hamano3d5b41f2007-03-26 02:33:41349 <tt>repository.git</tt> directory instead,
Junio C Hamanoc51fede2007-03-12 07:29:20350 and no other files are present and checked out. Usually publishers of
351 public repositories make bare repositories available.
Junio C Hamano88a3a072006-05-04 08:01:43352</p>
353</dd>
354<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41355<a id="def_blob_object"></a>blob object
Junio C Hamano1a4e8412005-12-27 08:17:23356</dt>
357<dd>
358<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41359 Untyped <a href="#def_object">object</a>, e.g. the contents of a file.
Junio C Hamano1a4e8412005-12-27 08:17:23360</p>
361</dd>
362<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41363<a id="def_branch"></a>branch
Junio C Hamano1a4e8412005-12-27 08:17:23364</dt>
365<dd>
366<p>
Junio C Hamano75485c82007-05-19 04:20:33367 A "branch" is an active line of development. The most recent
368 <a href="#def_commit">commit</a> on a branch is referred to as the tip of
369 that branch. The tip of the branch is referenced by a branch
370 <a href="#def_head">head</a>, which moves forward as additional development
371 is done on the branch. A single git
372 <a href="#def_repository">repository</a> can track an arbitrary number of
373 branches, but your <a href="#def_working_tree">working tree</a> is
374 associated with just one of them (the "current" or "checked out"
375 branch), and <a href="#def_HEAD">HEAD</a> points to that branch.
Junio C Hamano1a4e8412005-12-27 08:17:23376</p>
377</dd>
378<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41379<a id="def_cache"></a>cache
Junio C Hamano1a4e8412005-12-27 08:17:23380</dt>
381<dd>
382<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41383 Obsolete for: <a href="#def_index">index</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23384</p>
385</dd>
386<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41387<a id="def_chain"></a>chain
Junio C Hamano1a4e8412005-12-27 08:17:23388</dt>
389<dd>
390<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41391 A list of objects, where each <a href="#def_object">object</a> in the list contains
Junio C Hamano1a4e8412005-12-27 08:17:23392 a reference to its successor (for example, the successor of a
Junio C Hamano36460982007-05-27 04:29:12393 <a href="#def_commit">commit</a> could be one of its <a href="#def_parent">parents</a>).
Junio C Hamano1a4e8412005-12-27 08:17:23394</p>
395</dd>
396<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41397<a id="def_changeset"></a>changeset
Junio C Hamano1a4e8412005-12-27 08:17:23398</dt>
399<dd>
400<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41401 BitKeeper/cvsps speak for "<a href="#def_commit">commit</a>". Since git does not
Junio C Hamano1a4e8412005-12-27 08:17:23402 store changes, but states, it really does not make sense to use the term
403 "changesets" with git.
404</p>
405</dd>
406<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41407<a id="def_checkout"></a>checkout
Junio C Hamano1a4e8412005-12-27 08:17:23408</dt>
409<dd>
410<p>
Junio C Hamanoa14a4032008-03-25 09:11:02411 The action of updating all or part of the
412 <a href="#def_working_tree">working tree</a> with a <a href="#def_tree_object">tree object</a>
413 or <a href="#def_blob_object">blob</a> from the
414 <a href="#def_object_database">object database</a>, and updating the
415 <a href="#def_index">index</a> and <a href="#def_HEAD">HEAD</a> if the whole working tree has
416 been pointed at a new <a href="#def_branch">branch</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23417</p>
418</dd>
419<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41420<a id="def_cherry-picking"></a>cherry-picking
Junio C Hamano88a3a072006-05-04 08:01:43421</dt>
422<dd>
423<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41424 In <a href="#def_SCM">SCM</a> jargon, "cherry pick" means to choose a subset of
Junio C Hamano88a3a072006-05-04 08:01:43425 changes out of a series of changes (typically commits) and record them
Junio C Hamano764a6672007-10-23 01:23:31426 as a new series of changes on top of a different codebase. In GIT, this is
427 performed by the "git cherry-pick" command to extract the change introduced
Junio C Hamano3d5b41f2007-03-26 02:33:41428 by an existing <a href="#def_commit">commit</a> and to record it based on the tip
Junio C Hamano75485c82007-05-19 04:20:33429 of the current <a href="#def_branch">branch</a> as a new commit.
Junio C Hamano88a3a072006-05-04 08:01:43430</p>
431</dd>
432<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41433<a id="def_clean"></a>clean
Junio C Hamano1a4e8412005-12-27 08:17:23434</dt>
435<dd>
436<p>
Junio C Hamano75485c82007-05-19 04:20:33437 A <a href="#def_working_tree">working tree</a> is clean, if it
Junio C Hamano3d5b41f2007-03-26 02:33:41438 corresponds to the <a href="#def_revision">revision</a> referenced by the current
439 <a href="#def_head">head</a>. Also see "<a href="#def_dirty">dirty</a>".
Junio C Hamano1a4e8412005-12-27 08:17:23440</p>
441</dd>
442<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41443<a id="def_commit"></a>commit
Junio C Hamano1a4e8412005-12-27 08:17:23444</dt>
445<dd>
446<p>
Junio C Hamano75485c82007-05-19 04:20:33447 As a noun: A single point in the
448 git history; the entire history of a project is represented as a
449 set of interrelated commits. The word "commit" is often
450 used by git in the same places other revision control systems
451 use the words "revision" or "version". Also used as a short
452 hand for <a href="#def_commit_object">commit object</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23453</p>
Junio C Hamanod32738e2008-07-09 19:53:42454<div class="para"><p>As a verb: The action of storing a new snapshot of the project's
Junio C Hamano75485c82007-05-19 04:20:33455state in the git history, by creating a new commit representing the current
456state of the <a href="#def_index">index</a> and advancing <a href="#def_HEAD">HEAD</a>
Junio C Hamanod32738e2008-07-09 19:53:42457to point at the new commit.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:23458</dd>
459<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41460<a id="def_commit_object"></a>commit object
Junio C Hamano1a4e8412005-12-27 08:17:23461</dt>
462<dd>
463<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41464 An <a href="#def_object">object</a> which contains the information about a
Junio C Hamano36460982007-05-27 04:29:12465 particular <a href="#def_revision">revision</a>, such as <a href="#def_parent">parents</a>, committer,
Junio C Hamano3d5b41f2007-03-26 02:33:41466 author, date and the <a href="#def_tree_object">tree object</a> which corresponds
467 to the top <a href="#def_directory">directory</a> of the stored
Junio C Hamano36460982007-05-27 04:29:12468 revision.
Junio C Hamano1a4e8412005-12-27 08:17:23469</p>
470</dd>
471<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41472<a id="def_core_git"></a>core git
Junio C Hamano1a4e8412005-12-27 08:17:23473</dt>
474<dd>
475<p>
476 Fundamental data structures and utilities of git. Exposes only limited
477 source code management tools.
478</p>
479</dd>
480<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41481<a id="def_DAG"></a>DAG
Junio C Hamano1a4e8412005-12-27 08:17:23482</dt>
483<dd>
484<p>
Junio C Hamano9e1793f2008-06-02 07:31:16485 Directed acyclic graph. The <a href="#def_commit_object">commit objects</a> form a
Junio C Hamano1a4e8412005-12-27 08:17:23486 directed acyclic graph, because they have parents (directed), and the
Junio C Hamano9e1793f2008-06-02 07:31:16487 graph of commit objects is acyclic (there is no <a href="#def_chain">chain</a>
488 which begins and ends with the same <a href="#def_object">object</a>).
Junio C Hamano1a4e8412005-12-27 08:17:23489</p>
490</dd>
491<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41492<a id="def_dangling_object"></a>dangling object
Junio C Hamanoaa83a7d2007-03-05 02:37:29493</dt>
494<dd>
495<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41496 An <a href="#def_unreachable_object">unreachable object</a> which is not
497 <a href="#def_reachable">reachable</a> even from other unreachable objects; a
Junio C Hamano75485c82007-05-19 04:20:33498 dangling object has no references to it from any
Junio C Hamano3d5b41f2007-03-26 02:33:41499 reference or <a href="#def_object">object</a> in the <a href="#def_repository">repository</a>.
Junio C Hamanoaa83a7d2007-03-05 02:37:29500</p>
501</dd>
502<dt>
Junio C Hamano75485c82007-05-19 04:20:33503<a id="def_detached_HEAD"></a>detached HEAD
504</dt>
505<dd>
506<p>
507 Normally the <a href="#def_HEAD">HEAD</a> stores the name of a
Junio C Hamano36460982007-05-27 04:29:12508 <a href="#def_branch">branch</a>. However, git also allows you to <a href="#def_checkout">check out</a>
509 an arbitrary <a href="#def_commit">commit</a> that isn't necessarily the tip of any
Junio C Hamano75485c82007-05-19 04:20:33510 particular branch. In this case HEAD is said to be "detached".
511</p>
512</dd>
513<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41514<a id="def_dircache"></a>dircache
Junio C Hamano1a4e8412005-12-27 08:17:23515</dt>
516<dd>
517<p>
Junio C Hamano36460982007-05-27 04:29:12518 You are <strong>waaaaay</strong> behind. See <a href="#def_index">index</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23519</p>
520</dd>
521<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41522<a id="def_directory"></a>directory
Junio C Hamano1a4e8412005-12-27 08:17:23523</dt>
524<dd>
525<p>
526 The list you get with "ls" :-)
527</p>
528</dd>
529<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41530<a id="def_dirty"></a>dirty
Junio C Hamano1a4e8412005-12-27 08:17:23531</dt>
532<dd>
533<p>
Junio C Hamano75485c82007-05-19 04:20:33534 A <a href="#def_working_tree">working tree</a> is said to be "dirty" if
Junio C Hamano36460982007-05-27 04:29:12535 it contains modifications which have not been <a href="#def_commit">committed</a> to the current
Junio C Hamano3d5b41f2007-03-26 02:33:41536 <a href="#def_branch">branch</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23537</p>
538</dd>
539<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41540<a id="def_ent"></a>ent
Junio C Hamano1a4e8412005-12-27 08:17:23541</dt>
542<dd>
543<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41544 Favorite synonym to "<a href="#def_tree-ish">tree-ish</a>" by some total geeks. See
Junio C Hamano1a4e8412005-12-27 08:17:23545 <tt>http://en.wikipedia.org/wiki/Ent_(Middle-earth)</tt> for an in-depth
Junio C Hamano51c2ab02006-07-09 20:38:54546 explanation. Avoid this term, not to confuse people.
Junio C Hamano1a4e8412005-12-27 08:17:23547</p>
548</dd>
549<dt>
Junio C Hamano36460982007-05-27 04:29:12550<a id="def_evil_merge"></a>evil merge
551</dt>
552<dd>
553<p>
554 An evil merge is a <a href="#def_merge">merge</a> that introduces changes that
555 do not appear in any <a href="#def_parent">parent</a>.
556</p>
557</dd>
558<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41559<a id="def_fast_forward"></a>fast forward
Junio C Hamano88a3a072006-05-04 08:01:43560</dt>
561<dd>
562<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41563 A fast-forward is a special type of <a href="#def_merge">merge</a> where you have a
564 <a href="#def_revision">revision</a> and you are "merging" another
565 <a href="#def_branch">branch</a>'s changes that happen to be a descendant of what
566 you have. In such these cases, you do not make a new <a href="#def_merge">merge</a>
567 <a href="#def_commit">commit</a> but instead just update to his
Junio C Hamano75485c82007-05-19 04:20:33568 revision. This will happen frequently on a
Junio C Hamano3d5b41f2007-03-26 02:33:41569 <a href="#def_tracking_branch">tracking branch</a> of a remote
570 <a href="#def_repository">repository</a>.
Junio C Hamano88a3a072006-05-04 08:01:43571</p>
572</dd>
573<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41574<a id="def_fetch"></a>fetch
Junio C Hamano1a4e8412005-12-27 08:17:23575</dt>
576<dd>
577<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41578 Fetching a <a href="#def_branch">branch</a> means to get the
Junio C Hamano75485c82007-05-19 04:20:33579 branch's <a href="#def_head_ref">head ref</a> from a remote
580 <a href="#def_repository">repository</a>, to find out which objects are
581 missing from the local <a href="#def_object_database">object database</a>,
582 and to get them, too. See also <a href="git-fetch.html">git-fetch(1)</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23583</p>
584</dd>
585<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41586<a id="def_file_system"></a>file system
Junio C Hamano1a4e8412005-12-27 08:17:23587</dt>
588<dd>
589<p>
590 Linus Torvalds originally designed git to be a user space file system,
591 i.e. the infrastructure to hold files and directories. That ensured the
592 efficiency and speed of git.
593</p>
594</dd>
595<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41596<a id="def_git_archive"></a>git archive
Junio C Hamano1a4e8412005-12-27 08:17:23597</dt>
598<dd>
599<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41600 Synonym for <a href="#def_repository">repository</a> (for arch people).
Junio C Hamano1a4e8412005-12-27 08:17:23601</p>
602</dd>
603<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41604<a id="def_grafts"></a>grafts
Junio C Hamano33db4372006-06-07 19:51:45605</dt>
606<dd>
607<p>
608 Grafts enables two otherwise different lines of development to be joined
609 together by recording fake ancestry information for commits. This way
Junio C Hamano36460982007-05-27 04:29:12610 you can make git pretend the set of <a href="#def_parent">parents</a> a <a href="#def_commit">commit</a> has
Junio C Hamano75485c82007-05-19 04:20:33611 is different from what was recorded when the commit was
Junio C Hamano3d5b41f2007-03-26 02:33:41612 created. Configured via the <tt>.git/info/grafts</tt> file.
Junio C Hamano33db4372006-06-07 19:51:45613</p>
614</dd>
615<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41616<a id="def_hash"></a>hash
Junio C Hamano1a4e8412005-12-27 08:17:23617</dt>
618<dd>
619<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41620 In git's context, synonym to <a href="#def_object_name">object name</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23621</p>
622</dd>
623<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41624<a id="def_head"></a>head
Junio C Hamano1a4e8412005-12-27 08:17:23625</dt>
626<dd>
627<p>
Junio C Hamano36460982007-05-27 04:29:12628 A <a href="#def_ref">named reference</a> to the <a href="#def_commit">commit</a> at the tip of a
Junio C Hamano75485c82007-05-19 04:20:33629 <a href="#def_branch">branch</a>. Heads are stored in
630 <tt>$GIT_DIR/refs/heads/</tt>, except when using packed refs. (See
631 <a href="git-pack-refs.html">git-pack-refs(1)</a>.)
632</p>
633</dd>
634<dt>
635<a id="def_HEAD"></a>HEAD
636</dt>
637<dd>
638<p>
Junio C Hamano36460982007-05-27 04:29:12639 The current <a href="#def_branch">branch</a>. In more detail: Your <a href="#def_working_tree">working tree</a> is normally derived from the state of the tree
Junio C Hamano75485c82007-05-19 04:20:33640 referred to by HEAD. HEAD is a reference to one of the
641 <a href="#def_head">heads</a> in your repository, except when using a
642 <a href="#def_detached_HEAD">detached HEAD</a>, in which case it may
643 reference an arbitrary commit.
Junio C Hamano1a4e8412005-12-27 08:17:23644</p>
645</dd>
646<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41647<a id="def_head_ref"></a>head ref
Junio C Hamano1a4e8412005-12-27 08:17:23648</dt>
649<dd>
650<p>
Junio C Hamano75485c82007-05-19 04:20:33651 A synonym for <a href="#def_head">head</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23652</p>
653</dd>
654<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41655<a id="def_hook"></a>hook
Junio C Hamano88a3a072006-05-04 08:01:43656</dt>
657<dd>
658<p>
659 During the normal execution of several git commands, call-outs are made
660 to optional scripts that allow a developer to add functionality or
661 checking. Typically, the hooks allow for a command to be pre-verified
662 and potentially aborted, and allow for a post-notification after the
Junio C Hamano75485c82007-05-19 04:20:33663 operation is done. The hook scripts are found in the
Junio C Hamano36460982007-05-27 04:29:12664 <tt>$GIT_DIR/hooks/</tt> directory, and are enabled by simply
Junio C Hamano88a3a072006-05-04 08:01:43665 making them executable.
666</p>
667</dd>
668<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41669<a id="def_index"></a>index
Junio C Hamano1a4e8412005-12-27 08:17:23670</dt>
671<dd>
672<p>
673 A collection of files with stat information, whose contents are stored
Junio C Hamano36460982007-05-27 04:29:12674 as objects. The index is a stored version of your
675 <a href="#def_working_tree">working tree</a>. Truth be told, it can also contain a second, and even
676 a third version of a working tree, which are used
677 when <a href="#def_merge">merging</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23678</p>
679</dd>
680<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41681<a id="def_index_entry"></a>index entry
Junio C Hamano1a4e8412005-12-27 08:17:23682</dt>
683<dd>
684<p>
685 The information regarding a particular file, stored in the
Junio C Hamano75485c82007-05-19 04:20:33686 <a href="#def_index">index</a>. An index entry can be unmerged, if a
687 <a href="#def_merge">merge</a> was started, but not yet finished (i.e. if
688 the index contains multiple versions of that file).
Junio C Hamano1a4e8412005-12-27 08:17:23689</p>
690</dd>
691<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41692<a id="def_master"></a>master
Junio C Hamanof3e80c02006-01-11 00:54:55693</dt>
694<dd>
695<p>
Junio C Hamano75485c82007-05-19 04:20:33696 The default development <a href="#def_branch">branch</a>. Whenever you
697 create a git <a href="#def_repository">repository</a>, a branch named
698 "master" is created, and becomes the active branch. In most
699 cases, this contains the local development, though that is
700 purely by convention and is not required.
Junio C Hamanof3e80c02006-01-11 00:54:55701</p>
702</dd>
703<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41704<a id="def_merge"></a>merge
Junio C Hamano1a4e8412005-12-27 08:17:23705</dt>
706<dd>
707<p>
Junio C Hamano75485c82007-05-19 04:20:33708 As a verb: To bring the contents of another
709 <a href="#def_branch">branch</a> (possibly from an external
710 <a href="#def_repository">repository</a>) into the current branch. In the
711 case where the merged-in branch is from a different repository,
712 this is done by first <a href="#def_fetch">fetching</a> the remote branch
713 and then merging the result into the current branch. This
714 combination of fetch and merge operations is called a
715 <a href="#def_pull">pull</a>. Merging is performed by an automatic process
716 that identifies changes made since the branches diverged, and
717 then applies all those changes together. In cases where changes
718 conflict, manual intervention may be required to complete the
719 merge.
Junio C Hamano1a4e8412005-12-27 08:17:23720</p>
Junio C Hamanod32738e2008-07-09 19:53:42721<div class="para"><p>As a noun: unless it is a <a href="#def_fast_forward">fast forward</a>, a
Junio C Hamano75485c82007-05-19 04:20:33722successful merge results in the creation of a new <a href="#def_commit">commit</a>
723representing the result of the merge, and having as
724<a href="#def_parent">parents</a> the tips of the merged <a href="#def_branch">branches</a>.
725This commit is referred to as a "merge commit", or sometimes just a
Junio C Hamanod32738e2008-07-09 19:53:42726"merge".</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:23727</dd>
728<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41729<a id="def_object"></a>object
Junio C Hamano1a4e8412005-12-27 08:17:23730</dt>
731<dd>
732<p>
733 The unit of storage in git. It is uniquely identified by the
Junio C Hamano3d5b41f2007-03-26 02:33:41734 <a href="#def_SHA1">SHA1</a> of its contents. Consequently, an
Junio C Hamano75485c82007-05-19 04:20:33735 object can not be changed.
Junio C Hamano1a4e8412005-12-27 08:17:23736</p>
737</dd>
738<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41739<a id="def_object_database"></a>object database
Junio C Hamano1a4e8412005-12-27 08:17:23740</dt>
741<dd>
742<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41743 Stores a set of "objects", and an individual <a href="#def_object">object</a> is
744 identified by its <a href="#def_object_name">object name</a>. The objects usually
Junio C Hamano1a4e8412005-12-27 08:17:23745 live in <tt>$GIT_DIR/objects/</tt>.
746</p>
747</dd>
748<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41749<a id="def_object_identifier"></a>object identifier
Junio C Hamano1a4e8412005-12-27 08:17:23750</dt>
751<dd>
752<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41753 Synonym for <a href="#def_object_name">object name</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23754</p>
755</dd>
756<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41757<a id="def_object_name"></a>object name
Junio C Hamano1a4e8412005-12-27 08:17:23758</dt>
759<dd>
760<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41761 The unique identifier of an <a href="#def_object">object</a>. The <a href="#def_hash">hash</a>
Junio C Hamano75485c82007-05-19 04:20:33762 of the object's contents using the Secure Hash Algorithm
Junio C Hamano1a4e8412005-12-27 08:17:23763 1 and usually represented by the 40 character hexadecimal encoding of
Junio C Hamano3a702342007-12-12 21:34:02764 the <a href="#def_hash">hash</a> of the object.
Junio C Hamano1a4e8412005-12-27 08:17:23765</p>
766</dd>
767<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41768<a id="def_object_type"></a>object type
Junio C Hamano21c0b422006-10-12 19:10:36769</dt>
770<dd>
771<p>
Junio C Hamano9e1793f2008-06-02 07:31:16772 One of the identifiers "<a href="#def_commit_object">commit</a>",
773 "<a href="#def_tree_object">tree</a>", "<a href="#def_tag_object">tag</a>" or
774 "<a href="#def_blob_object">blob</a>" describing the type of an
775 <a href="#def_object">object</a>.
Junio C Hamano21c0b422006-10-12 19:10:36776</p>
777</dd>
778<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41779<a id="def_octopus"></a>octopus
Junio C Hamano1a4e8412005-12-27 08:17:23780</dt>
781<dd>
782<p>
Junio C Hamano36460982007-05-27 04:29:12783 To <a href="#def_merge">merge</a> more than two <a href="#def_branch">branches</a>. Also denotes an
Junio C Hamano1a4e8412005-12-27 08:17:23784 intelligent predator.
785</p>
786</dd>
787<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41788<a id="def_origin"></a>origin
Junio C Hamanof3e80c02006-01-11 00:54:55789</dt>
790<dd>
791<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41792 The default upstream <a href="#def_repository">repository</a>. Most projects have
Junio C Hamanod3361ad2007-01-01 03:20:24793 at least one upstream project which they track. By default
Junio C Hamano75485c82007-05-19 04:20:33794 <em>origin</em> is used for that purpose. New upstream updates
Junio C Hamano36460982007-05-27 04:29:12795 will be fetched into remote <a href="#def_tracking_branch">tracking branches</a> named
Junio C Hamano3d5b41f2007-03-26 02:33:41796 origin/name-of-upstream-branch, which you can see using
Junio C Hamano36460982007-05-27 04:29:12797 "<tt>git branch -r</tt>".
Junio C Hamanof3e80c02006-01-11 00:54:55798</p>
799</dd>
800<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41801<a id="def_pack"></a>pack
Junio C Hamano1a4e8412005-12-27 08:17:23802</dt>
803<dd>
804<p>
805 A set of objects which have been compressed into one file (to save space
806 or to transmit them efficiently).
807</p>
808</dd>
809<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41810<a id="def_pack_index"></a>pack index
Junio C Hamano1a4e8412005-12-27 08:17:23811</dt>
812<dd>
813<p>
814 The list of identifiers, and other information, of the objects in a
Junio C Hamano3d5b41f2007-03-26 02:33:41815 <a href="#def_pack">pack</a>, to assist in efficiently accessing the contents of a
Junio C Hamano75485c82007-05-19 04:20:33816 pack.
Junio C Hamano1a4e8412005-12-27 08:17:23817</p>
818</dd>
819<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41820<a id="def_parent"></a>parent
Junio C Hamano1a4e8412005-12-27 08:17:23821</dt>
822<dd>
823<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41824 A <a href="#def_commit_object">commit object</a> contains a (possibly empty) list
Junio C Hamano1a4e8412005-12-27 08:17:23825 of the logical predecessor(s) in the line of development, i.e. its
826 parents.
827</p>
828</dd>
829<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41830<a id="def_pickaxe"></a>pickaxe
Junio C Hamano88a3a072006-05-04 08:01:43831</dt>
832<dd>
833<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41834 The term <a href="#def_pickaxe">pickaxe</a> refers to an option to the diffcore
Junio C Hamano88a3a072006-05-04 08:01:43835 routines that help select changes that add or delete a given text
Junio C Hamano9e1793f2008-06-02 07:31:16836 string. With the <tt>--pickaxe-all</tt> option, it can be used to view the full
Junio C Hamano3d5b41f2007-03-26 02:33:41837 <a href="#def_changeset">changeset</a> that introduced or removed, say, a
Junio C Hamanoc51fede2007-03-12 07:29:20838 particular line of text. See <a href="git-diff.html">git-diff(1)</a>.
Junio C Hamano88a3a072006-05-04 08:01:43839</p>
840</dd>
841<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41842<a id="def_plumbing"></a>plumbing
Junio C Hamano1a4e8412005-12-27 08:17:23843</dt>
844<dd>
845<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41846 Cute name for <a href="#def_core_git">core git</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23847</p>
848</dd>
849<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41850<a id="def_porcelain"></a>porcelain
Junio C Hamano1a4e8412005-12-27 08:17:23851</dt>
852<dd>
853<p>
854 Cute name for programs and program suites depending on
Junio C Hamano3d5b41f2007-03-26 02:33:41855 <a href="#def_core_git">core git</a>, presenting a high level access to
Junio C Hamano75485c82007-05-19 04:20:33856 core git. Porcelains expose more of a <a href="#def_SCM">SCM</a>
Junio C Hamano3d5b41f2007-03-26 02:33:41857 interface than the <a href="#def_plumbing">plumbing</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23858</p>
859</dd>
860<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41861<a id="def_pull"></a>pull
Junio C Hamano1a4e8412005-12-27 08:17:23862</dt>
863<dd>
864<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41865 Pulling a <a href="#def_branch">branch</a> means to <a href="#def_fetch">fetch</a> it and
Junio C Hamano75485c82007-05-19 04:20:33866 <a href="#def_merge">merge</a> it. See also <a href="git-pull.html">git-pull(1)</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23867</p>
868</dd>
869<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41870<a id="def_push"></a>push
Junio C Hamano1a4e8412005-12-27 08:17:23871</dt>
872<dd>
873<p>
Junio C Hamano75485c82007-05-19 04:20:33874 Pushing a <a href="#def_branch">branch</a> means to get the branch's
Junio C Hamano3d5b41f2007-03-26 02:33:41875 <a href="#def_head_ref">head ref</a> from a remote <a href="#def_repository">repository</a>,
Junio C Hamano764a6672007-10-23 01:23:31876 find out if it is a direct ancestor to the branch's local
877 head ref, and in that case, putting all
Junio C Hamano3d5b41f2007-03-26 02:33:41878 objects, which are <a href="#def_reachable">reachable</a> from the local
Junio C Hamano75485c82007-05-19 04:20:33879 head ref, and which are missing from the remote
880 repository, into the remote
Junio C Hamano3d5b41f2007-03-26 02:33:41881 <a href="#def_object_database">object database</a>, and updating the remote
Junio C Hamano75485c82007-05-19 04:20:33882 head ref. If the remote <a href="#def_head">head</a> is not an
883 ancestor to the local head, the push fails.
Junio C Hamano1a4e8412005-12-27 08:17:23884</p>
885</dd>
886<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41887<a id="def_reachable"></a>reachable
Junio C Hamano1a4e8412005-12-27 08:17:23888</dt>
889<dd>
890<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41891 All of the ancestors of a given <a href="#def_commit">commit</a> are said to be
Junio C Hamano75485c82007-05-19 04:20:33892 "reachable" from that commit. More
893 generally, one <a href="#def_object">object</a> is reachable from
Junio C Hamano3d5b41f2007-03-26 02:33:41894 another if we can reach the one from the other by a <a href="#def_chain">chain</a>
895 that follows <a href="#def_tag">tags</a> to whatever they tag,
896 <a href="#def_commit_object">commits</a> to their parents or trees, and
897 <a href="#def_tree_object">trees</a> to the trees or <a href="#def_blob_object">blobs</a>
898 that they contain.
Junio C Hamano1a4e8412005-12-27 08:17:23899</p>
900</dd>
901<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41902<a id="def_rebase"></a>rebase
Junio C Hamano1a4e8412005-12-27 08:17:23903</dt>
904<dd>
905<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41906 To reapply a series of changes from a <a href="#def_branch">branch</a> to a
907 different base, and reset the <a href="#def_head">head</a> of that branch
908 to the result.
Junio C Hamano1a4e8412005-12-27 08:17:23909</p>
910</dd>
911<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41912<a id="def_ref"></a>ref
Junio C Hamano1a4e8412005-12-27 08:17:23913</dt>
914<dd>
915<p>
Junio C Hamano3d5b41f2007-03-26 02:33:41916 A 40-byte hex representation of a <a href="#def_SHA1">SHA1</a> or a name that
917 denotes a particular <a href="#def_object">object</a>. These may be stored in
Junio C Hamano1a4e8412005-12-27 08:17:23918 <tt>$GIT_DIR/refs/</tt>.
919</p>
920</dd>
921<dt>
Junio C Hamanobb0f4042007-07-04 06:41:40922<a id="def_reflog"></a>reflog
923</dt>
924<dd>
925<p>
926 A reflog shows the local "history" of a ref. In other words,
Junio C Hamanod32738e2008-07-09 19:53:42927 it can tell you what the 3rd last revision in <em>this</em> repository
928 was, and what was the current state in <em>this</em> repository,
Junio C Hamanobb0f4042007-07-04 06:41:40929 yesterday 9:14pm. See <a href="git-reflog.html">git-reflog(1)</a> for details.
930</p>
931</dd>
932<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41933<a id="def_refspec"></a>refspec
Junio C Hamano88a3a072006-05-04 08:01:43934</dt>
935<dd>
936<p>
Junio C Hamano36460982007-05-27 04:29:12937 A "refspec" is used by <a href="#def_fetch">fetch</a> and
Junio C Hamano75485c82007-05-19 04:20:33938 <a href="#def_push">push</a> to describe the mapping between remote
939 <a href="#def_ref">ref</a> and local ref. They are combined with a colon in
940 the format &lt;src&gt;:&lt;dst&gt;, preceded by an optional plus sign, +.
941 For example: <tt>git fetch $URL
942 refs/heads/master:refs/heads/origin</tt> means "grab the master
943 <a href="#def_branch">branch</a> <a href="#def_head">head</a> from the $URL and store
944 it as my origin branch head". And <tt>git push
945 $URL refs/heads/master:refs/heads/to-upstream</tt> means "publish my
946 master branch head as to-upstream branch at $URL". See also
Junio C Hamano764a6672007-10-23 01:23:31947 <a href="git-push.html">git-push(1)</a>.
Junio C Hamano88a3a072006-05-04 08:01:43948</p>
949</dd>
950<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41951<a id="def_repository"></a>repository
Junio C Hamano1a4e8412005-12-27 08:17:23952</dt>
953<dd>
954<p>
Junio C Hamano36460982007-05-27 04:29:12955 A collection of <a href="#def_ref">refs</a> together with an
Junio C Hamano75485c82007-05-19 04:20:33956 <a href="#def_object_database">object database</a> containing all objects
957 which are <a href="#def_reachable">reachable</a> from the refs, possibly
Junio C Hamano36460982007-05-27 04:29:12958 accompanied by meta data from one or more <a href="#def_porcelain">porcelains</a>. A
959 repository can share an object database with other repositories
960 via <a href="#def_alternate_object_database">alternates mechanism</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23961</p>
962</dd>
963<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41964<a id="def_resolve"></a>resolve
Junio C Hamano1a4e8412005-12-27 08:17:23965</dt>
966<dd>
967<p>
968 The action of fixing up manually what a failed automatic
Junio C Hamano3d5b41f2007-03-26 02:33:41969 <a href="#def_merge">merge</a> left behind.
Junio C Hamano1a4e8412005-12-27 08:17:23970</p>
971</dd>
972<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41973<a id="def_revision"></a>revision
Junio C Hamano1a4e8412005-12-27 08:17:23974</dt>
975<dd>
976<p>
977 A particular state of files and directories which was stored in the
Junio C Hamano3d5b41f2007-03-26 02:33:41978 <a href="#def_object_database">object database</a>. It is referenced by a
979 <a href="#def_commit_object">commit object</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23980</p>
981</dd>
982<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41983<a id="def_rewind"></a>rewind
Junio C Hamano1a4e8412005-12-27 08:17:23984</dt>
985<dd>
986<p>
987 To throw away part of the development, i.e. to assign the
Junio C Hamano3d5b41f2007-03-26 02:33:41988 <a href="#def_head">head</a> to an earlier <a href="#def_revision">revision</a>.
Junio C Hamano1a4e8412005-12-27 08:17:23989</p>
990</dd>
991<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:41992<a id="def_SCM"></a>SCM
Junio C Hamano1a4e8412005-12-27 08:17:23993</dt>
994<dd>
995<p>
996 Source code management (tool).
997</p>
998</dd>
999<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:411000<a id="def_SHA1"></a>SHA1
Junio C Hamano1a4e8412005-12-27 08:17:231001</dt>
1002<dd>
1003<p>
Junio C Hamano3d5b41f2007-03-26 02:33:411004 Synonym for <a href="#def_object_name">object name</a>.
Junio C Hamano1a4e8412005-12-27 08:17:231005</p>
1006</dd>
1007<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:411008<a id="def_shallow_repository"></a>shallow repository
Junio C Hamano4f9a6052007-01-17 20:25:161009</dt>
1010<dd>
1011<p>
Junio C Hamano36460982007-05-27 04:29:121012 A shallow <a href="#def_repository">repository</a> has an incomplete
1013 history some of whose <a href="#def_commit">commits</a> have <a href="#def_parent">parents</a> cauterized away (in other
Junio C Hamano4f9a6052007-01-17 20:25:161014 words, git is told to pretend that these commits do not have the
Junio C Hamano3d5b41f2007-03-26 02:33:411015 parents, even though they are recorded in the <a href="#def_commit_object">commit object</a>). This is sometimes useful when you are interested only in the
Junio C Hamano4f9a6052007-01-17 20:25:161016 recent history of a project even though the real history recorded in the
Junio C Hamano75485c82007-05-19 04:20:331017 upstream is much larger. A shallow repository
Junio C Hamano9e1793f2008-06-02 07:31:161018 is created by giving the <tt>--depth</tt> option to <a href="git-clone.html">git-clone(1)</a>, and
Junio C Hamano3d5b41f2007-03-26 02:33:411019 its history can be later deepened with <a href="git-fetch.html">git-fetch(1)</a>.
Junio C Hamano4f9a6052007-01-17 20:25:161020</p>
1021</dd>
1022<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:411023<a id="def_symref"></a>symref
Junio C Hamano3a971022006-11-18 22:17:581024</dt>
1025<dd>
1026<p>
Junio C Hamano75485c82007-05-19 04:20:331027 Symbolic reference: instead of containing the <a href="#def_SHA1">SHA1</a>
1028 id itself, it is of the format <em>ref: refs/some/thing</em> and when
1029 referenced, it recursively dereferences to this reference.
1030 <em><a href="#def_HEAD">HEAD</a></em> is a prime example of a symref. Symbolic
1031 references are manipulated with the <a href="git-symbolic-ref.html">git-symbolic-ref(1)</a>
1032 command.
Junio C Hamano3a971022006-11-18 22:17:581033</p>
1034</dd>
1035<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:411036<a id="def_tag"></a>tag
Junio C Hamano1a4e8412005-12-27 08:17:231037</dt>
1038<dd>
1039<p>
Junio C Hamano36460982007-05-27 04:29:121040 A <a href="#def_ref">ref</a> pointing to a <a href="#def_tag_object">tag</a> or
Junio C Hamano3d5b41f2007-03-26 02:33:411041 <a href="#def_commit_object">commit object</a>. In contrast to a <a href="#def_head">head</a>,
1042 a tag is not changed by a <a href="#def_commit">commit</a>. Tags (not
1043 <a href="#def_tag_object">tag objects</a>) are stored in <tt>$GIT_DIR/refs/tags/</tt>. A
1044 git tag has nothing to do with a Lisp tag (which would be
1045 called an <a href="#def_object_type">object type</a> in git's context). A
1046 tag is most typically used to mark a particular point in the
Junio C Hamano75485c82007-05-19 04:20:331047 commit ancestry <a href="#def_chain">chain</a>.
Junio C Hamano1a4e8412005-12-27 08:17:231048</p>
1049</dd>
1050<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:411051<a id="def_tag_object"></a>tag object
Junio C Hamano1a4e8412005-12-27 08:17:231052</dt>
1053<dd>
1054<p>
Junio C Hamano3d5b41f2007-03-26 02:33:411055 An <a href="#def_object">object</a> containing a <a href="#def_ref">ref</a> pointing to
Junio C Hamano75485c82007-05-19 04:20:331056 another object, which can contain a message just like a
Junio C Hamano3d5b41f2007-03-26 02:33:411057 <a href="#def_commit_object">commit object</a>. It can also contain a (PGP)
Junio C Hamano36460982007-05-27 04:29:121058 signature, in which case it is called a "signed tag object".
Junio C Hamano1a4e8412005-12-27 08:17:231059</p>
1060</dd>
1061<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:411062<a id="def_topic_branch"></a>topic branch
Junio C Hamano88a3a072006-05-04 08:01:431063</dt>
1064<dd>
1065<p>
Junio C Hamano3d5b41f2007-03-26 02:33:411066 A regular git <a href="#def_branch">branch</a> that is used by a developer to
Junio C Hamano88a3a072006-05-04 08:01:431067 identify a conceptual line of development. Since branches are very easy
1068 and inexpensive, it is often desirable to have several small branches
1069 that each contain very well defined concepts or small incremental yet
1070 related changes.
1071</p>
1072</dd>
1073<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:411074<a id="def_tracking_branch"></a>tracking branch
Junio C Hamano88a3a072006-05-04 08:01:431075</dt>
1076<dd>
1077<p>
Junio C Hamano3d5b41f2007-03-26 02:33:411078 A regular git <a href="#def_branch">branch</a> that is used to follow changes from
Junio C Hamano75485c82007-05-19 04:20:331079 another <a href="#def_repository">repository</a>. A tracking
1080 branch should not contain direct modifications or have local commits
1081 made to it. A tracking branch can usually be
Junio C Hamano3d5b41f2007-03-26 02:33:411082 identified as the right-hand-side <a href="#def_ref">ref</a> in a Pull:
1083 <a href="#def_refspec">refspec</a>.
Junio C Hamano88a3a072006-05-04 08:01:431084</p>
1085</dd>
1086<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:411087<a id="def_tree"></a>tree
Junio C Hamano1a4e8412005-12-27 08:17:231088</dt>
1089<dd>
1090<p>
Junio C Hamano36460982007-05-27 04:29:121091 Either a <a href="#def_working_tree">working tree</a>, or a <a href="#def_tree_object">tree object</a> together with the dependent <a href="#def_blob_object">blob</a> and tree objects
Junio C Hamano75485c82007-05-19 04:20:331092 (i.e. a stored representation of a working tree).
Junio C Hamano1a4e8412005-12-27 08:17:231093</p>
1094</dd>
1095<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:411096<a id="def_tree_object"></a>tree object
Junio C Hamano1a4e8412005-12-27 08:17:231097</dt>
1098<dd>
1099<p>
Junio C Hamano3d5b41f2007-03-26 02:33:411100 An <a href="#def_object">object</a> containing a list of file names and modes along
1101 with refs to the associated blob and/or tree objects. A
1102 <a href="#def_tree">tree</a> is equivalent to a <a href="#def_directory">directory</a>.
Junio C Hamano1a4e8412005-12-27 08:17:231103</p>
1104</dd>
1105<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:411106<a id="def_tree-ish"></a>tree-ish
Junio C Hamano1a4e8412005-12-27 08:17:231107</dt>
1108<dd>
1109<p>
Junio C Hamano75485c82007-05-19 04:20:331110 A <a href="#def_ref">ref</a> pointing to either a <a href="#def_commit_object">commit object</a>, a <a href="#def_tree_object">tree object</a>, or a <a href="#def_tag_object">tag object</a> pointing to a tag or commit or tree object.
Junio C Hamano1a4e8412005-12-27 08:17:231111</p>
1112</dd>
1113<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:411114<a id="def_unmerged_index"></a>unmerged index
Junio C Hamano21c0b422006-10-12 19:10:361115</dt>
1116<dd>
1117<p>
Junio C Hamano3d5b41f2007-03-26 02:33:411118 An <a href="#def_index">index</a> which contains unmerged
1119 <a href="#def_index_entry">index entries</a>.
Junio C Hamano21c0b422006-10-12 19:10:361120</p>
1121</dd>
1122<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:411123<a id="def_unreachable_object"></a>unreachable object
Junio C Hamanoaa83a7d2007-03-05 02:37:291124</dt>
1125<dd>
1126<p>
Junio C Hamano3d5b41f2007-03-26 02:33:411127 An <a href="#def_object">object</a> which is not <a href="#def_reachable">reachable</a> from a
1128 <a href="#def_branch">branch</a>, <a href="#def_tag">tag</a>, or any other reference.
Junio C Hamanoaa83a7d2007-03-05 02:37:291129</p>
1130</dd>
1131<dt>
Junio C Hamano3d5b41f2007-03-26 02:33:411132<a id="def_working_tree"></a>working tree
Junio C Hamano1a4e8412005-12-27 08:17:231133</dt>
1134<dd>
1135<p>
Junio C Hamano75485c82007-05-19 04:20:331136 The tree of actual checked out files. The working tree is
1137 normally equal to the <a href="#def_HEAD">HEAD</a> plus any local changes
1138 that you have made but not yet committed.
Junio C Hamano1a4e8412005-12-27 08:17:231139</p>
1140</dd>
Junio C Hamanod32738e2008-07-09 19:53:421141</dl></div>
Junio C Hamano1a4e8412005-12-27 08:17:231142</div>
Junio C Hamanod32738e2008-07-09 19:53:421143<h2 id="_see_also">SEE ALSO</h2>
Junio C Hamano9e1793f2008-06-02 07:31:161144<div class="sectionbody">
Junio C Hamanod32738e2008-07-09 19:53:421145<div class="para"><p><a href="gittutorial.html">gittutorial(7)</a>, <a href="gittutorial-2.html">gittutorial-2(7)</a>,
1146<a href="everyday.html">everyday(7)</a>, <a href="gitcvs-migration.html">gitcvs-migration(7)</a>,
1147<a href="user-manual.html">The Git User's Manual</a></p></div>
Junio C Hamano9e1793f2008-06-02 07:31:161148</div>
Junio C Hamanod32738e2008-07-09 19:53:421149<h2 id="_git">GIT</h2>
Junio C Hamano9e1793f2008-06-02 07:31:161150<div class="sectionbody">
Junio C Hamanod32738e2008-07-09 19:53:421151<div class="para"><p>Part of the <a href="git.html">git(1)</a> suite.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:231152</div>
Junio C Hamano1a4e8412005-12-27 08:17:231153<div id="footer">
1154<div id="footer-text">
Junio C Hamanod32738e2008-07-09 19:53:421155Last updated 2008-07-09 19:53:07 UTC
Junio C Hamano1a4e8412005-12-27 08:17:231156</div>
1157</div>
1158</body>
1159</html>