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
4 <sect2 lang="en" id="gitglossary(7)">
\r
5 <title>gitglossary(7)</title>
\r
7 <primary>gitglossary(7)</primary>
\r
9 <simplesect id="gitglossary(7)__name">
\r
11 <simpara>gitglossary - A GIT Glossary</simpara>
\r
13 <simplesect id="gitglossary(7)__synopsis">
\r
14 <title>SYNOPSIS</title>
\r
15 <simpara>*</simpara>
\r
17 <simplesect id="gitglossary(7)__description">
\r
18 <title>DESCRIPTION</title>
\r
22 <anchor id="gitglossary(7)_def_alternate_object_database" xreflabel="[def_alternate_object_database]"/>alternate object database
\r
26 Via the alternates mechanism, a <link linkend="gitglossary(7)_def_repository">repository</link>
\r
27 can inherit part of its <link linkend="gitglossary(7)_def_object_database">object database</link>
\r
28 from another object database, which is called "alternate".
\r
34 <anchor id="gitglossary(7)_def_bare_repository" xreflabel="[def_bare_repository]"/>bare repository
\r
38 A bare repository is normally an appropriately
\r
39 named <link linkend="gitglossary(7)_def_directory">directory</link> with a <emphasis>.git</emphasis> suffix that does not
\r
40 have a locally checked-out copy of any of the files under
\r
41 revision control. That is, all of the <emphasis>git</emphasis>
\r
42 administrative and control files that would normally be present in the
\r
43 hidden <emphasis>.git</emphasis> sub-directory are directly present in the
\r
44 <emphasis>repository.git</emphasis> directory instead,
\r
45 and no other files are present and checked out. Usually publishers of
\r
46 public repositories make bare repositories available.
\r
52 <anchor id="gitglossary(7)_def_blob_object" xreflabel="[def_blob_object]"/>blob object
\r
56 Untyped <link linkend="gitglossary(7)_def_object">object</link>, e.g. the contents of a file.
\r
62 <anchor id="gitglossary(7)_def_branch" xreflabel="[def_branch]"/>branch
\r
66 A "branch" is an active line of development. The most recent
\r
67 <link linkend="gitglossary(7)_def_commit">commit</link> on a branch is referred to as the tip of
\r
68 that branch. The tip of the branch is referenced by a branch
\r
69 <link linkend="gitglossary(7)_def_head">head</link>, which moves forward as additional development
\r
70 is done on the branch. A single git
\r
71 <link linkend="gitglossary(7)_def_repository">repository</link> can track an arbitrary number of
\r
72 branches, but your <link linkend="gitglossary(7)_def_working_tree">working tree</link> is
\r
73 associated with just one of them (the "current" or "checked out"
\r
74 branch), and <link linkend="gitglossary(7)_def_HEAD">HEAD</link> points to that branch.
\r
80 <anchor id="gitglossary(7)_def_cache" xreflabel="[def_cache]"/>cache
\r
84 Obsolete for: <link linkend="gitglossary(7)_def_index">index</link>.
\r
90 <anchor id="gitglossary(7)_def_chain" xreflabel="[def_chain]"/>chain
\r
94 A list of objects, where each <link linkend="gitglossary(7)_def_object">object</link> in the list contains
\r
95 a reference to its successor (for example, the successor of a
\r
96 <link linkend="gitglossary(7)_def_commit">commit</link> could be one of its <link linkend="gitglossary(7)_def_parent">parents</link>).
\r
102 <anchor id="gitglossary(7)_def_changeset" xreflabel="[def_changeset]"/>changeset
\r
106 BitKeeper/cvsps speak for "<link linkend="gitglossary(7)_def_commit">commit</link>". Since git does not
\r
107 store changes, but states, it really does not make sense to use the term
\r
108 "changesets" with git.
\r
114 <anchor id="gitglossary(7)_def_checkout" xreflabel="[def_checkout]"/>checkout
\r
118 The action of updating all or part of the
\r
119 <link linkend="gitglossary(7)_def_working_tree">working tree</link> with a <link linkend="gitglossary(7)_def_tree_object">tree object</link>
\r
120 or <link linkend="gitglossary(7)_def_blob_object">blob</link> from the
\r
121 <link linkend="gitglossary(7)_def_object_database">object database</link>, and updating the
\r
122 <link linkend="gitglossary(7)_def_index">index</link> and <link linkend="gitglossary(7)_def_HEAD">HEAD</link> if the whole working tree has
\r
123 been pointed at a new <link linkend="gitglossary(7)_def_branch">branch</link>.
\r
129 <anchor id="gitglossary(7)_def_cherry-picking" xreflabel="[def_cherry-picking]"/>cherry-picking
\r
133 In <link linkend="gitglossary(7)_def_SCM">SCM</link> jargon, "cherry pick" means to choose a subset of
\r
134 changes out of a series of changes (typically commits) and record them
\r
135 as a new series of changes on top of a different codebase. In GIT, this is
\r
136 performed by the "git cherry-pick" command to extract the change introduced
\r
137 by an existing <link linkend="gitglossary(7)_def_commit">commit</link> and to record it based on the tip
\r
138 of the current <link linkend="gitglossary(7)_def_branch">branch</link> as a new commit.
\r
144 <anchor id="gitglossary(7)_def_clean" xreflabel="[def_clean]"/>clean
\r
148 A <link linkend="gitglossary(7)_def_working_tree">working tree</link> is clean, if it
\r
149 corresponds to the <link linkend="gitglossary(7)_def_revision">revision</link> referenced by the current
\r
150 <link linkend="gitglossary(7)_def_head">head</link>. Also see "<link linkend="gitglossary(7)_def_dirty">dirty</link>".
\r
156 <anchor id="gitglossary(7)_def_commit" xreflabel="[def_commit]"/>commit
\r
160 As a noun: A single point in the
\r
161 git history; the entire history of a project is represented as a
\r
162 set of interrelated commits. The word "commit" is often
\r
163 used by git in the same places other revision control systems
\r
164 use the words "revision" or "version". Also used as a short
\r
165 hand for <link linkend="gitglossary(7)_def_commit_object">commit object</link>.
\r
167 <simpara>As a verb: The action of storing a new snapshot of the project's
\r
168 state in the git history, by creating a new commit representing the current
\r
169 state of the <link linkend="gitglossary(7)_def_index">index</link> and advancing <link linkend="gitglossary(7)_def_HEAD">HEAD</link>
\r
170 to point at the new commit.</simpara>
\r
175 <anchor id="gitglossary(7)_def_commit_object" xreflabel="[def_commit_object]"/>commit object
\r
179 An <link linkend="gitglossary(7)_def_object">object</link> which contains the information about a
\r
180 particular <link linkend="gitglossary(7)_def_revision">revision</link>, such as <link linkend="gitglossary(7)_def_parent">parents</link>, committer,
\r
181 author, date and the <link linkend="gitglossary(7)_def_tree_object">tree object</link> which corresponds
\r
182 to the top <link linkend="gitglossary(7)_def_directory">directory</link> of the stored
\r
189 <anchor id="gitglossary(7)_def_core_git" xreflabel="[def_core_git]"/>core git
\r
193 Fundamental data structures and utilities of git. Exposes only limited
\r
194 source code management tools.
\r
200 <anchor id="gitglossary(7)_def_DAG" xreflabel="[def_DAG]"/>DAG
\r
204 Directed acyclic graph. The <link linkend="gitglossary(7)_def_commit_object">commit objects</link> form a
\r
205 directed acyclic graph, because they have parents (directed), and the
\r
206 graph of commit objects is acyclic (there is no <link linkend="gitglossary(7)_def_chain">chain</link>
\r
207 which begins and ends with the same <link linkend="gitglossary(7)_def_object">object</link>).
\r
213 <anchor id="gitglossary(7)_def_dangling_object" xreflabel="[def_dangling_object]"/>dangling object
\r
217 An <link linkend="gitglossary(7)_def_unreachable_object">unreachable object</link> which is not
\r
218 <link linkend="gitglossary(7)_def_reachable">reachable</link> even from other unreachable objects; a
\r
219 dangling object has no references to it from any
\r
220 reference or <link linkend="gitglossary(7)_def_object">object</link> in the <link linkend="gitglossary(7)_def_repository">repository</link>.
\r
226 <anchor id="gitglossary(7)_def_detached_HEAD" xreflabel="[def_detached_HEAD]"/>detached HEAD
\r
230 Normally the <link linkend="gitglossary(7)_def_HEAD">HEAD</link> stores the name of a
\r
231 <link linkend="gitglossary(7)_def_branch">branch</link>. However, git also allows you to <link linkend="gitglossary(7)_def_checkout">check out</link>
\r
232 an arbitrary <link linkend="gitglossary(7)_def_commit">commit</link> that isn't necessarily the tip of any
\r
233 particular branch. In this case HEAD is said to be "detached".
\r
239 <anchor id="gitglossary(7)_def_dircache" xreflabel="[def_dircache]"/>dircache
\r
243 You are <emphasis role="strong">waaaaay</emphasis> behind. See <link linkend="gitglossary(7)_def_index">index</link>.
\r
249 <anchor id="gitglossary(7)_def_directory" xreflabel="[def_directory]"/>directory
\r
253 The list you get with "ls" :-)
\r
259 <anchor id="gitglossary(7)_def_dirty" xreflabel="[def_dirty]"/>dirty
\r
263 A <link linkend="gitglossary(7)_def_working_tree">working tree</link> is said to be "dirty" if
\r
264 it contains modifications which have not been <link linkend="gitglossary(7)_def_commit">committed</link> to the current
\r
265 <link linkend="gitglossary(7)_def_branch">branch</link>.
\r
271 <anchor id="gitglossary(7)_def_ent" xreflabel="[def_ent]"/>ent
\r
275 Favorite synonym to "<link linkend="gitglossary(7)_def_tree-ish">tree-ish</link>" by some total geeks. See
\r
276 <ulink url="http://en.wikipedia.org/wiki/Ent_(Middle-earth">http://en.wikipedia.org/wiki/Ent_(Middle-earth</ulink>) for an in-depth
\r
277 explanation. Avoid this term, not to confuse people.
\r
283 <anchor id="gitglossary(7)_def_evil_merge" xreflabel="[def_evil_merge]"/>evil merge
\r
287 An evil merge is a <link linkend="gitglossary(7)_def_merge">merge</link> that introduces changes that
\r
288 do not appear in any <link linkend="gitglossary(7)_def_parent">parent</link>.
\r
294 <anchor id="gitglossary(7)_def_fast_forward" xreflabel="[def_fast_forward]"/>fast-forward
\r
298 A fast-forward is a special type of <link linkend="gitglossary(7)_def_merge">merge</link> where you have a
\r
299 <link linkend="gitglossary(7)_def_revision">revision</link> and you are "merging" another
\r
300 <link linkend="gitglossary(7)_def_branch">branch</link>'s changes that happen to be a descendant of what
\r
301 you have. In such these cases, you do not make a new <link linkend="gitglossary(7)_def_merge">merge</link>
\r
302 <link linkend="gitglossary(7)_def_commit">commit</link> but instead just update to his
\r
303 revision. This will happen frequently on a
\r
304 <link linkend="gitglossary(7)_def_remote_tracking_branch">remote-tracking branch</link> of a remote
\r
305 <link linkend="gitglossary(7)_def_repository">repository</link>.
\r
311 <anchor id="gitglossary(7)_def_fetch" xreflabel="[def_fetch]"/>fetch
\r
315 Fetching a <link linkend="gitglossary(7)_def_branch">branch</link> means to get the
\r
316 branch's <link linkend="gitglossary(7)_def_head_ref">head ref</link> from a remote
\r
317 <link linkend="gitglossary(7)_def_repository">repository</link>, to find out which objects are
\r
318 missing from the local <link linkend="gitglossary(7)_def_object_database">object database</link>,
\r
319 and to get them, too. See also <xref linkend="git-fetch(1)" />.
\r
325 <anchor id="gitglossary(7)_def_file_system" xreflabel="[def_file_system]"/>file system
\r
329 Linus Torvalds originally designed git to be a user space file system,
\r
330 i.e. the infrastructure to hold files and directories. That ensured the
\r
331 efficiency and speed of git.
\r
337 <anchor id="gitglossary(7)_def_git_archive" xreflabel="[def_git_archive]"/>git archive
\r
341 Synonym for <link linkend="gitglossary(7)_def_repository">repository</link> (for arch people).
\r
347 <anchor id="gitglossary(7)_def_grafts" xreflabel="[def_grafts]"/>grafts
\r
351 Grafts enables two otherwise different lines of development to be joined
\r
352 together by recording fake ancestry information for commits. This way
\r
353 you can make git pretend the set of <link linkend="gitglossary(7)_def_parent">parents</link> a <link linkend="gitglossary(7)_def_commit">commit</link> has
\r
354 is different from what was recorded when the commit was
\r
355 created. Configured via the <emphasis>.git/info/grafts</emphasis> file.
\r
361 <anchor id="gitglossary(7)_def_hash" xreflabel="[def_hash]"/>hash
\r
365 In git's context, synonym to <link linkend="gitglossary(7)_def_object_name">object name</link>.
\r
371 <anchor id="gitglossary(7)_def_head" xreflabel="[def_head]"/>head
\r
375 A <link linkend="gitglossary(7)_def_ref">named reference</link> to the <link linkend="gitglossary(7)_def_commit">commit</link> at the tip of a
\r
376 <link linkend="gitglossary(7)_def_branch">branch</link>. Heads are stored in a file in
\r
377 <emphasis>$GIT_DIR/refs/heads/</emphasis> directory, except when using packed refs. (See
\r
378 <xref linkend="git-pack-refs(1)" />.)
\r
384 <anchor id="gitglossary(7)_def_HEAD" xreflabel="[def_HEAD]"/>HEAD
\r
388 The current <link linkend="gitglossary(7)_def_branch">branch</link>. In more detail: Your <link linkend="gitglossary(7)_def_working_tree">working tree</link> is normally derived from the state of the tree
\r
389 referred to by HEAD. HEAD is a reference to one of the
\r
390 <link linkend="gitglossary(7)_def_head">heads</link> in your repository, except when using a
\r
391 <link linkend="gitglossary(7)_def_detached_HEAD">detached HEAD</link>, in which case it directly
\r
392 references an arbitrary commit.
\r
398 <anchor id="gitglossary(7)_def_head_ref" xreflabel="[def_head_ref]"/>head ref
\r
402 A synonym for <link linkend="gitglossary(7)_def_head">head</link>.
\r
408 <anchor id="gitglossary(7)_def_hook" xreflabel="[def_hook]"/>hook
\r
412 During the normal execution of several git commands, call-outs are made
\r
413 to optional scripts that allow a developer to add functionality or
\r
414 checking. Typically, the hooks allow for a command to be pre-verified
\r
415 and potentially aborted, and allow for a post-notification after the
\r
416 operation is done. The hook scripts are found in the
\r
417 <emphasis>$GIT_DIR/hooks/</emphasis> directory, and are enabled by simply
\r
418 removing the <emphasis>.sample</emphasis> suffix from the filename. In earlier versions
\r
419 of git you had to make them executable.
\r
425 <anchor id="gitglossary(7)_def_index" xreflabel="[def_index]"/>index
\r
429 A collection of files with stat information, whose contents are stored
\r
430 as objects. The index is a stored version of your
\r
431 <link linkend="gitglossary(7)_def_working_tree">working tree</link>. Truth be told, it can also contain a second, and even
\r
432 a third version of a working tree, which are used
\r
433 when <link linkend="gitglossary(7)_def_merge">merging</link>.
\r
439 <anchor id="gitglossary(7)_def_index_entry" xreflabel="[def_index_entry]"/>index entry
\r
443 The information regarding a particular file, stored in the
\r
444 <link linkend="gitglossary(7)_def_index">index</link>. An index entry can be unmerged, if a
\r
445 <link linkend="gitglossary(7)_def_merge">merge</link> was started, but not yet finished (i.e. if
\r
446 the index contains multiple versions of that file).
\r
452 <anchor id="gitglossary(7)_def_master" xreflabel="[def_master]"/>master
\r
456 The default development <link linkend="gitglossary(7)_def_branch">branch</link>. Whenever you
\r
457 create a git <link linkend="gitglossary(7)_def_repository">repository</link>, a branch named
\r
458 "master" is created, and becomes the active branch. In most
\r
459 cases, this contains the local development, though that is
\r
460 purely by convention and is not required.
\r
466 <anchor id="gitglossary(7)_def_merge" xreflabel="[def_merge]"/>merge
\r
470 As a verb: To bring the contents of another
\r
471 <link linkend="gitglossary(7)_def_branch">branch</link> (possibly from an external
\r
472 <link linkend="gitglossary(7)_def_repository">repository</link>) into the current branch. In the
\r
473 case where the merged-in branch is from a different repository,
\r
474 this is done by first <link linkend="gitglossary(7)_def_fetch">fetching</link> the remote branch
\r
475 and then merging the result into the current branch. This
\r
476 combination of fetch and merge operations is called a
\r
477 <link linkend="gitglossary(7)_def_pull">pull</link>. Merging is performed by an automatic process
\r
478 that identifies changes made since the branches diverged, and
\r
479 then applies all those changes together. In cases where changes
\r
480 conflict, manual intervention may be required to complete the
\r
483 <simpara>As a noun: unless it is a <link linkend="gitglossary(7)_def_fast_forward">fast-forward</link>, a
\r
484 successful merge results in the creation of a new <link linkend="gitglossary(7)_def_commit">commit</link>
\r
485 representing the result of the merge, and having as
\r
486 <link linkend="gitglossary(7)_def_parent">parents</link> the tips of the merged <link linkend="gitglossary(7)_def_branch">branches</link>.
\r
487 This commit is referred to as a "merge commit", or sometimes just a
\r
493 <anchor id="gitglossary(7)_def_object" xreflabel="[def_object]"/>object
\r
497 The unit of storage in git. It is uniquely identified by the
\r
498 <link linkend="gitglossary(7)_def_SHA1">SHA1</link> of its contents. Consequently, an
\r
499 object can not be changed.
\r
505 <anchor id="gitglossary(7)_def_object_database" xreflabel="[def_object_database]"/>object database
\r
509 Stores a set of "objects", and an individual <link linkend="gitglossary(7)_def_object">object</link> is
\r
510 identified by its <link linkend="gitglossary(7)_def_object_name">object name</link>. The objects usually
\r
511 live in <emphasis>$GIT_DIR/objects/</emphasis>.
\r
517 <anchor id="gitglossary(7)_def_object_identifier" xreflabel="[def_object_identifier]"/>object identifier
\r
521 Synonym for <link linkend="gitglossary(7)_def_object_name">object name</link>.
\r
527 <anchor id="gitglossary(7)_def_object_name" xreflabel="[def_object_name]"/>object name
\r
531 The unique identifier of an <link linkend="gitglossary(7)_def_object">object</link>. The <link linkend="gitglossary(7)_def_hash">hash</link>
\r
532 of the object's contents using the Secure Hash Algorithm
\r
533 1 and usually represented by the 40 character hexadecimal encoding of
\r
534 the <link linkend="gitglossary(7)_def_hash">hash</link> of the object.
\r
540 <anchor id="gitglossary(7)_def_object_type" xreflabel="[def_object_type]"/>object type
\r
544 One of the identifiers "<link linkend="gitglossary(7)_def_commit_object">commit</link>",
\r
545 "<link linkend="gitglossary(7)_def_tree_object">tree</link>", "<link linkend="gitglossary(7)_def_tag_object">tag</link>" or
\r
546 "<link linkend="gitglossary(7)_def_blob_object">blob</link>" describing the type of an
\r
547 <link linkend="gitglossary(7)_def_object">object</link>.
\r
553 <anchor id="gitglossary(7)_def_octopus" xreflabel="[def_octopus]"/>octopus
\r
557 To <link linkend="gitglossary(7)_def_merge">merge</link> more than two <link linkend="gitglossary(7)_def_branch">branches</link>. Also denotes an
\r
558 intelligent predator.
\r
564 <anchor id="gitglossary(7)_def_origin" xreflabel="[def_origin]"/>origin
\r
568 The default upstream <link linkend="gitglossary(7)_def_repository">repository</link>. Most projects have
\r
569 at least one upstream project which they track. By default
\r
570 <emphasis>origin</emphasis> is used for that purpose. New upstream updates
\r
571 will be fetched into remote <link linkend="gitglossary(7)_def_remote_tracking_branch">remote-tracking branches</link> named
\r
572 origin/name-of-upstream-branch, which you can see using
\r
573 <emphasis>git branch -r</emphasis>.
\r
579 <anchor id="gitglossary(7)_def_pack" xreflabel="[def_pack]"/>pack
\r
583 A set of objects which have been compressed into one file (to save space
\r
584 or to transmit them efficiently).
\r
590 <anchor id="gitglossary(7)_def_pack_index" xreflabel="[def_pack_index]"/>pack index
\r
594 The list of identifiers, and other information, of the objects in a
\r
595 <link linkend="gitglossary(7)_def_pack">pack</link>, to assist in efficiently accessing the contents of a
\r
602 <anchor id="gitglossary(7)_def_pathspec" xreflabel="[def_pathspec]"/>pathspec
\r
606 Pattern used to specify paths.
\r
608 <simpara>Pathspecs are used on the command line of "git ls-files", "git
\r
609 ls-tree", "git add", "git grep", "git diff", "git checkout",
\r
610 and many other commands to
\r
611 limit the scope of operations to some subset of the tree or
\r
612 worktree. See the documentation of each command for whether
\r
613 paths are relative to the current directory or toplevel. The
\r
614 pathspec syntax is as follows:</simpara>
\r
618 any path matches itself
\r
623 the pathspec up to the last slash represents a
\r
624 directory prefix. The scope of that pathspec is
\r
625 limited to that subtree.
\r
630 the rest of the pathspec is a pattern for the remainder
\r
631 of the pathname. Paths relative to the directory
\r
632 prefix will be matched against that pattern using fnmatch(3);
\r
633 in particular, <emphasis>*</emphasis> and <emphasis>?</emphasis> <emphasis>can</emphasis> match directory separators.
\r
635 <simpara>For example, Documentation/*.jpg will match all .jpg files
\r
636 in the Documentation subtree,
\r
637 including Documentation/chapter_1/figure_1.jpg.</simpara>
\r
640 <simpara>A pathspec that begins with a colon <emphasis>:</emphasis> has special meaning. In the
\r
641 short form, the leading colon <emphasis>:</emphasis> is followed by zero or more "magic
\r
642 signature" letters (which optionally is terminated by another colon <emphasis>:</emphasis>),
\r
643 and the remainder is the pattern to match against the path. The optional
\r
644 colon that terminates the "magic signature" can be omitted if the pattern
\r
645 begins with a character that cannot be a "magic signature" and is not a
\r
647 <simpara>In the long form, the leading colon <emphasis>:</emphasis> is followed by a open
\r
648 parenthesis <emphasis>(</emphasis>, a comma-separated list of zero or more "magic words",
\r
649 and a close parentheses <emphasis>)</emphasis>, and the remainder is the pattern to match
\r
650 against the path.</simpara>
\r
651 <simpara>The "magic signature" consists of an ASCII symbol that is not
\r
652 alphanumeric.</simpara>
\r
656 top <emphasis>/</emphasis>
\r
660 The magic word <emphasis>top</emphasis> (mnemonic: <emphasis>/</emphasis>) makes the pattern match
\r
661 from the root of the working tree, even when you are running
\r
662 the command from inside a subdirectory.
\r
667 <simpara>Currently only the slash <emphasis>/</emphasis> is recognized as the "magic signature",
\r
668 but it is envisioned that we will support more types of magic in later
\r
669 versions of git.</simpara>
\r
670 <simpara>A pathspec with only a colon means "there is no pathspec". This form
\r
671 should not be combined with other pathspec.</simpara>
\r
676 <anchor id="gitglossary(7)_def_parent" xreflabel="[def_parent]"/>parent
\r
680 A <link linkend="gitglossary(7)_def_commit_object">commit object</link> contains a (possibly empty) list
\r
681 of the logical predecessor(s) in the line of development, i.e. its
\r
688 <anchor id="gitglossary(7)_def_pickaxe" xreflabel="[def_pickaxe]"/>pickaxe
\r
692 The term <link linkend="gitglossary(7)_def_pickaxe">pickaxe</link> refers to an option to the diffcore
\r
693 routines that help select changes that add or delete a given text
\r
694 string. With the <emphasis>--pickaxe-all</emphasis> option, it can be used to view the full
\r
695 <link linkend="gitglossary(7)_def_changeset">changeset</link> that introduced or removed, say, a
\r
696 particular line of text. See <xref linkend="git-diff(1)" />.
\r
702 <anchor id="gitglossary(7)_def_plumbing" xreflabel="[def_plumbing]"/>plumbing
\r
706 Cute name for <link linkend="gitglossary(7)_def_core_git">core git</link>.
\r
712 <anchor id="gitglossary(7)_def_porcelain" xreflabel="[def_porcelain]"/>porcelain
\r
716 Cute name for programs and program suites depending on
\r
717 <link linkend="gitglossary(7)_def_core_git">core git</link>, presenting a high level access to
\r
718 core git. Porcelains expose more of a <link linkend="gitglossary(7)_def_SCM">SCM</link>
\r
719 interface than the <link linkend="gitglossary(7)_def_plumbing">plumbing</link>.
\r
725 <anchor id="gitglossary(7)_def_pull" xreflabel="[def_pull]"/>pull
\r
729 Pulling a <link linkend="gitglossary(7)_def_branch">branch</link> means to <link linkend="gitglossary(7)_def_fetch">fetch</link> it and
\r
730 <link linkend="gitglossary(7)_def_merge">merge</link> it. See also <xref linkend="git-pull(1)" />.
\r
736 <anchor id="gitglossary(7)_def_push" xreflabel="[def_push]"/>push
\r
740 Pushing a <link linkend="gitglossary(7)_def_branch">branch</link> means to get the branch's
\r
741 <link linkend="gitglossary(7)_def_head_ref">head ref</link> from a remote <link linkend="gitglossary(7)_def_repository">repository</link>,
\r
742 find out if it is a direct ancestor to the branch's local
\r
743 head ref, and in that case, putting all
\r
744 objects, which are <link linkend="gitglossary(7)_def_reachable">reachable</link> from the local
\r
745 head ref, and which are missing from the remote
\r
746 repository, into the remote
\r
747 <link linkend="gitglossary(7)_def_object_database">object database</link>, and updating the remote
\r
748 head ref. If the remote <link linkend="gitglossary(7)_def_head">head</link> is not an
\r
749 ancestor to the local head, the push fails.
\r
755 <anchor id="gitglossary(7)_def_reachable" xreflabel="[def_reachable]"/>reachable
\r
759 All of the ancestors of a given <link linkend="gitglossary(7)_def_commit">commit</link> are said to be
\r
760 "reachable" from that commit. More
\r
761 generally, one <link linkend="gitglossary(7)_def_object">object</link> is reachable from
\r
762 another if we can reach the one from the other by a <link linkend="gitglossary(7)_def_chain">chain</link>
\r
763 that follows <link linkend="gitglossary(7)_def_tag">tags</link> to whatever they tag,
\r
764 <link linkend="gitglossary(7)_def_commit_object">commits</link> to their parents or trees, and
\r
765 <link linkend="gitglossary(7)_def_tree_object">trees</link> to the trees or <link linkend="gitglossary(7)_def_blob_object">blobs</link>
\r
772 <anchor id="gitglossary(7)_def_rebase" xreflabel="[def_rebase]"/>rebase
\r
776 To reapply a series of changes from a <link linkend="gitglossary(7)_def_branch">branch</link> to a
\r
777 different base, and reset the <link linkend="gitglossary(7)_def_head">head</link> of that branch
\r
784 <anchor id="gitglossary(7)_def_ref" xreflabel="[def_ref]"/>ref
\r
788 A 40-byte hex representation of a <link linkend="gitglossary(7)_def_SHA1">SHA1</link> or a name that
\r
789 denotes a particular <link linkend="gitglossary(7)_def_object">object</link>. They may be stored in
\r
790 a file under <emphasis>$GIT_DIR/refs/</emphasis> directory, or
\r
791 in the <emphasis>$GIT_DIR/packed-refs</emphasis> file.
\r
797 <anchor id="gitglossary(7)_def_reflog" xreflabel="[def_reflog]"/>reflog
\r
801 A reflog shows the local "history" of a ref. In other words,
\r
802 it can tell you what the 3rd last revision in <emphasis>this</emphasis> repository
\r
803 was, and what was the current state in <emphasis>this</emphasis> repository,
\r
804 yesterday 9:14pm. See <xref linkend="git-reflog(1)" /> for details.
\r
810 <anchor id="gitglossary(7)_def_refspec" xreflabel="[def_refspec]"/>refspec
\r
814 A "refspec" is used by <link linkend="gitglossary(7)_def_fetch">fetch</link> and
\r
815 <link linkend="gitglossary(7)_def_push">push</link> to describe the mapping between remote
\r
816 <link linkend="gitglossary(7)_def_ref">ref</link> and local ref. They are combined with a colon in
\r
817 the format <src>:<dst>, preceded by an optional plus sign, +.
\r
818 For example: <emphasis>git fetch $URL
\r
819 refs/heads/master:refs/heads/origin</emphasis> means "grab the master
\r
820 <link linkend="gitglossary(7)_def_branch">branch</link> <link linkend="gitglossary(7)_def_head">head</link> from the $URL and store
\r
821 it as my origin branch head". And <emphasis>git push
\r
822 $URL refs/heads/master:refs/heads/to-upstream</emphasis> means "publish my
\r
823 master branch head as to-upstream branch at $URL". See also
\r
824 <xref linkend="git-push(1)" />.
\r
830 <anchor id="gitglossary(7)_def_remote_tracking_branch" xreflabel="[def_remote_tracking_branch]"/>remote-tracking branch
\r
834 A regular git <link linkend="gitglossary(7)_def_branch">branch</link> that is used to follow changes from
\r
835 another <link linkend="gitglossary(7)_def_repository">repository</link>. A remote-tracking
\r
836 branch should not contain direct modifications or have local commits
\r
837 made to it. A remote-tracking branch can usually be
\r
838 identified as the right-hand-side <link linkend="gitglossary(7)_def_ref">ref</link> in a Pull:
\r
839 <link linkend="gitglossary(7)_def_refspec">refspec</link>.
\r
845 <anchor id="gitglossary(7)_def_repository" xreflabel="[def_repository]"/>repository
\r
849 A collection of <link linkend="gitglossary(7)_def_ref">refs</link> together with an
\r
850 <link linkend="gitglossary(7)_def_object_database">object database</link> containing all objects
\r
851 which are <link linkend="gitglossary(7)_def_reachable">reachable</link> from the refs, possibly
\r
852 accompanied by meta data from one or more <link linkend="gitglossary(7)_def_porcelain">porcelains</link>. A
\r
853 repository can share an object database with other repositories
\r
854 via <link linkend="gitglossary(7)_def_alternate_object_database">alternates mechanism</link>.
\r
860 <anchor id="gitglossary(7)_def_resolve" xreflabel="[def_resolve]"/>resolve
\r
864 The action of fixing up manually what a failed automatic
\r
865 <link linkend="gitglossary(7)_def_merge">merge</link> left behind.
\r
871 <anchor id="gitglossary(7)_def_revision" xreflabel="[def_revision]"/>revision
\r
875 A particular state of files and directories which was stored in the
\r
876 <link linkend="gitglossary(7)_def_object_database">object database</link>. It is referenced by a
\r
877 <link linkend="gitglossary(7)_def_commit_object">commit object</link>.
\r
883 <anchor id="gitglossary(7)_def_rewind" xreflabel="[def_rewind]"/>rewind
\r
887 To throw away part of the development, i.e. to assign the
\r
888 <link linkend="gitglossary(7)_def_head">head</link> to an earlier <link linkend="gitglossary(7)_def_revision">revision</link>.
\r
894 <anchor id="gitglossary(7)_def_SCM" xreflabel="[def_SCM]"/>SCM
\r
898 Source code management (tool).
\r
904 <anchor id="gitglossary(7)_def_SHA1" xreflabel="[def_SHA1]"/>SHA1
\r
908 Synonym for <link linkend="gitglossary(7)_def_object_name">object name</link>.
\r
914 <anchor id="gitglossary(7)_def_shallow_repository" xreflabel="[def_shallow_repository]"/>shallow repository
\r
918 A shallow <link linkend="gitglossary(7)_def_repository">repository</link> has an incomplete
\r
919 history some of whose <link linkend="gitglossary(7)_def_commit">commits</link> have <link linkend="gitglossary(7)_def_parent">parents</link> cauterized away (in other
\r
920 words, git is told to pretend that these commits do not have the
\r
921 parents, even though they are recorded in the <link linkend="gitglossary(7)_def_commit_object">commit object</link>). This is sometimes useful when you are interested only in the
\r
922 recent history of a project even though the real history recorded in the
\r
923 upstream is much larger. A shallow repository
\r
924 is created by giving the <emphasis>--depth</emphasis> option to <xref linkend="git-clone(1)" />, and
\r
925 its history can be later deepened with <xref linkend="git-fetch(1)" />.
\r
931 <anchor id="gitglossary(7)_def_symref" xreflabel="[def_symref]"/>symref
\r
935 Symbolic reference: instead of containing the <link linkend="gitglossary(7)_def_SHA1">SHA1</link>
\r
936 id itself, it is of the format <emphasis>ref: refs/some/thing</emphasis> and when
\r
937 referenced, it recursively dereferences to this reference.
\r
938 <emphasis><link linkend="gitglossary(7)_def_HEAD">HEAD</link></emphasis> is a prime example of a symref. Symbolic
\r
939 references are manipulated with the <xref linkend="git-symbolic-ref(1)" />
\r
946 <anchor id="gitglossary(7)_def_tag" xreflabel="[def_tag]"/>tag
\r
950 A <link linkend="gitglossary(7)_def_ref">ref</link> under <emphasis>refs/tags/</emphasis> namespace that points to an
\r
951 object of an arbitrary type (typically a tag points to either a
\r
952 <link linkend="gitglossary(7)_def_tag_object">tag</link> or a <link linkend="gitglossary(7)_def_commit_object">commit object</link>).
\r
953 In contrast to a <link linkend="gitglossary(7)_def_head">head</link>, a tag is not updated by
\r
954 the <emphasis>commit</emphasis> command. A git tag has nothing to do with a Lisp
\r
955 tag (which would be called an <link linkend="gitglossary(7)_def_object_type">object type</link>
\r
956 in git's context). A tag is most typically used to mark a particular
\r
957 point in the commit ancestry <link linkend="gitglossary(7)_def_chain">chain</link>.
\r
963 <anchor id="gitglossary(7)_def_tag_object" xreflabel="[def_tag_object]"/>tag object
\r
967 An <link linkend="gitglossary(7)_def_object">object</link> containing a <link linkend="gitglossary(7)_def_ref">ref</link> pointing to
\r
968 another object, which can contain a message just like a
\r
969 <link linkend="gitglossary(7)_def_commit_object">commit object</link>. It can also contain a (PGP)
\r
970 signature, in which case it is called a "signed tag object".
\r
976 <anchor id="gitglossary(7)_def_topic_branch" xreflabel="[def_topic_branch]"/>topic branch
\r
980 A regular git <link linkend="gitglossary(7)_def_branch">branch</link> that is used by a developer to
\r
981 identify a conceptual line of development. Since branches are very easy
\r
982 and inexpensive, it is often desirable to have several small branches
\r
983 that each contain very well defined concepts or small incremental yet
\r
990 <anchor id="gitglossary(7)_def_tree" xreflabel="[def_tree]"/>tree
\r
994 Either a <link linkend="gitglossary(7)_def_working_tree">working tree</link>, or a <link linkend="gitglossary(7)_def_tree_object">tree object</link> together with the dependent <link linkend="gitglossary(7)_def_blob_object">blob</link> and tree objects
\r
995 (i.e. a stored representation of a working tree).
\r
1001 <anchor id="gitglossary(7)_def_tree_object" xreflabel="[def_tree_object]"/>tree object
\r
1005 An <link linkend="gitglossary(7)_def_object">object</link> containing a list of file names and modes along
\r
1006 with refs to the associated blob and/or tree objects. A
\r
1007 <link linkend="gitglossary(7)_def_tree">tree</link> is equivalent to a <link linkend="gitglossary(7)_def_directory">directory</link>.
\r
1013 <anchor id="gitglossary(7)_def_tree-ish" xreflabel="[def_tree-ish]"/>tree-ish
\r
1017 A <link linkend="gitglossary(7)_def_ref">ref</link> pointing to either a <link linkend="gitglossary(7)_def_commit_object">commit object</link>, a <link linkend="gitglossary(7)_def_tree_object">tree object</link>, or a <link linkend="gitglossary(7)_def_tag_object">tag object</link> pointing to a tag or commit or tree object.
\r
1023 <anchor id="gitglossary(7)_def_unmerged_index" xreflabel="[def_unmerged_index]"/>unmerged index
\r
1027 An <link linkend="gitglossary(7)_def_index">index</link> which contains unmerged
\r
1028 <link linkend="gitglossary(7)_def_index_entry">index entries</link>.
\r
1034 <anchor id="gitglossary(7)_def_unreachable_object" xreflabel="[def_unreachable_object]"/>unreachable object
\r
1038 An <link linkend="gitglossary(7)_def_object">object</link> which is not <link linkend="gitglossary(7)_def_reachable">reachable</link> from a
\r
1039 <link linkend="gitglossary(7)_def_branch">branch</link>, <link linkend="gitglossary(7)_def_tag">tag</link>, or any other reference.
\r
1045 <anchor id="gitglossary(7)_def_upstream_branch" xreflabel="[def_upstream_branch]"/>upstream branch
\r
1049 The default <link linkend="gitglossary(7)_def_branch">branch</link> that is merged into the branch in
\r
1050 question (or the branch in question is rebased onto). It is configured
\r
1051 via branch.<name>.remote and branch.<name>.merge. If the upstream branch
\r
1052 of <emphasis>A</emphasis> is <emphasis>origin/B</emphasis> sometimes we say "<emphasis>A</emphasis> is tracking <emphasis>origin/B</emphasis>".
\r
1058 <anchor id="gitglossary(7)_def_working_tree" xreflabel="[def_working_tree]"/>working tree
\r
1062 The tree of actual checked out files. The working tree normally
\r
1063 contains the contents of the <link linkend="gitglossary(7)_def_HEAD">HEAD</link> commit's tree,
\r
1064 plus any local changes that you have made but not yet committed.
\r
1070 <simplesect id="gitglossary(7)__see_also">
\r
1071 <title>SEE ALSO</title>
\r
1072 <simpara><xref linkend="gittutorial(7)" />,
\r
1073 <xref linkend="gittutorial-2(7)" />,
\r
1074 <xref linkend="gitcvs-migration(7)" />,
\r
1075 link:everyday.html[Everyday git],
\r
1076 link:user-manual.html[The Git User's Manual]</simpara>
\r
1078 <simplesect id="gitglossary(7)__git">
\r
1079 <title>GIT</title>
\r
1080 <simpara>Part of the <xref linkend="git(1)" /> suite.</simpara>
\r