Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 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"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 6 | <meta name="generator" content="AsciiDoc 8.2.5" /> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 7 | <style type="text/css"> |
| 8 | /* Debug borders */ |
| 9 | p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 { |
| 10 | /* |
| 11 | border: 1px solid red; |
| 12 | */ |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | margin: 1em 5% 1em 5%; |
| 17 | } |
| 18 | |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 19 | a { |
| 20 | color: blue; |
| 21 | text-decoration: underline; |
| 22 | } |
| 23 | a:visited { |
| 24 | color: fuchsia; |
| 25 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 26 | |
| 27 | em { |
| 28 | font-style: italic; |
| 29 | } |
| 30 | |
| 31 | strong { |
| 32 | font-weight: bold; |
| 33 | } |
| 34 | |
| 35 | tt { |
| 36 | color: navy; |
| 37 | } |
| 38 | |
| 39 | h1, 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 Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 47 | h1, h2, h3 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 48 | border-bottom: 2px solid silver; |
| 49 | } |
| 50 | h2 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 51 | padding-top: 0.5em; |
| 52 | } |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 53 | h3 { |
| 54 | float: left; |
| 55 | } |
| 56 | h3 + * { |
| 57 | clear: left; |
| 58 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 59 | |
| 60 | div.sectionbody { |
| 61 | font-family: serif; |
| 62 | margin-left: 0; |
| 63 | } |
| 64 | |
| 65 | hr { |
| 66 | border: 1px solid silver; |
| 67 | } |
| 68 | |
| 69 | p { |
| 70 | margin-top: 0.5em; |
| 71 | margin-bottom: 0.5em; |
| 72 | } |
| 73 | |
| 74 | pre { |
| 75 | padding: 0; |
| 76 | margin: 0; |
| 77 | } |
| 78 | |
| 79 | span#author { |
| 80 | color: #527bbd; |
| 81 | font-family: sans-serif; |
| 82 | font-weight: bold; |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 83 | font-size: 1.1em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 84 | } |
| 85 | span#email { |
| 86 | } |
| 87 | span#revision { |
| 88 | font-family: sans-serif; |
| 89 | } |
| 90 | |
| 91 | div#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 | } |
| 98 | div#footer-text { |
| 99 | float: left; |
| 100 | padding-bottom: 0.5em; |
| 101 | } |
| 102 | div#footer-badges { |
| 103 | float: right; |
| 104 | padding-bottom: 0.5em; |
| 105 | } |
| 106 | |
| 107 | div#preamble, |
| 108 | div.tableblock, div.imageblock, div.exampleblock, div.verseblock, |
| 109 | div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock, |
| 110 | div.admonitionblock { |
| 111 | margin-right: 10%; |
| 112 | margin-top: 1.5em; |
| 113 | margin-bottom: 1.5em; |
| 114 | } |
| 115 | div.admonitionblock { |
| 116 | margin-top: 2.5em; |
| 117 | margin-bottom: 2.5em; |
| 118 | } |
| 119 | |
| 120 | div.content { /* Block element content. */ |
| 121 | padding: 0; |
| 122 | } |
| 123 | |
| 124 | /* Block element titles. */ |
| 125 | div.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 | } |
| 132 | div.title + * { |
| 133 | margin-top: 0; |
| 134 | } |
| 135 | |
| 136 | td div.title:first-child { |
| 137 | margin-top: 0.0em; |
| 138 | } |
| 139 | div.content div.title:first-child { |
| 140 | margin-top: 0.0em; |
| 141 | } |
| 142 | div.content + div.title { |
| 143 | margin-top: 0.0em; |
| 144 | } |
| 145 | |
| 146 | div.sidebarblock > div.content { |
| 147 | background: #ffffee; |
| 148 | border: 1px solid silver; |
| 149 | padding: 0.5em; |
| 150 | } |
| 151 | |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 152 | div.listingblock { |
| 153 | margin-right: 0%; |
| 154 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 155 | div.listingblock > div.content { |
| 156 | border: 1px solid silver; |
| 157 | background: #f4f4f4; |
| 158 | padding: 0.5em; |
| 159 | } |
| 160 | |
| 161 | div.quoteblock > div.content { |
| 162 | padding-left: 2.0em; |
| 163 | } |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 164 | |
| 165 | div.attribution { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 166 | text-align: right; |
| 167 | } |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 168 | div.verseblock + div.attribution { |
| 169 | text-align: left; |
| 170 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 171 | |
| 172 | div.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 | } |
| 180 | div.admonitionblock td.content { |
| 181 | padding-left: 0.5em; |
| 182 | border-left: 2px solid silver; |
| 183 | } |
| 184 | |
| 185 | div.exampleblock > div.content { |
| 186 | border-left: 2px solid silver; |
| 187 | padding: 0.5em; |
| 188 | } |
| 189 | |
| 190 | div.verseblock div.content { |
| 191 | white-space: pre; |
| 192 | } |
| 193 | |
| 194 | div.imageblock div.content { padding-left: 0; } |
| 195 | div.imageblock img { border: 1px solid silver; } |
| 196 | span.image img { border-style: none; } |
| 197 | |
| 198 | dl { |
| 199 | margin-top: 0.8em; |
| 200 | margin-bottom: 0.8em; |
| 201 | } |
| 202 | dt { |
| 203 | margin-top: 0.5em; |
| 204 | margin-bottom: 0; |
| 205 | font-style: italic; |
| 206 | } |
| 207 | dd > *:first-child { |
| 208 | margin-top: 0; |
| 209 | } |
| 210 | |
| 211 | ul, ol { |
| 212 | list-style-position: outside; |
| 213 | } |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 214 | div.olist2 ol { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 215 | list-style-type: lower-alpha; |
| 216 | } |
| 217 | |
| 218 | div.tableblock > table { |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 219 | border: 3px solid #527bbd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 220 | } |
| 221 | thead { |
| 222 | font-family: sans-serif; |
| 223 | font-weight: bold; |
| 224 | } |
| 225 | tfoot { |
| 226 | font-weight: bold; |
| 227 | } |
| 228 | |
| 229 | div.hlist { |
| 230 | margin-top: 0.8em; |
| 231 | margin-bottom: 0.8em; |
| 232 | } |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 233 | div.hlist td { |
| 234 | padding-bottom: 5px; |
| 235 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 236 | td.hlist1 { |
| 237 | vertical-align: top; |
| 238 | font-style: italic; |
| 239 | padding-right: 0.8em; |
| 240 | } |
| 241 | td.hlist2 { |
| 242 | vertical-align: top; |
| 243 | } |
| 244 | |
| 245 | @media print { |
| 246 | div#footer-badges { display: none; } |
| 247 | } |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 248 | |
| 249 | div#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 | |
| 258 | div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 { |
| 259 | margin-top: 0; |
| 260 | margin-bottom: 0; |
| 261 | } |
| 262 | div.toclevel2 { |
| 263 | margin-left: 2em; |
| 264 | font-size: 0.9em; |
| 265 | } |
| 266 | div.toclevel3 { |
| 267 | margin-left: 4em; |
| 268 | font-size: 0.9em; |
| 269 | } |
| 270 | div.toclevel4 { |
| 271 | margin-left: 6em; |
| 272 | font-size: 0.9em; |
| 273 | } |
| 274 | include1::./stylesheets/xhtml11-manpage.css[] |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 275 | /* Workarounds for IE6's broken and incomplete CSS2. */ |
| 276 | |
| 277 | div.sidebar-content { |
| 278 | background: #ffffee; |
| 279 | border: 1px solid silver; |
| 280 | padding: 0.5em; |
| 281 | } |
| 282 | div.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 | |
| 289 | div.listingblock div.content { |
| 290 | border: 1px solid silver; |
| 291 | background: #f4f4f4; |
| 292 | padding: 0.5em; |
| 293 | } |
| 294 | |
| 295 | div.quoteblock-content { |
| 296 | padding-left: 2.0em; |
| 297 | } |
| 298 | |
| 299 | div.exampleblock-content { |
| 300 | border-left: 2px solid silver; |
| 301 | padding-left: 0.5em; |
| 302 | } |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 303 | |
| 304 | /* IE6 sets dynamically generated links as visited. */ |
| 305 | div#toc a:visited { color: blue; } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 306 | </style> |
Junio C Hamano | 9e1793f | 2008-06-02 07:31:16 | [diff] [blame] | 307 | <title>gitglossary(7)</title> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 308 | </head> |
| 309 | <body> |
| 310 | <div id="header"> |
Junio C Hamano | 9e1793f | 2008-06-02 07:31:16 | [diff] [blame] | 311 | <h1> |
| 312 | gitglossary(7) Manual Page |
| 313 | </h1> |
| 314 | <h2>NAME</h2> |
| 315 | <div class="sectionbody"> |
| 316 | <p>gitglossary - |
| 317 | A GIT Glossary |
| 318 | </p> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 319 | </div> |
Junio C Hamano | 9e1793f | 2008-06-02 07:31:16 | [diff] [blame] | 320 | </div> |
| 321 | <h2>SYNOPSIS</h2> |
| 322 | <div class="sectionbody"> |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 323 | <div class="para"><p>*</p></div> |
Junio C Hamano | 9e1793f | 2008-06-02 07:31:16 | [diff] [blame] | 324 | </div> |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 325 | <h2 id="_description">DESCRIPTION</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 326 | <div class="sectionbody"> |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 327 | <div class="vlist"><dl> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 328 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 329 | <a id="def_alternate_object_database"></a>alternate object database |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 330 | </dt> |
| 331 | <dd> |
| 332 | <p> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 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". |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 336 | </p> |
| 337 | </dd> |
| 338 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 339 | <a id="def_bare_repository"></a>bare repository |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 340 | </dt> |
| 341 | <dd> |
| 342 | <p> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 343 | A bare repository is normally an appropriately |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 344 | named <a href="#def_directory">directory</a> with a <tt>.git</tt> suffix that does not |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 345 | have a locally checked-out copy of any of the files under |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 346 | revision control. That is, all of the <tt>git</tt> |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 347 | administrative and control files that would normally be present in the |
Junio C Hamano | c51fede | 2007-03-12 07:29:20 | [diff] [blame] | 348 | hidden <tt>.git</tt> sub-directory are directly present in the |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 349 | <tt>repository.git</tt> directory instead, |
Junio C Hamano | c51fede | 2007-03-12 07:29:20 | [diff] [blame] | 350 | and no other files are present and checked out. Usually publishers of |
| 351 | public repositories make bare repositories available. |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 352 | </p> |
| 353 | </dd> |
| 354 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 355 | <a id="def_blob_object"></a>blob object |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 356 | </dt> |
| 357 | <dd> |
| 358 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 359 | Untyped <a href="#def_object">object</a>, e.g. the contents of a file. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 360 | </p> |
| 361 | </dd> |
| 362 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 363 | <a id="def_branch"></a>branch |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 364 | </dt> |
| 365 | <dd> |
| 366 | <p> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 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. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 376 | </p> |
| 377 | </dd> |
| 378 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 379 | <a id="def_cache"></a>cache |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 380 | </dt> |
| 381 | <dd> |
| 382 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 383 | Obsolete for: <a href="#def_index">index</a>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 384 | </p> |
| 385 | </dd> |
| 386 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 387 | <a id="def_chain"></a>chain |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 388 | </dt> |
| 389 | <dd> |
| 390 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 391 | A list of objects, where each <a href="#def_object">object</a> in the list contains |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 392 | a reference to its successor (for example, the successor of a |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 393 | <a href="#def_commit">commit</a> could be one of its <a href="#def_parent">parents</a>). |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 394 | </p> |
| 395 | </dd> |
| 396 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 397 | <a id="def_changeset"></a>changeset |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 398 | </dt> |
| 399 | <dd> |
| 400 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 401 | BitKeeper/cvsps speak for "<a href="#def_commit">commit</a>". Since git does not |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 402 | 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 Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 407 | <a id="def_checkout"></a>checkout |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 408 | </dt> |
| 409 | <dd> |
| 410 | <p> |
Junio C Hamano | a14a403 | 2008-03-25 09:11:02 | [diff] [blame] | 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>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 417 | </p> |
| 418 | </dd> |
| 419 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 420 | <a id="def_cherry-picking"></a>cherry-picking |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 421 | </dt> |
| 422 | <dd> |
| 423 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 424 | In <a href="#def_SCM">SCM</a> jargon, "cherry pick" means to choose a subset of |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 425 | changes out of a series of changes (typically commits) and record them |
Junio C Hamano | 764a667 | 2007-10-23 01:23:31 | [diff] [blame] | 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 |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 428 | by an existing <a href="#def_commit">commit</a> and to record it based on the tip |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 429 | of the current <a href="#def_branch">branch</a> as a new commit. |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 430 | </p> |
| 431 | </dd> |
| 432 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 433 | <a id="def_clean"></a>clean |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 434 | </dt> |
| 435 | <dd> |
| 436 | <p> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 437 | A <a href="#def_working_tree">working tree</a> is clean, if it |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 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>". |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 440 | </p> |
| 441 | </dd> |
| 442 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 443 | <a id="def_commit"></a>commit |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 444 | </dt> |
| 445 | <dd> |
| 446 | <p> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 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>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 453 | </p> |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 454 | <div class="para"><p>As a verb: The action of storing a new snapshot of the project's |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 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> |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 457 | to point at the new commit.</p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 458 | </dd> |
| 459 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 460 | <a id="def_commit_object"></a>commit object |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 461 | </dt> |
| 462 | <dd> |
| 463 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 464 | An <a href="#def_object">object</a> which contains the information about a |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 465 | particular <a href="#def_revision">revision</a>, such as <a href="#def_parent">parents</a>, committer, |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 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 |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 468 | revision. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 469 | </p> |
| 470 | </dd> |
| 471 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 472 | <a id="def_core_git"></a>core git |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 473 | </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 Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 481 | <a id="def_DAG"></a>DAG |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 482 | </dt> |
| 483 | <dd> |
| 484 | <p> |
Junio C Hamano | 9e1793f | 2008-06-02 07:31:16 | [diff] [blame] | 485 | Directed acyclic graph. The <a href="#def_commit_object">commit objects</a> form a |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 486 | directed acyclic graph, because they have parents (directed), and the |
Junio C Hamano | 9e1793f | 2008-06-02 07:31:16 | [diff] [blame] | 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>). |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 489 | </p> |
| 490 | </dd> |
| 491 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 492 | <a id="def_dangling_object"></a>dangling object |
Junio C Hamano | aa83a7d | 2007-03-05 02:37:29 | [diff] [blame] | 493 | </dt> |
| 494 | <dd> |
| 495 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 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 |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 498 | dangling object has no references to it from any |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 499 | reference or <a href="#def_object">object</a> in the <a href="#def_repository">repository</a>. |
Junio C Hamano | aa83a7d | 2007-03-05 02:37:29 | [diff] [blame] | 500 | </p> |
| 501 | </dd> |
| 502 | <dt> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 503 | <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 Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 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 |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 510 | particular branch. In this case HEAD is said to be "detached". |
| 511 | </p> |
| 512 | </dd> |
| 513 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 514 | <a id="def_dircache"></a>dircache |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 515 | </dt> |
| 516 | <dd> |
| 517 | <p> |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 518 | You are <strong>waaaaay</strong> behind. See <a href="#def_index">index</a>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 519 | </p> |
| 520 | </dd> |
| 521 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 522 | <a id="def_directory"></a>directory |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 523 | </dt> |
| 524 | <dd> |
| 525 | <p> |
| 526 | The list you get with "ls" :-) |
| 527 | </p> |
| 528 | </dd> |
| 529 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 530 | <a id="def_dirty"></a>dirty |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 531 | </dt> |
| 532 | <dd> |
| 533 | <p> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 534 | A <a href="#def_working_tree">working tree</a> is said to be "dirty" if |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 535 | it contains modifications which have not been <a href="#def_commit">committed</a> to the current |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 536 | <a href="#def_branch">branch</a>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 537 | </p> |
| 538 | </dd> |
| 539 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 540 | <a id="def_ent"></a>ent |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 541 | </dt> |
| 542 | <dd> |
| 543 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 544 | Favorite synonym to "<a href="#def_tree-ish">tree-ish</a>" by some total geeks. See |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 545 | <tt>http://en.wikipedia.org/wiki/Ent_(Middle-earth)</tt> for an in-depth |
Junio C Hamano | 51c2ab0 | 2006-07-09 20:38:54 | [diff] [blame] | 546 | explanation. Avoid this term, not to confuse people. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 547 | </p> |
| 548 | </dd> |
| 549 | <dt> |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 550 | <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 Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 559 | <a id="def_fast_forward"></a>fast forward |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 560 | </dt> |
| 561 | <dd> |
| 562 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 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 |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 568 | revision. This will happen frequently on a |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 569 | <a href="#def_tracking_branch">tracking branch</a> of a remote |
| 570 | <a href="#def_repository">repository</a>. |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 571 | </p> |
| 572 | </dd> |
| 573 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 574 | <a id="def_fetch"></a>fetch |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 575 | </dt> |
| 576 | <dd> |
| 577 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 578 | Fetching a <a href="#def_branch">branch</a> means to get the |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 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>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 583 | </p> |
| 584 | </dd> |
| 585 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 586 | <a id="def_file_system"></a>file system |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 587 | </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 Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 596 | <a id="def_git_archive"></a>git archive |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 597 | </dt> |
| 598 | <dd> |
| 599 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 600 | Synonym for <a href="#def_repository">repository</a> (for arch people). |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 601 | </p> |
| 602 | </dd> |
| 603 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 604 | <a id="def_grafts"></a>grafts |
Junio C Hamano | 33db437 | 2006-06-07 19:51:45 | [diff] [blame] | 605 | </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 Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 610 | you can make git pretend the set of <a href="#def_parent">parents</a> a <a href="#def_commit">commit</a> has |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 611 | is different from what was recorded when the commit was |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 612 | created. Configured via the <tt>.git/info/grafts</tt> file. |
Junio C Hamano | 33db437 | 2006-06-07 19:51:45 | [diff] [blame] | 613 | </p> |
| 614 | </dd> |
| 615 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 616 | <a id="def_hash"></a>hash |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 617 | </dt> |
| 618 | <dd> |
| 619 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 620 | In git's context, synonym to <a href="#def_object_name">object name</a>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 621 | </p> |
| 622 | </dd> |
| 623 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 624 | <a id="def_head"></a>head |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 625 | </dt> |
| 626 | <dd> |
| 627 | <p> |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 628 | A <a href="#def_ref">named reference</a> to the <a href="#def_commit">commit</a> at the tip of a |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 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>.) |
| 632 | </p> |
| 633 | </dd> |
| 634 | <dt> |
| 635 | <a id="def_HEAD"></a>HEAD |
| 636 | </dt> |
| 637 | <dd> |
| 638 | <p> |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 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 |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 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. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 644 | </p> |
| 645 | </dd> |
| 646 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 647 | <a id="def_head_ref"></a>head ref |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 648 | </dt> |
| 649 | <dd> |
| 650 | <p> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 651 | A synonym for <a href="#def_head">head</a>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 652 | </p> |
| 653 | </dd> |
| 654 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 655 | <a id="def_hook"></a>hook |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 656 | </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 Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 663 | operation is done. The hook scripts are found in the |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 664 | <tt>$GIT_DIR/hooks/</tt> directory, and are enabled by simply |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 665 | making them executable. |
| 666 | </p> |
| 667 | </dd> |
| 668 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 669 | <a id="def_index"></a>index |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 670 | </dt> |
| 671 | <dd> |
| 672 | <p> |
| 673 | A collection of files with stat information, whose contents are stored |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 674 | 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 Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 678 | </p> |
| 679 | </dd> |
| 680 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 681 | <a id="def_index_entry"></a>index entry |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 682 | </dt> |
| 683 | <dd> |
| 684 | <p> |
| 685 | The information regarding a particular file, stored in the |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 686 | <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 Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 689 | </p> |
| 690 | </dd> |
| 691 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 692 | <a id="def_master"></a>master |
Junio C Hamano | f3e80c0 | 2006-01-11 00:54:55 | [diff] [blame] | 693 | </dt> |
| 694 | <dd> |
| 695 | <p> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 696 | 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 Hamano | f3e80c0 | 2006-01-11 00:54:55 | [diff] [blame] | 701 | </p> |
| 702 | </dd> |
| 703 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 704 | <a id="def_merge"></a>merge |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 705 | </dt> |
| 706 | <dd> |
| 707 | <p> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 708 | 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 Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 720 | </p> |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 721 | <div class="para"><p>As a noun: unless it is a <a href="#def_fast_forward">fast forward</a>, a |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 722 | successful merge results in the creation of a new <a href="#def_commit">commit</a> |
| 723 | representing 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>. |
| 725 | This commit is referred to as a "merge commit", or sometimes just a |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 726 | "merge".</p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 727 | </dd> |
| 728 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 729 | <a id="def_object"></a>object |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 730 | </dt> |
| 731 | <dd> |
| 732 | <p> |
| 733 | The unit of storage in git. It is uniquely identified by the |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 734 | <a href="#def_SHA1">SHA1</a> of its contents. Consequently, an |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 735 | object can not be changed. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 736 | </p> |
| 737 | </dd> |
| 738 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 739 | <a id="def_object_database"></a>object database |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 740 | </dt> |
| 741 | <dd> |
| 742 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 743 | 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 Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 745 | live in <tt>$GIT_DIR/objects/</tt>. |
| 746 | </p> |
| 747 | </dd> |
| 748 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 749 | <a id="def_object_identifier"></a>object identifier |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 750 | </dt> |
| 751 | <dd> |
| 752 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 753 | Synonym for <a href="#def_object_name">object name</a>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 754 | </p> |
| 755 | </dd> |
| 756 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 757 | <a id="def_object_name"></a>object name |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 758 | </dt> |
| 759 | <dd> |
| 760 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 761 | The unique identifier of an <a href="#def_object">object</a>. The <a href="#def_hash">hash</a> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 762 | of the object's contents using the Secure Hash Algorithm |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 763 | 1 and usually represented by the 40 character hexadecimal encoding of |
Junio C Hamano | 3a70234 | 2007-12-12 21:34:02 | [diff] [blame] | 764 | the <a href="#def_hash">hash</a> of the object. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 765 | </p> |
| 766 | </dd> |
| 767 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 768 | <a id="def_object_type"></a>object type |
Junio C Hamano | 21c0b42 | 2006-10-12 19:10:36 | [diff] [blame] | 769 | </dt> |
| 770 | <dd> |
| 771 | <p> |
Junio C Hamano | 9e1793f | 2008-06-02 07:31:16 | [diff] [blame] | 772 | 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 Hamano | 21c0b42 | 2006-10-12 19:10:36 | [diff] [blame] | 776 | </p> |
| 777 | </dd> |
| 778 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 779 | <a id="def_octopus"></a>octopus |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 780 | </dt> |
| 781 | <dd> |
| 782 | <p> |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 783 | To <a href="#def_merge">merge</a> more than two <a href="#def_branch">branches</a>. Also denotes an |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 784 | intelligent predator. |
| 785 | </p> |
| 786 | </dd> |
| 787 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 788 | <a id="def_origin"></a>origin |
Junio C Hamano | f3e80c0 | 2006-01-11 00:54:55 | [diff] [blame] | 789 | </dt> |
| 790 | <dd> |
| 791 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 792 | The default upstream <a href="#def_repository">repository</a>. Most projects have |
Junio C Hamano | d3361ad | 2007-01-01 03:20:24 | [diff] [blame] | 793 | at least one upstream project which they track. By default |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 794 | <em>origin</em> is used for that purpose. New upstream updates |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 795 | will be fetched into remote <a href="#def_tracking_branch">tracking branches</a> named |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 796 | origin/name-of-upstream-branch, which you can see using |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 797 | "<tt>git branch -r</tt>". |
Junio C Hamano | f3e80c0 | 2006-01-11 00:54:55 | [diff] [blame] | 798 | </p> |
| 799 | </dd> |
| 800 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 801 | <a id="def_pack"></a>pack |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 802 | </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 Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 810 | <a id="def_pack_index"></a>pack index |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 811 | </dt> |
| 812 | <dd> |
| 813 | <p> |
| 814 | The list of identifiers, and other information, of the objects in a |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 815 | <a href="#def_pack">pack</a>, to assist in efficiently accessing the contents of a |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 816 | pack. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 817 | </p> |
| 818 | </dd> |
| 819 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 820 | <a id="def_parent"></a>parent |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 821 | </dt> |
| 822 | <dd> |
| 823 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 824 | A <a href="#def_commit_object">commit object</a> contains a (possibly empty) list |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 825 | of the logical predecessor(s) in the line of development, i.e. its |
| 826 | parents. |
| 827 | </p> |
| 828 | </dd> |
| 829 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 830 | <a id="def_pickaxe"></a>pickaxe |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 831 | </dt> |
| 832 | <dd> |
| 833 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 834 | The term <a href="#def_pickaxe">pickaxe</a> refers to an option to the diffcore |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 835 | routines that help select changes that add or delete a given text |
Junio C Hamano | 9e1793f | 2008-06-02 07:31:16 | [diff] [blame] | 836 | string. With the <tt>--pickaxe-all</tt> option, it can be used to view the full |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 837 | <a href="#def_changeset">changeset</a> that introduced or removed, say, a |
Junio C Hamano | c51fede | 2007-03-12 07:29:20 | [diff] [blame] | 838 | particular line of text. See <a href="git-diff.html">git-diff(1)</a>. |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 839 | </p> |
| 840 | </dd> |
| 841 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 842 | <a id="def_plumbing"></a>plumbing |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 843 | </dt> |
| 844 | <dd> |
| 845 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 846 | Cute name for <a href="#def_core_git">core git</a>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 847 | </p> |
| 848 | </dd> |
| 849 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 850 | <a id="def_porcelain"></a>porcelain |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 851 | </dt> |
| 852 | <dd> |
| 853 | <p> |
| 854 | Cute name for programs and program suites depending on |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 855 | <a href="#def_core_git">core git</a>, presenting a high level access to |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 856 | core git. Porcelains expose more of a <a href="#def_SCM">SCM</a> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 857 | interface than the <a href="#def_plumbing">plumbing</a>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 858 | </p> |
| 859 | </dd> |
| 860 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 861 | <a id="def_pull"></a>pull |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 862 | </dt> |
| 863 | <dd> |
| 864 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 865 | Pulling a <a href="#def_branch">branch</a> means to <a href="#def_fetch">fetch</a> it and |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 866 | <a href="#def_merge">merge</a> it. See also <a href="git-pull.html">git-pull(1)</a>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 867 | </p> |
| 868 | </dd> |
| 869 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 870 | <a id="def_push"></a>push |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 871 | </dt> |
| 872 | <dd> |
| 873 | <p> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 874 | Pushing a <a href="#def_branch">branch</a> means to get the branch's |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 875 | <a href="#def_head_ref">head ref</a> from a remote <a href="#def_repository">repository</a>, |
Junio C Hamano | 764a667 | 2007-10-23 01:23:31 | [diff] [blame] | 876 | find out if it is a direct ancestor to the branch's local |
| 877 | head ref, and in that case, putting all |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 878 | objects, which are <a href="#def_reachable">reachable</a> from the local |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 879 | head ref, and which are missing from the remote |
| 880 | repository, into the remote |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 881 | <a href="#def_object_database">object database</a>, and updating the remote |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 882 | 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 Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 884 | </p> |
| 885 | </dd> |
| 886 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 887 | <a id="def_reachable"></a>reachable |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 888 | </dt> |
| 889 | <dd> |
| 890 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 891 | All of the ancestors of a given <a href="#def_commit">commit</a> are said to be |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 892 | "reachable" from that commit. More |
| 893 | generally, one <a href="#def_object">object</a> is reachable from |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 894 | 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 Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 899 | </p> |
| 900 | </dd> |
| 901 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 902 | <a id="def_rebase"></a>rebase |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 903 | </dt> |
| 904 | <dd> |
| 905 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 906 | 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 Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 909 | </p> |
| 910 | </dd> |
| 911 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 912 | <a id="def_ref"></a>ref |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 913 | </dt> |
| 914 | <dd> |
| 915 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 916 | 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 Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 918 | <tt>$GIT_DIR/refs/</tt>. |
| 919 | </p> |
| 920 | </dd> |
| 921 | <dt> |
Junio C Hamano | bb0f404 | 2007-07-04 06:41:40 | [diff] [blame] | 922 | <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 Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 927 | 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 Hamano | bb0f404 | 2007-07-04 06:41:40 | [diff] [blame] | 929 | yesterday 9:14pm. See <a href="git-reflog.html">git-reflog(1)</a> for details. |
| 930 | </p> |
| 931 | </dd> |
| 932 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 933 | <a id="def_refspec"></a>refspec |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 934 | </dt> |
| 935 | <dd> |
| 936 | <p> |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 937 | A "refspec" is used by <a href="#def_fetch">fetch</a> and |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 938 | <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 <src>:<dst>, 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 Hamano | 764a667 | 2007-10-23 01:23:31 | [diff] [blame] | 947 | <a href="git-push.html">git-push(1)</a>. |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 948 | </p> |
| 949 | </dd> |
| 950 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 951 | <a id="def_repository"></a>repository |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 952 | </dt> |
| 953 | <dd> |
| 954 | <p> |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 955 | A collection of <a href="#def_ref">refs</a> together with an |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 956 | <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 Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 958 | 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 Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 961 | </p> |
| 962 | </dd> |
| 963 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 964 | <a id="def_resolve"></a>resolve |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 965 | </dt> |
| 966 | <dd> |
| 967 | <p> |
| 968 | The action of fixing up manually what a failed automatic |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 969 | <a href="#def_merge">merge</a> left behind. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 970 | </p> |
| 971 | </dd> |
| 972 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 973 | <a id="def_revision"></a>revision |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 974 | </dt> |
| 975 | <dd> |
| 976 | <p> |
| 977 | A particular state of files and directories which was stored in the |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 978 | <a href="#def_object_database">object database</a>. It is referenced by a |
| 979 | <a href="#def_commit_object">commit object</a>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 980 | </p> |
| 981 | </dd> |
| 982 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 983 | <a id="def_rewind"></a>rewind |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 984 | </dt> |
| 985 | <dd> |
| 986 | <p> |
| 987 | To throw away part of the development, i.e. to assign the |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 988 | <a href="#def_head">head</a> to an earlier <a href="#def_revision">revision</a>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 989 | </p> |
| 990 | </dd> |
| 991 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 992 | <a id="def_SCM"></a>SCM |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 993 | </dt> |
| 994 | <dd> |
| 995 | <p> |
| 996 | Source code management (tool). |
| 997 | </p> |
| 998 | </dd> |
| 999 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1000 | <a id="def_SHA1"></a>SHA1 |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1001 | </dt> |
| 1002 | <dd> |
| 1003 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1004 | Synonym for <a href="#def_object_name">object name</a>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1005 | </p> |
| 1006 | </dd> |
| 1007 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1008 | <a id="def_shallow_repository"></a>shallow repository |
Junio C Hamano | 4f9a605 | 2007-01-17 20:25:16 | [diff] [blame] | 1009 | </dt> |
| 1010 | <dd> |
| 1011 | <p> |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 1012 | 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 Hamano | 4f9a605 | 2007-01-17 20:25:16 | [diff] [blame] | 1014 | words, git is told to pretend that these commits do not have the |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1015 | 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 Hamano | 4f9a605 | 2007-01-17 20:25:16 | [diff] [blame] | 1016 | recent history of a project even though the real history recorded in the |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 1017 | upstream is much larger. A shallow repository |
Junio C Hamano | 9e1793f | 2008-06-02 07:31:16 | [diff] [blame] | 1018 | is created by giving the <tt>--depth</tt> option to <a href="git-clone.html">git-clone(1)</a>, and |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1019 | its history can be later deepened with <a href="git-fetch.html">git-fetch(1)</a>. |
Junio C Hamano | 4f9a605 | 2007-01-17 20:25:16 | [diff] [blame] | 1020 | </p> |
| 1021 | </dd> |
| 1022 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1023 | <a id="def_symref"></a>symref |
Junio C Hamano | 3a97102 | 2006-11-18 22:17:58 | [diff] [blame] | 1024 | </dt> |
| 1025 | <dd> |
| 1026 | <p> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 1027 | 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 Hamano | 3a97102 | 2006-11-18 22:17:58 | [diff] [blame] | 1033 | </p> |
| 1034 | </dd> |
| 1035 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1036 | <a id="def_tag"></a>tag |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1037 | </dt> |
| 1038 | <dd> |
| 1039 | <p> |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 1040 | A <a href="#def_ref">ref</a> pointing to a <a href="#def_tag_object">tag</a> or |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1041 | <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 Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 1047 | commit ancestry <a href="#def_chain">chain</a>. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1048 | </p> |
| 1049 | </dd> |
| 1050 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1051 | <a id="def_tag_object"></a>tag object |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1052 | </dt> |
| 1053 | <dd> |
| 1054 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1055 | An <a href="#def_object">object</a> containing a <a href="#def_ref">ref</a> pointing to |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 1056 | another object, which can contain a message just like a |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1057 | <a href="#def_commit_object">commit object</a>. It can also contain a (PGP) |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 1058 | signature, in which case it is called a "signed tag object". |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1059 | </p> |
| 1060 | </dd> |
| 1061 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1062 | <a id="def_topic_branch"></a>topic branch |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 1063 | </dt> |
| 1064 | <dd> |
| 1065 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1066 | A regular git <a href="#def_branch">branch</a> that is used by a developer to |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 1067 | 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 Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1074 | <a id="def_tracking_branch"></a>tracking branch |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 1075 | </dt> |
| 1076 | <dd> |
| 1077 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1078 | A regular git <a href="#def_branch">branch</a> that is used to follow changes from |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 1079 | 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 Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1082 | identified as the right-hand-side <a href="#def_ref">ref</a> in a Pull: |
| 1083 | <a href="#def_refspec">refspec</a>. |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 1084 | </p> |
| 1085 | </dd> |
| 1086 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1087 | <a id="def_tree"></a>tree |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1088 | </dt> |
| 1089 | <dd> |
| 1090 | <p> |
Junio C Hamano | 3646098 | 2007-05-27 04:29:12 | [diff] [blame] | 1091 | 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 Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 1092 | (i.e. a stored representation of a working tree). |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1093 | </p> |
| 1094 | </dd> |
| 1095 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1096 | <a id="def_tree_object"></a>tree object |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1097 | </dt> |
| 1098 | <dd> |
| 1099 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1100 | 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 Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1103 | </p> |
| 1104 | </dd> |
| 1105 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1106 | <a id="def_tree-ish"></a>tree-ish |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1107 | </dt> |
| 1108 | <dd> |
| 1109 | <p> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 1110 | 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 Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1111 | </p> |
| 1112 | </dd> |
| 1113 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1114 | <a id="def_unmerged_index"></a>unmerged index |
Junio C Hamano | 21c0b42 | 2006-10-12 19:10:36 | [diff] [blame] | 1115 | </dt> |
| 1116 | <dd> |
| 1117 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1118 | An <a href="#def_index">index</a> which contains unmerged |
| 1119 | <a href="#def_index_entry">index entries</a>. |
Junio C Hamano | 21c0b42 | 2006-10-12 19:10:36 | [diff] [blame] | 1120 | </p> |
| 1121 | </dd> |
| 1122 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1123 | <a id="def_unreachable_object"></a>unreachable object |
Junio C Hamano | aa83a7d | 2007-03-05 02:37:29 | [diff] [blame] | 1124 | </dt> |
| 1125 | <dd> |
| 1126 | <p> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1127 | 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 Hamano | aa83a7d | 2007-03-05 02:37:29 | [diff] [blame] | 1129 | </p> |
| 1130 | </dd> |
| 1131 | <dt> |
Junio C Hamano | 3d5b41f | 2007-03-26 02:33:41 | [diff] [blame] | 1132 | <a id="def_working_tree"></a>working tree |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1133 | </dt> |
| 1134 | <dd> |
| 1135 | <p> |
Junio C Hamano | 75485c8 | 2007-05-19 04:20:33 | [diff] [blame] | 1136 | 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 Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1139 | </p> |
| 1140 | </dd> |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 1141 | </dl></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1142 | </div> |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 1143 | <h2 id="_see_also">SEE ALSO</h2> |
Junio C Hamano | 9e1793f | 2008-06-02 07:31:16 | [diff] [blame] | 1144 | <div class="sectionbody"> |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 1145 | <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 Hamano | 9e1793f | 2008-06-02 07:31:16 | [diff] [blame] | 1148 | </div> |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 1149 | <h2 id="_git">GIT</h2> |
Junio C Hamano | 9e1793f | 2008-06-02 07:31:16 | [diff] [blame] | 1150 | <div class="sectionbody"> |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 1151 | <div class="para"><p>Part of the <a href="git.html">git(1)</a> suite.</p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1152 | </div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1153 | <div id="footer"> |
| 1154 | <div id="footer-text"> |
Junio C Hamano | d32738e | 2008-07-09 19:53:42 | [diff] [blame] | 1155 | Last updated 2008-07-09 19:53:07 UTC |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1156 | </div> |
| 1157 | </div> |
| 1158 | </body> |
| 1159 | </html> |