1 <!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">
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" />
6 <meta name=
"generator" content=
"AsciiDoc 8.2.5" />
7 <style type=
"text/css">
9 p
, li
, dt
, dd
, div
, pre
, h1
, h2
, h3
, h4
, h5
, h6
{
11 border: 1px solid red;
16 margin: 1em 5% 1em 5%;
21 text-decoration: underline
;
39 h1
, h2
, h3
, h4
, h5
, h6
{
41 font-family: sans-serif
;
48 border-bottom: 2px solid silver
;
66 border: 1px solid silver
;
81 font-family: sans-serif
;
88 font-family: sans-serif
;
92 font-family: sans-serif
;
94 border-top: 2px solid silver
;
100 padding-bottom: 0.5em;
104 padding-bottom: 0.5em;
108 div
.tableblock
, div
.imageblock
, div
.exampleblock
, div
.verseblock
,
109 div
.quoteblock
, div
.literalblock
, div
.listingblock
, div
.sidebarblock
,
110 div
.admonitionblock
{
113 margin-bottom: 1.5em;
115 div
.admonitionblock
{
117 margin-bottom: 2.5em;
120 div
.content
{ /* Block element content. */
124 /* Block element titles. */
125 div
.title
, caption
.title
{
126 font-family: sans-serif
;
130 margin-bottom: 0.5em;
136 td div
.title:first-child
{
139 div
.content div
.title:first-child
{
142 div
.content
+ div
.title
{
146 div
.sidebarblock
> div
.content
{
148 border: 1px solid silver
;
155 div
.listingblock
> div
.content
{
156 border: 1px solid silver
;
161 div
.quoteblock
> div
.content
{
168 div
.verseblock
+ div
.attribution
{
172 div
.admonitionblock
.icon
{
176 text-decoration: underline
;
178 padding-right: 0.5em;
180 div
.admonitionblock td
.content
{
182 border-left: 2px solid silver
;
185 div
.exampleblock
> div
.content
{
186 border-left: 2px solid silver
;
190 div
.verseblock div
.content
{
194 div
.imageblock div
.content
{ padding-left: 0; }
195 div
.imageblock img
{ border: 1px solid silver
; }
196 span
.image img
{ border-style: none
; }
200 margin-bottom: 0.8em;
212 list-style-position: outside
;
215 list-style-type: lower-alpha
;
218 div
.tableblock
> table
{
219 border: 3px solid
#527bbd;
222 font-family: sans-serif
;
231 margin-bottom: 0.8em;
239 padding-right: 0.8em;
246 div#footer-badges
{ display: none
; }
251 font-family: sans-serif
;
255 margin-bottom: 0.1em;
258 div
.toclevel1
, div
.toclevel2
, div
.toclevel3
, div
.toclevel4
{
274 include1::./stylesheets
/xhtml11-manpage
.css
[]
275 /* Workarounds for IE6's broken and incomplete CSS2. */
277 div
.sidebar-content
{
279 border: 1px solid silver
;
282 div
.sidebar-title
, div
.image-title
{
283 font-family: sans-serif
;
286 margin-bottom: 0.5em;
289 div
.listingblock div
.content
{
290 border: 1px solid silver
;
295 div
.quoteblock-content
{
299 div
.exampleblock-content
{
300 border-left: 2px solid silver
;
304 /* IE6 sets dynamically generated links as visited. */
305 div#toc
a:visited
{ color: blue
; }
307 <title>gitglossary(
7)
</title>
312 gitglossary(
7) Manual Page
315 <div class=
"sectionbody">
322 <div class=
"sectionbody">
323 <div class=
"para"><p>*
</p></div>
325 <h2 id=
"_description">DESCRIPTION
</h2>
326 <div class=
"sectionbody">
327 <div class=
"vlist"><dl>
329 <a id=
"def_alternate_object_database"></a>alternate object database
333 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".
339 <a id=
"def_bare_repository"></a>bare repository
343 A bare repository is normally an appropriately
344 named
<a href=
"#def_directory">directory
</a> with a
<tt>.git
</tt> suffix that does not
345 have a locally checked-out copy of any of the files under
346 revision control. That is, all of the
<tt>git
</tt>
347 administrative and control files that would normally be present in the
348 hidden
<tt>.git
</tt> sub-directory are directly present in the
349 <tt>repository.git
</tt> directory instead,
350 and no other files are present and checked out. Usually publishers of
351 public repositories make bare repositories available.
355 <a id=
"def_blob_object"></a>blob object
359 Untyped
<a href=
"#def_object">object
</a>, e.g. the contents of a file.
363 <a id=
"def_branch"></a>branch
367 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.
379 <a id=
"def_cache"></a>cache
383 Obsolete for:
<a href=
"#def_index">index
</a>.
387 <a id=
"def_chain"></a>chain
391 A list of objects, where each
<a href=
"#def_object">object
</a> in the list contains
392 a reference to its successor (for example, the successor of a
393 <a href=
"#def_commit">commit
</a> could be one of its
<a href=
"#def_parent">parents
</a>).
397 <a id=
"def_changeset"></a>changeset
401 BitKeeper/cvsps speak for
"<a href="#def_commit
">commit</a>". Since git does not
402 store changes, but states, it really does not make sense to use the term
403 "changesets" with git.
407 <a id=
"def_checkout"></a>checkout
411 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>.
420 <a id=
"def_cherry-picking"></a>cherry-picking
424 In
<a href=
"#def_SCM">SCM
</a> jargon,
"cherry pick" means to choose a subset of
425 changes out of a series of changes (typically commits) and record them
426 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
428 by an existing
<a href=
"#def_commit">commit
</a> and to record it based on the tip
429 of the current
<a href=
"#def_branch">branch
</a> as a new commit.
433 <a id=
"def_clean"></a>clean
437 A
<a href=
"#def_working_tree">working tree
</a> is clean, if it
438 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>".
443 <a id=
"def_commit"></a>commit
447 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>.
454 <div class=
"para"><p>As a verb: The action of storing a new snapshot of the project's
455 state in the git history, by creating a new commit representing the current
456 state of the
<a href=
"#def_index">index
</a> and advancing
<a href=
"#def_HEAD">HEAD
</a>
457 to point at the new commit.
</p></div>
460 <a id=
"def_commit_object"></a>commit object
464 An
<a href=
"#def_object">object
</a> which contains the information about a
465 particular
<a href=
"#def_revision">revision
</a>, such as
<a href=
"#def_parent">parents
</a>, committer,
466 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
472 <a id=
"def_core_git"></a>core git
476 Fundamental data structures and utilities of git. Exposes only limited
477 source code management tools.
481 <a id=
"def_DAG"></a>DAG
485 Directed acyclic graph. The
<a href=
"#def_commit_object">commit objects
</a> form a
486 directed acyclic graph, because they have parents (directed), and the
487 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>).
492 <a id=
"def_dangling_object"></a>dangling object
496 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
498 dangling object has no references to it from any
499 reference or
<a href=
"#def_object">object
</a> in the
<a href=
"#def_repository">repository
</a>.
503 <a id=
"def_detached_HEAD"></a>detached HEAD
507 Normally the
<a href=
"#def_HEAD">HEAD
</a> stores the name of a
508 <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
510 particular branch. In this case HEAD is said to be
"detached".
514 <a id=
"def_dircache"></a>dircache
518 You are
<strong>waaaaay
</strong> behind. See
<a href=
"#def_index">index
</a>.
522 <a id=
"def_directory"></a>directory
526 The list you get with
"ls" :-)
530 <a id=
"def_dirty"></a>dirty
534 A
<a href=
"#def_working_tree">working tree
</a> is said to be
"dirty" if
535 it contains modifications which have not been
<a href=
"#def_commit">committed
</a> to the current
536 <a href=
"#def_branch">branch
</a>.
540 <a id=
"def_ent"></a>ent
544 Favorite synonym to
"<a href="#def_tree-ish
">tree-ish</a>" by some total geeks. See
545 <tt>http://en.wikipedia.org/wiki/Ent_(Middle-earth)
</tt> for an in-depth
546 explanation. Avoid this term, not to confuse people.
550 <a id=
"def_evil_merge"></a>evil merge
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>.
559 <a id=
"def_fast_forward"></a>fast-forward
563 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
568 revision. This will happen frequently on a
569 <a href=
"#def_tracking_branch">tracking branch
</a> of a remote
570 <a href=
"#def_repository">repository
</a>.
574 <a id=
"def_fetch"></a>fetch
578 Fetching a
<a href=
"#def_branch">branch
</a> means to get the
579 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>.
586 <a id=
"def_file_system"></a>file system
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.
596 <a id=
"def_git_archive"></a>git archive
600 Synonym for
<a href=
"#def_repository">repository
</a> (for arch people).
604 <a id=
"def_grafts"></a>grafts
608 Grafts enables two otherwise different lines of development to be joined
609 together by recording fake ancestry information for commits. This way
610 you can make git pretend the set of
<a href=
"#def_parent">parents
</a> a
<a href=
"#def_commit">commit
</a> has
611 is different from what was recorded when the commit was
612 created. Configured via the
<tt>.git/info/grafts
</tt> file.
616 <a id=
"def_hash"></a>hash
620 In git's context, synonym to
<a href=
"#def_object_name">object name
</a>.
624 <a id=
"def_head"></a>head
628 A
<a href=
"#def_ref">named reference
</a> to the
<a href=
"#def_commit">commit
</a> at the tip of a
629 <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>.)
635 <a id=
"def_HEAD"></a>HEAD
639 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
640 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.
647 <a id=
"def_head_ref"></a>head ref
651 A synonym for
<a href=
"#def_head">head
</a>.
655 <a id=
"def_hook"></a>hook
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
663 operation is done. The hook scripts are found in the
664 <tt>$GIT_DIR/hooks/
</tt> directory, and are enabled by simply
665 removing the
<tt>.sample
</tt> suffix from the filename. In earlier versions
666 of git you had to make them executable.
670 <a id=
"def_index"></a>index
674 A collection of files with stat information, whose contents are stored
675 as objects. The index is a stored version of your
676 <a href=
"#def_working_tree">working tree
</a>. Truth be told, it can also contain a second, and even
677 a third version of a working tree, which are used
678 when
<a href=
"#def_merge">merging
</a>.
682 <a id=
"def_index_entry"></a>index entry
686 The information regarding a particular file, stored in the
687 <a href=
"#def_index">index
</a>. An index entry can be unmerged, if a
688 <a href=
"#def_merge">merge
</a> was started, but not yet finished (i.e. if
689 the index contains multiple versions of that file).
693 <a id=
"def_master"></a>master
697 The default development
<a href=
"#def_branch">branch
</a>. Whenever you
698 create a git
<a href=
"#def_repository">repository
</a>, a branch named
699 "master" is created, and becomes the active branch. In most
700 cases, this contains the local development, though that is
701 purely by convention and is not required.
705 <a id=
"def_merge"></a>merge
709 As a verb: To bring the contents of another
710 <a href=
"#def_branch">branch
</a> (possibly from an external
711 <a href=
"#def_repository">repository
</a>) into the current branch. In the
712 case where the merged-in branch is from a different repository,
713 this is done by first
<a href=
"#def_fetch">fetching
</a> the remote branch
714 and then merging the result into the current branch. This
715 combination of fetch and merge operations is called a
716 <a href=
"#def_pull">pull
</a>. Merging is performed by an automatic process
717 that identifies changes made since the branches diverged, and
718 then applies all those changes together. In cases where changes
719 conflict, manual intervention may be required to complete the
722 <div class=
"para"><p>As a noun: unless it is a
<a href=
"#def_fast_forward">fast-forward
</a>, a
723 successful merge results in the creation of a new
<a href=
"#def_commit">commit
</a>
724 representing the result of the merge, and having as
725 <a href=
"#def_parent">parents
</a> the tips of the merged
<a href=
"#def_branch">branches
</a>.
726 This commit is referred to as a
"merge commit", or sometimes just a
730 <a id=
"def_object"></a>object
734 The unit of storage in git. It is uniquely identified by the
735 <a href=
"#def_SHA1">SHA1
</a> of its contents. Consequently, an
736 object can not be changed.
740 <a id=
"def_object_database"></a>object database
744 Stores a set of
"objects", and an individual
<a href=
"#def_object">object
</a> is
745 identified by its
<a href=
"#def_object_name">object name
</a>. The objects usually
746 live in
<tt>$GIT_DIR/objects/
</tt>.
750 <a id=
"def_object_identifier"></a>object identifier
754 Synonym for
<a href=
"#def_object_name">object name
</a>.
758 <a id=
"def_object_name"></a>object name
762 The unique identifier of an
<a href=
"#def_object">object
</a>. The
<a href=
"#def_hash">hash
</a>
763 of the object's contents using the Secure Hash Algorithm
764 1 and usually represented by the
40 character hexadecimal encoding of
765 the
<a href=
"#def_hash">hash
</a> of the object.
769 <a id=
"def_object_type"></a>object type
773 One of the identifiers
"<a href="#def_commit_object
">commit</a>",
774 "<a href="#def_tree_object
">tree</a>",
"<a href="#def_tag_object
">tag</a>" or
775 "<a href="#def_blob_object
">blob</a>" describing the type of an
776 <a href=
"#def_object">object
</a>.
780 <a id=
"def_octopus"></a>octopus
784 To
<a href=
"#def_merge">merge
</a> more than two
<a href=
"#def_branch">branches
</a>. Also denotes an
785 intelligent predator.
789 <a id=
"def_origin"></a>origin
793 The default upstream
<a href=
"#def_repository">repository
</a>. Most projects have
794 at least one upstream project which they track. By default
795 <em>origin
</em> is used for that purpose. New upstream updates
796 will be fetched into remote
<a href=
"#def_tracking_branch">tracking branches
</a> named
797 origin/name-of-upstream-branch, which you can see using
798 <tt>git branch -r
</tt>.
802 <a id=
"def_pack"></a>pack
806 A set of objects which have been compressed into one file (to save space
807 or to transmit them efficiently).
811 <a id=
"def_pack_index"></a>pack index
815 The list of identifiers, and other information, of the objects in a
816 <a href=
"#def_pack">pack
</a>, to assist in efficiently accessing the contents of a
821 <a id=
"def_parent"></a>parent
825 A
<a href=
"#def_commit_object">commit object
</a> contains a (possibly empty) list
826 of the logical predecessor(s) in the line of development, i.e. its
831 <a id=
"def_pickaxe"></a>pickaxe
835 The term
<a href=
"#def_pickaxe">pickaxe
</a> refers to an option to the diffcore
836 routines that help select changes that add or delete a given text
837 string. With the
<tt>--pickaxe-all
</tt> option, it can be used to view the full
838 <a href=
"#def_changeset">changeset
</a> that introduced or removed, say, a
839 particular line of text. See
<a href=
"git-diff.html">git-diff(
1)
</a>.
843 <a id=
"def_plumbing"></a>plumbing
847 Cute name for
<a href=
"#def_core_git">core git
</a>.
851 <a id=
"def_porcelain"></a>porcelain
855 Cute name for programs and program suites depending on
856 <a href=
"#def_core_git">core git
</a>, presenting a high level access to
857 core git. Porcelains expose more of a
<a href=
"#def_SCM">SCM
</a>
858 interface than the
<a href=
"#def_plumbing">plumbing
</a>.
862 <a id=
"def_pull"></a>pull
866 Pulling a
<a href=
"#def_branch">branch
</a> means to
<a href=
"#def_fetch">fetch
</a> it and
867 <a href=
"#def_merge">merge
</a> it. See also
<a href=
"git-pull.html">git-pull(
1)
</a>.
871 <a id=
"def_push"></a>push
875 Pushing a
<a href=
"#def_branch">branch
</a> means to get the branch's
876 <a href=
"#def_head_ref">head ref
</a> from a remote
<a href=
"#def_repository">repository
</a>,
877 find out if it is a direct ancestor to the branch's local
878 head ref, and in that case, putting all
879 objects, which are
<a href=
"#def_reachable">reachable
</a> from the local
880 head ref, and which are missing from the remote
881 repository, into the remote
882 <a href=
"#def_object_database">object database
</a>, and updating the remote
883 head ref. If the remote
<a href=
"#def_head">head
</a> is not an
884 ancestor to the local head, the push fails.
888 <a id=
"def_reachable"></a>reachable
892 All of the ancestors of a given
<a href=
"#def_commit">commit
</a> are said to be
893 "reachable" from that commit. More
894 generally, one
<a href=
"#def_object">object
</a> is reachable from
895 another if we can reach the one from the other by a
<a href=
"#def_chain">chain
</a>
896 that follows
<a href=
"#def_tag">tags
</a> to whatever they tag,
897 <a href=
"#def_commit_object">commits
</a> to their parents or trees, and
898 <a href=
"#def_tree_object">trees
</a> to the trees or
<a href=
"#def_blob_object">blobs
</a>
903 <a id=
"def_rebase"></a>rebase
907 To reapply a series of changes from a
<a href=
"#def_branch">branch
</a> to a
908 different base, and reset the
<a href=
"#def_head">head
</a> of that branch
913 <a id=
"def_ref"></a>ref
917 A
40-byte hex representation of a
<a href=
"#def_SHA1">SHA1
</a> or a name that
918 denotes a particular
<a href=
"#def_object">object
</a>. These may be stored in
919 <tt>$GIT_DIR/refs/
</tt>.
923 <a id=
"def_reflog"></a>reflog
927 A reflog shows the local
"history" of a ref. In other words,
928 it can tell you what the
3rd last revision in _this_ repository
929 was, and what was the current state in _this_ repository,
930 yesterday
9:
14pm. See
<a href=
"git-reflog.html">git-reflog(
1)
</a> for details.
934 <a id=
"def_refspec"></a>refspec
938 A
"refspec" is used by
<a href=
"#def_fetch">fetch
</a> and
939 <a href=
"#def_push">push
</a> to describe the mapping between remote
940 <a href=
"#def_ref">ref
</a> and local ref. They are combined with a colon in
941 the format
<src
>:
<dst
>, preceded by an optional plus sign, +.
942 For example:
<tt>git fetch $URL
943 refs/heads/master:refs/heads/origin
</tt> means
"grab the master
944 <a href="#def_branch
">branch</a> <a href="#def_head
">head</a> from the $URL and store
945 it as my origin branch head". And
<tt>git push
946 $URL refs/heads/master:refs/heads/to-upstream
</tt> means
"publish my
947 master branch head as to-upstream branch at $URL". See also
948 <a href=
"git-push.html">git-push(
1)
</a>.
952 <a id=
"def_repository"></a>repository
956 A collection of
<a href=
"#def_ref">refs
</a> together with an
957 <a href=
"#def_object_database">object database
</a> containing all objects
958 which are
<a href=
"#def_reachable">reachable
</a> from the refs, possibly
959 accompanied by meta data from one or more
<a href=
"#def_porcelain">porcelains
</a>. A
960 repository can share an object database with other repositories
961 via
<a href=
"#def_alternate_object_database">alternates mechanism
</a>.
965 <a id=
"def_resolve"></a>resolve
969 The action of fixing up manually what a failed automatic
970 <a href=
"#def_merge">merge
</a> left behind.
974 <a id=
"def_revision"></a>revision
978 A particular state of files and directories which was stored in the
979 <a href=
"#def_object_database">object database
</a>. It is referenced by a
980 <a href=
"#def_commit_object">commit object
</a>.
984 <a id=
"def_rewind"></a>rewind
988 To throw away part of the development, i.e. to assign the
989 <a href=
"#def_head">head
</a> to an earlier
<a href=
"#def_revision">revision
</a>.
993 <a id=
"def_SCM"></a>SCM
997 Source code management (tool).
1001 <a id=
"def_SHA1"></a>SHA1
1005 Synonym for
<a href=
"#def_object_name">object name
</a>.
1009 <a id=
"def_shallow_repository"></a>shallow repository
1013 A shallow
<a href=
"#def_repository">repository
</a> has an incomplete
1014 history some of whose
<a href=
"#def_commit">commits
</a> have
<a href=
"#def_parent">parents
</a> cauterized away (in other
1015 words, git is told to pretend that these commits do not have the
1016 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
1017 recent history of a project even though the real history recorded in the
1018 upstream is much larger. A shallow repository
1019 is created by giving the
<tt>--depth
</tt> option to
<a href=
"git-clone.html">git-clone(
1)
</a>, and
1020 its history can be later deepened with
<a href=
"git-fetch.html">git-fetch(
1)
</a>.
1024 <a id=
"def_symref"></a>symref
1028 Symbolic reference: instead of containing the
<a href=
"#def_SHA1">SHA1
</a>
1029 id itself, it is of the format
<em>ref: refs/some/thing
</em> and when
1030 referenced, it recursively dereferences to this reference.
1031 <em><a href=
"#def_HEAD">HEAD
</a></em> is a prime example of a symref. Symbolic
1032 references are manipulated with the
<a href=
"git-symbolic-ref.html">git-symbolic-ref(
1)
</a>
1037 <a id=
"def_tag"></a>tag
1041 A
<a href=
"#def_ref">ref
</a> pointing to a
<a href=
"#def_tag_object">tag
</a> or
1042 <a href=
"#def_commit_object">commit object
</a>. In contrast to a
<a href=
"#def_head">head
</a>,
1043 a tag is not changed by a
<a href=
"#def_commit">commit
</a>. Tags (not
1044 <a href=
"#def_tag_object">tag objects
</a>) are stored in
<tt>$GIT_DIR/refs/tags/
</tt>. A
1045 git tag has nothing to do with a Lisp tag (which would be
1046 called an
<a href=
"#def_object_type">object type
</a> in git's context). A
1047 tag is most typically used to mark a particular point in the
1048 commit ancestry
<a href=
"#def_chain">chain
</a>.
1052 <a id=
"def_tag_object"></a>tag object
1056 An
<a href=
"#def_object">object
</a> containing a
<a href=
"#def_ref">ref
</a> pointing to
1057 another object, which can contain a message just like a
1058 <a href=
"#def_commit_object">commit object
</a>. It can also contain a (PGP)
1059 signature, in which case it is called a
"signed tag object".
1063 <a id=
"def_topic_branch"></a>topic branch
1067 A regular git
<a href=
"#def_branch">branch
</a> that is used by a developer to
1068 identify a conceptual line of development. Since branches are very easy
1069 and inexpensive, it is often desirable to have several small branches
1070 that each contain very well defined concepts or small incremental yet
1075 <a id=
"def_tracking_branch"></a>tracking branch
1079 A regular git
<a href=
"#def_branch">branch
</a> that is used to follow changes from
1080 another
<a href=
"#def_repository">repository
</a>. A tracking
1081 branch should not contain direct modifications or have local commits
1082 made to it. A tracking branch can usually be
1083 identified as the right-hand-side
<a href=
"#def_ref">ref
</a> in a Pull:
1084 <a href=
"#def_refspec">refspec
</a>.
1088 <a id=
"def_tree"></a>tree
1092 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
1093 (i.e. a stored representation of a working tree).
1097 <a id=
"def_tree_object"></a>tree object
1101 An
<a href=
"#def_object">object
</a> containing a list of file names and modes along
1102 with refs to the associated blob and/or tree objects. A
1103 <a href=
"#def_tree">tree
</a> is equivalent to a
<a href=
"#def_directory">directory
</a>.
1107 <a id=
"def_tree-ish"></a>tree-ish
1111 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.
1115 <a id=
"def_unmerged_index"></a>unmerged index
1119 An
<a href=
"#def_index">index
</a> which contains unmerged
1120 <a href=
"#def_index_entry">index entries
</a>.
1124 <a id=
"def_unreachable_object"></a>unreachable object
1128 An
<a href=
"#def_object">object
</a> which is not
<a href=
"#def_reachable">reachable
</a> from a
1129 <a href=
"#def_branch">branch
</a>,
<a href=
"#def_tag">tag
</a>, or any other reference.
1133 <a id=
"def_upstream_branch"></a>upstream branch
1137 The default
<a href=
"#def_branch">branch
</a> that is merged into the branch in
1138 question (or the branch in question is rebased onto). It is configured
1139 via branch.
<name
>.remote and branch.
<name
>.merge. If the upstream branch
1140 of
<em>A
</em> is
<em>origin/B
</em> sometimes we say
"<em>A</em> is tracking <em>origin/B</em>".
1144 <a id=
"def_working_tree"></a>working tree
1148 The tree of actual checked out files. The working tree normally
1149 contains the contents of the
<a href=
"#def_HEAD">HEAD
</a> commit's tree,
1150 plus any local changes that you have made but not yet committed.
1155 <h2 id=
"_see_also">SEE ALSO
</h2>
1156 <div class=
"sectionbody">
1157 <div class=
"para"><p><a href=
"gittutorial.html">gittutorial(
7)
</a>,
1158 <a href=
"gittutorial-2.html">gittutorial-
2(
7)
</a>,
1159 <a href=
"gitcvs-migration.html">gitcvs-migration(
7)
</a>,
1160 <a href=
"everyday.html">Everyday git
</a>,
1161 <a href=
"user-manual.html">The Git User's Manual
</a></p></div>
1163 <h2 id=
"_git">GIT
</h2>
1164 <div class=
"sectionbody">
1165 <div class=
"para"><p>Part of the
<a href=
"git.html">git(
1)
</a> suite.
</p></div>
1168 <div id=
"footer-text">
1169 Last updated
2010-
04-
24 02:
56:
15 UTC