Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [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 | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 6 | <meta name="generator" content="AsciiDoc 8.2.5" /> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [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 | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 19 | a { |
| 20 | color: blue; |
| 21 | text-decoration: underline; |
| 22 | } |
| 23 | a:visited { |
| 24 | color: fuchsia; |
| 25 | } |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [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 | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 47 | h1, h2, h3 { |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 48 | border-bottom: 2px solid silver; |
| 49 | } |
| 50 | h2 { |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 51 | padding-top: 0.5em; |
| 52 | } |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 53 | h3 { |
| 54 | float: left; |
| 55 | } |
| 56 | h3 + * { |
| 57 | clear: left; |
| 58 | } |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [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 | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 83 | font-size: 1.1em; |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [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 | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 152 | div.listingblock { |
| 153 | margin-right: 0%; |
| 154 | } |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [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 | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 164 | |
| 165 | div.attribution { |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 166 | text-align: right; |
| 167 | } |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 168 | div.verseblock + div.attribution { |
| 169 | text-align: left; |
| 170 | } |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [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 | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 214 | div.olist2 ol { |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 215 | list-style-type: lower-alpha; |
| 216 | } |
| 217 | |
| 218 | div.tableblock > table { |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 219 | border: 3px solid #527bbd; |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [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 | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 233 | div.hlist td { |
| 234 | padding-bottom: 5px; |
| 235 | } |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [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 | ba4b928 | 2008-07-06 05:20:31 | [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 | f7c042d | 2008-06-06 22:50:53 | [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 | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 303 | |
| 304 | /* IE6 sets dynamically generated links as visited. */ |
| 305 | div#toc a:visited { color: blue; } |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 306 | </style> |
| 307 | <title>gitrepository-layout(5)</title> |
| 308 | </head> |
| 309 | <body> |
| 310 | <div id="header"> |
| 311 | <h1> |
| 312 | gitrepository-layout(5) Manual Page |
| 313 | </h1> |
| 314 | <h2>NAME</h2> |
| 315 | <div class="sectionbody"> |
| 316 | <p>gitrepository-layout - |
| 317 | Git Repository Layout |
| 318 | </p> |
| 319 | </div> |
| 320 | </div> |
| 321 | <h2>SYNOPSIS</h2> |
| 322 | <div class="sectionbody"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 323 | <div class="para"><p>$GIT_DIR/*</p></div> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 324 | </div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 325 | <h2 id="_description">DESCRIPTION</h2> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 326 | <div class="sectionbody"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 327 | <div class="para"><p>You may find these things in your git repository (<tt>.git</tt> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 328 | directory for a repository associated with your working tree, or |
| 329 | <tt><project>.git</tt> directory for a public <em>bare</em> repository. It is |
| 330 | also possible to have a working tree where <tt>.git</tt> is a plain |
| 331 | ascii file containing <tt>gitdir: <path></tt>, i.e. the path to the |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 332 | real git repository).</p></div> |
| 333 | <div class="vlist"><dl> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 334 | <dt> |
| 335 | objects |
| 336 | </dt> |
| 337 | <dd> |
| 338 | <p> |
| 339 | Object store associated with this repository. Usually |
| 340 | an object store is self sufficient (i.e. all the objects |
| 341 | that are referred to by an object found in it are also |
| 342 | found in it), but there are couple of ways to violate |
| 343 | it. |
| 344 | </p> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 345 | <div class="olist"><ol> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 346 | <li> |
| 347 | <p> |
| 348 | You could populate the repository by running a commit walker |
| 349 | without <tt>-a</tt> option. Depending on which options are given, you |
| 350 | could have only commit objects without associated blobs and |
| 351 | trees this way, for example. A repository with this kind of |
| 352 | incomplete object store is not suitable to be published to the |
| 353 | outside world but sometimes useful for private repository. |
| 354 | </p> |
| 355 | </li> |
| 356 | <li> |
| 357 | <p> |
| 358 | You also could have an incomplete but locally usable repository |
| 359 | by cloning shallowly. See <a href="git-clone.html">git-clone(1)</a>. |
| 360 | </p> |
| 361 | </li> |
| 362 | <li> |
| 363 | <p> |
| 364 | You can be using <tt>objects/info/alternates</tt> mechanism, or |
| 365 | <tt>$GIT_ALTERNATE_OBJECT_DIRECTORIES</tt> mechanism to <em>borrow</em> |
| 366 | objects from other object stores. A repository with this kind |
| 367 | of incomplete object store is not suitable to be published for |
| 368 | use with dumb transports but otherwise is OK as long as |
| 369 | <tt>objects/info/alternates</tt> points at the right object stores |
| 370 | it borrows from. |
| 371 | </p> |
| 372 | </li> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 373 | </ol></div> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 374 | </dd> |
| 375 | <dt> |
| 376 | objects/[0-9a-f][0-9a-f] |
| 377 | </dt> |
| 378 | <dd> |
| 379 | <p> |
| 380 | Traditionally, each object is stored in its own file. |
| 381 | They are split into 256 subdirectories using the first |
| 382 | two letters from its object name to keep the number of |
| 383 | directory entries <tt>objects</tt> directory itself needs to |
| 384 | hold. Objects found here are often called <em>unpacked</em> |
| 385 | (or <em>loose</em>) objects. |
| 386 | </p> |
| 387 | </dd> |
| 388 | <dt> |
| 389 | objects/pack |
| 390 | </dt> |
| 391 | <dd> |
| 392 | <p> |
| 393 | Packs (files that store many object in compressed form, |
| 394 | along with index files to allow them to be randomly |
| 395 | accessed) are found in this directory. |
| 396 | </p> |
| 397 | </dd> |
| 398 | <dt> |
| 399 | objects/info |
| 400 | </dt> |
| 401 | <dd> |
| 402 | <p> |
| 403 | Additional information about the object store is |
| 404 | recorded in this directory. |
| 405 | </p> |
| 406 | </dd> |
| 407 | <dt> |
| 408 | objects/info/packs |
| 409 | </dt> |
| 410 | <dd> |
| 411 | <p> |
| 412 | This file is to help dumb transports discover what packs |
| 413 | are available in this object store. Whenever a pack is |
| 414 | added or removed, <tt>git update-server-info</tt> should be run |
| 415 | to keep this file up-to-date if the repository is |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 416 | published for dumb transports. <em>git-repack</em> does this |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 417 | by default. |
| 418 | </p> |
| 419 | </dd> |
| 420 | <dt> |
| 421 | objects/info/alternates |
| 422 | </dt> |
| 423 | <dd> |
| 424 | <p> |
| 425 | This file records paths to alternate object stores that |
| 426 | this object store borrows objects from, one pathname per |
| 427 | line. Note that not only native Git tools use it locally, |
| 428 | but the HTTP fetcher also tries to use it remotely; this |
| 429 | will usually work if you have relative paths (relative |
| 430 | to the object database, not to the repository!) in your |
| 431 | alternates file, but it will not work if you use absolute |
| 432 | paths unless the absolute path in filesystem and web URL |
| 433 | is the same. See also <em>objects/info/http-alternates</em>. |
| 434 | </p> |
| 435 | </dd> |
| 436 | <dt> |
| 437 | objects/info/http-alternates |
| 438 | </dt> |
| 439 | <dd> |
| 440 | <p> |
| 441 | This file records URLs to alternate object stores that |
| 442 | this object store borrows objects from, to be used when |
| 443 | the repository is fetched over HTTP. |
| 444 | </p> |
| 445 | </dd> |
| 446 | <dt> |
| 447 | refs |
| 448 | </dt> |
| 449 | <dd> |
| 450 | <p> |
| 451 | References are stored in subdirectories of this |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 452 | directory. The <em>git-prune</em> command knows to keep |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 453 | objects reachable from refs found in this directory and |
| 454 | its subdirectories. |
| 455 | </p> |
| 456 | </dd> |
| 457 | <dt> |
| 458 | refs/heads/<tt>name</tt> |
| 459 | </dt> |
| 460 | <dd> |
| 461 | <p> |
| 462 | records tip-of-the-tree commit objects of branch <tt>name</tt> |
| 463 | </p> |
| 464 | </dd> |
| 465 | <dt> |
| 466 | refs/tags/<tt>name</tt> |
| 467 | </dt> |
| 468 | <dd> |
| 469 | <p> |
| 470 | records any object name (not necessarily a commit |
| 471 | object, or a tag object that points at a commit object). |
| 472 | </p> |
| 473 | </dd> |
| 474 | <dt> |
| 475 | refs/remotes/<tt>name</tt> |
| 476 | </dt> |
| 477 | <dd> |
| 478 | <p> |
| 479 | records tip-of-the-tree commit objects of branches copied |
| 480 | from a remote repository. |
| 481 | </p> |
| 482 | </dd> |
| 483 | <dt> |
| 484 | packed-refs |
| 485 | </dt> |
| 486 | <dd> |
| 487 | <p> |
| 488 | records the same information as refs/heads/, refs/tags/, |
| 489 | and friends record in a more efficient way. See |
| 490 | <a href="git-pack-refs.html">git-pack-refs(1)</a>. |
| 491 | </p> |
| 492 | </dd> |
| 493 | <dt> |
| 494 | HEAD |
| 495 | </dt> |
| 496 | <dd> |
| 497 | <p> |
| 498 | A symref (see glossary) to the <tt>refs/heads/</tt> namespace |
| 499 | describing the currently active branch. It does not mean |
| 500 | much if the repository is not associated with any working tree |
| 501 | (i.e. a <em>bare</em> repository), but a valid git repository |
| 502 | <strong>must</strong> have the HEAD file; some porcelains may use it to |
| 503 | guess the designated "default" branch of the repository |
| 504 | (usually <em>master</em>). It is legal if the named branch |
| 505 | <em>name</em> does not (yet) exist. In some legacy setups, it is |
| 506 | a symbolic link instead of a symref that points at the current |
| 507 | branch. |
| 508 | </p> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 509 | <div class="para"><p>HEAD can also record a specific commit directly, instead of |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 510 | being a symref to point at the current branch. Such a state |
| 511 | is often called <em>detached HEAD</em>, and almost all commands work |
| 512 | identically as normal. See <a href="git-checkout.html">git-checkout(1)</a> for |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 513 | details.</p></div> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 514 | </dd> |
| 515 | <dt> |
| 516 | branches |
| 517 | </dt> |
| 518 | <dd> |
| 519 | <p> |
| 520 | A slightly deprecated way to store shorthands to be used |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 521 | to specify URL to <em>git-fetch</em>, <em>git-pull</em> and <em>git-push</em> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 522 | commands is to store a file in <tt>branches/<name></tt> and |
| 523 | give <em>name</em> to these commands in place of <em>repository</em> |
| 524 | argument. |
| 525 | </p> |
| 526 | </dd> |
| 527 | <dt> |
| 528 | hooks |
| 529 | </dt> |
| 530 | <dd> |
| 531 | <p> |
| 532 | Hooks are customization scripts used by various git |
| 533 | commands. A handful of sample hooks are installed when |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 534 | <em>git-init</em> is run, but all of them are disabled by |
Junio C Hamano | 116db35 | 2008-12-17 19:48:40 | [diff] [blame] | 535 | default. To enable, the <tt>.sample</tt> suffix has to be |
| 536 | removed from the filename by renaming. |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 537 | Read <a href="githooks.html">githooks(5)</a> for more details about |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 538 | each hook. |
| 539 | </p> |
| 540 | </dd> |
| 541 | <dt> |
| 542 | index |
| 543 | </dt> |
| 544 | <dd> |
| 545 | <p> |
| 546 | The current index file for the repository. It is |
| 547 | usually not found in a bare repository. |
| 548 | </p> |
| 549 | </dd> |
| 550 | <dt> |
| 551 | info |
| 552 | </dt> |
| 553 | <dd> |
| 554 | <p> |
| 555 | Additional information about the repository is recorded |
| 556 | in this directory. |
| 557 | </p> |
| 558 | </dd> |
| 559 | <dt> |
| 560 | info/refs |
| 561 | </dt> |
| 562 | <dd> |
| 563 | <p> |
| 564 | This file helps dumb transports discover what refs are |
| 565 | available in this repository. If the repository is |
| 566 | published for dumb transports, this file should be |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 567 | regenerated by <em>git-update-server-info</em> every time a tag |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 568 | or branch is created or modified. This is normally done |
| 569 | from the <tt>hooks/update</tt> hook, which is run by the |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 570 | <em>git-receive-pack</em> command when you <em>git-push</em> into the |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 571 | repository. |
| 572 | </p> |
| 573 | </dd> |
| 574 | <dt> |
| 575 | info/grafts |
| 576 | </dt> |
| 577 | <dd> |
| 578 | <p> |
| 579 | This file records fake commit ancestry information, to |
| 580 | pretend the set of parents a commit has is different |
| 581 | from how the commit was actually created. One record |
| 582 | per line describes a commit and its fake parents by |
| 583 | listing their 40-byte hexadecimal object names separated |
| 584 | by a space and terminated by a newline. |
| 585 | </p> |
| 586 | </dd> |
| 587 | <dt> |
| 588 | info/exclude |
| 589 | </dt> |
| 590 | <dd> |
| 591 | <p> |
| 592 | This file, by convention among Porcelains, stores the |
| 593 | exclude pattern list. <tt>.gitignore</tt> is the per-directory |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 594 | ignore file. <em>git-status</em>, <em>git-add</em>, <em>git-rm</em> and |
| 595 | <em>git-clean</em> look at it but the core git commands do not look |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 596 | at it. See also: <a href="gitignore.html">gitignore(5)</a>. |
| 597 | </p> |
| 598 | </dd> |
| 599 | <dt> |
| 600 | remotes |
| 601 | </dt> |
| 602 | <dd> |
| 603 | <p> |
| 604 | Stores shorthands to be used to give URL and default |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 605 | refnames to interact with remote repository to |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 606 | <em>git-fetch</em>, <em>git-pull</em> and <em>git-push</em> commands. |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 607 | </p> |
| 608 | </dd> |
| 609 | <dt> |
| 610 | logs |
| 611 | </dt> |
| 612 | <dd> |
| 613 | <p> |
| 614 | Records of changes made to refs are stored in this |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 615 | directory. See <a href="git-update-ref.html">git-update-ref(1)</a> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 616 | for more information. |
| 617 | </p> |
| 618 | </dd> |
| 619 | <dt> |
| 620 | logs/refs/heads/<tt>name</tt> |
| 621 | </dt> |
| 622 | <dd> |
| 623 | <p> |
| 624 | Records all changes made to the branch tip named <tt>name</tt>. |
| 625 | </p> |
| 626 | </dd> |
| 627 | <dt> |
| 628 | logs/refs/tags/<tt>name</tt> |
| 629 | </dt> |
| 630 | <dd> |
| 631 | <p> |
| 632 | Records all changes made to the tag named <tt>name</tt>. |
| 633 | </p> |
| 634 | </dd> |
| 635 | <dt> |
| 636 | shallow |
| 637 | </dt> |
| 638 | <dd> |
| 639 | <p> |
| 640 | This is similar to <tt>info/grafts</tt> but is internally used |
| 641 | and maintained by shallow clone mechanism. See <tt>--depth</tt> |
| 642 | option to <a href="git-clone.html">git-clone(1)</a> and <a href="git-fetch.html">git-fetch(1)</a>. |
| 643 | </p> |
| 644 | </dd> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 645 | </dl></div> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 646 | </div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 647 | <h2 id="_see_also">SEE ALSO</h2> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 648 | <div class="sectionbody"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 649 | <div class="para"><p><a href="git-init.html">git-init(1)</a>, |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 650 | <a href="git-clone.html">git-clone(1)</a>, |
| 651 | <a href="git-fetch.html">git-fetch(1)</a>, |
| 652 | <a href="git-pack-refs.html">git-pack-refs(1)</a>, |
| 653 | <a href="git-gc.html">git-gc(1)</a>, |
| 654 | <a href="git-checkout.html">git-checkout(1)</a>, |
| 655 | <a href="gitglossary.html">gitglossary(7)</a>, |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 656 | <a href="user-manual.html">The Git User's Manual</a></p></div> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 657 | </div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 658 | <h2 id="_git">GIT</h2> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 659 | <div class="sectionbody"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 660 | <div class="para"><p>Part of the <a href="git.html">git(1)</a> suite.</p></div> |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 661 | </div> |
| 662 | <div id="footer"> |
| 663 | <div id="footer-text"> |
Junio C Hamano | 116db35 | 2008-12-17 19:48:40 | [diff] [blame] | 664 | Last updated 2008-12-17 19:48:22 UTC |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 665 | </div> |
| 666 | </div> |
| 667 | </body> |
| 668 | </html> |