Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [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 | dfccbb0 | 2008-05-26 01:16:14 | [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 | dfccbb0 | 2008-05-26 01:16:14 | [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 | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 48 | border-bottom: 2px solid silver; |
| 49 | } |
| 50 | h2 { |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [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 | dfccbb0 | 2008-05-26 01:16:14 | [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 | dfccbb0 | 2008-05-26 01:16:14 | [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 | dfccbb0 | 2008-05-26 01:16:14 | [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 | dfccbb0 | 2008-05-26 01:16:14 | [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 | dfccbb0 | 2008-05-26 01:16:14 | [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 | dfccbb0 | 2008-05-26 01:16:14 | [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 | dfccbb0 | 2008-05-26 01:16:14 | [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 | dfccbb0 | 2008-05-26 01:16:14 | [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 | dfccbb0 | 2008-05-26 01:16:14 | [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 | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 306 | </style> |
| 307 | <title>gittutorial-2(7)</title> |
| 308 | </head> |
| 309 | <body> |
| 310 | <div id="header"> |
| 311 | <h1> |
| 312 | gittutorial-2(7) Manual Page |
| 313 | </h1> |
| 314 | <h2>NAME</h2> |
| 315 | <div class="sectionbody"> |
| 316 | <p>gittutorial-2 - |
| 317 | A tutorial introduction to git: part two |
| 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 *</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [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 | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 326 | <div class="sectionbody"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 327 | <div class="para"><p>You should work through <a href="gittutorial.html">gittutorial(7)</a> before reading this tutorial.</p></div> |
| 328 | <div class="para"><p>The goal of this tutorial is to introduce two fundamental pieces of |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 329 | git's architecture--the object database and the index file--and to |
| 330 | provide the reader with everything necessary to understand the rest |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 331 | of the git documentation.</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 332 | </div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 333 | <h2 id="_the_git_object_database">The git object database</h2> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 334 | <div class="sectionbody"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 335 | <div class="para"><p>Let's start a new project and create a small amount of history:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 336 | <div class="listingblock"> |
| 337 | <div class="content"> |
| 338 | <pre><tt>$ mkdir test-project |
| 339 | $ cd test-project |
| 340 | $ git init |
| 341 | Initialized empty Git repository in .git/ |
| 342 | $ echo 'hello world' > file.txt |
| 343 | $ git add . |
| 344 | $ git commit -a -m "initial commit" |
Junio C Hamano | bc4852e | 2009-01-21 10:51:14 | [diff] [blame] | 345 | [master (root-commit) 54196cc] initial commit |
Junio C Hamano | a2deec5 | 2008-10-18 18:58:09 | [diff] [blame] | 346 | 1 files changed, 1 insertions(+), 0 deletions(-) |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 347 | create mode 100644 file.txt |
| 348 | $ echo 'hello world!' >file.txt |
| 349 | $ git commit -a -m "add emphasis" |
Junio C Hamano | bc4852e | 2009-01-21 10:51:14 | [diff] [blame] | 350 | [master c4d59f3] add emphasis |
Junio C Hamano | a2deec5 | 2008-10-18 18:58:09 | [diff] [blame] | 351 | 1 files changed, 1 insertions(+), 1 deletions(-)</tt></pre> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 352 | </div></div> |
Junio C Hamano | a2deec5 | 2008-10-18 18:58:09 | [diff] [blame] | 353 | <div class="para"><p>What are the 7 digits of hex that git responded to the commit with?</p></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 354 | <div class="para"><p>We saw in part one of the tutorial that commits have names like this. |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 355 | It turns out that every object in the git history is stored under |
Junio C Hamano | a2deec5 | 2008-10-18 18:58:09 | [diff] [blame] | 356 | a 40-digit hex name. That name is the SHA1 hash of the object's |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 357 | contents; among other things, this ensures that git will never store |
| 358 | the same data twice (since identical data is given an identical SHA1 |
| 359 | name), and that the contents of a git object will never change (since |
Junio C Hamano | a2deec5 | 2008-10-18 18:58:09 | [diff] [blame] | 360 | that would change the object's name as well). The 7 char hex strings |
| 361 | here are simply the abbreviation of such 40 character long strings. |
| 362 | Abbreviations can be used everywhere where the 40 character strings |
| 363 | can be used, so long as they are unambiguous.</p></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 364 | <div class="para"><p>It is expected that the content of the commit object you created while |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 365 | following the example above generates a different SHA1 hash than |
| 366 | the one shown above because the commit object records the time when |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 367 | it was created and the name of the person performing the commit.</p></div> |
| 368 | <div class="para"><p>We can ask git about this particular object with the <tt>cat-file</tt> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 369 | command. Don't copy the 40 hex digits from this example but use those |
| 370 | from your own version. Note that you can shorten it to only a few |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 371 | characters to save yourself typing all 40 hex digits:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 372 | <div class="listingblock"> |
| 373 | <div class="content"> |
Junio C Hamano | 432d8ee | 2008-06-27 08:26:43 | [diff] [blame] | 374 | <pre><tt>$ git cat-file -t 54196cc2 |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 375 | commit |
Junio C Hamano | 432d8ee | 2008-06-27 08:26:43 | [diff] [blame] | 376 | $ git cat-file commit 54196cc2 |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 377 | tree 92b8b694ffb1675e5975148e1121810081dbdffe |
| 378 | author J. Bruce Fields <bfields@puzzle.fieldses.org> 1143414668 -0500 |
| 379 | committer J. Bruce Fields <bfields@puzzle.fieldses.org> 1143414668 -0500 |
| 380 | |
| 381 | initial commit</tt></pre> |
| 382 | </div></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 383 | <div class="para"><p>A tree can refer to one or more "blob" objects, each corresponding to |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 384 | a file. In addition, a tree can also refer to other tree objects, |
| 385 | thus creating a directory hierarchy. You can examine the contents of |
| 386 | any tree using ls-tree (remember that a long enough initial portion |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 387 | of the SHA1 will also work):</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 388 | <div class="listingblock"> |
| 389 | <div class="content"> |
| 390 | <pre><tt>$ git ls-tree 92b8b694 |
| 391 | 100644 blob 3b18e512dba79e4c8300dd08aeb37f8e728b8dad file.txt</tt></pre> |
| 392 | </div></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 393 | <div class="para"><p>Thus we see that this tree has one file in it. The SHA1 hash is a |
| 394 | reference to that file's data:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 395 | <div class="listingblock"> |
| 396 | <div class="content"> |
| 397 | <pre><tt>$ git cat-file -t 3b18e512 |
| 398 | blob</tt></pre> |
| 399 | </div></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 400 | <div class="para"><p>A "blob" is just file data, which we can also examine with cat-file:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 401 | <div class="listingblock"> |
| 402 | <div class="content"> |
| 403 | <pre><tt>$ git cat-file blob 3b18e512 |
| 404 | hello world</tt></pre> |
| 405 | </div></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 406 | <div class="para"><p>Note that this is the old file data; so the object that git named in |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 407 | its response to the initial tree was a tree with a snapshot of the |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 408 | directory state that was recorded by the first commit.</p></div> |
| 409 | <div class="para"><p>All of these objects are stored under their SHA1 names inside the git |
| 410 | directory:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 411 | <div class="listingblock"> |
| 412 | <div class="content"> |
| 413 | <pre><tt>$ find .git/objects/ |
| 414 | .git/objects/ |
| 415 | .git/objects/pack |
| 416 | .git/objects/info |
| 417 | .git/objects/3b |
| 418 | .git/objects/3b/18e512dba79e4c8300dd08aeb37f8e728b8dad |
| 419 | .git/objects/92 |
| 420 | .git/objects/92/b8b694ffb1675e5975148e1121810081dbdffe |
| 421 | .git/objects/54 |
| 422 | .git/objects/54/196cc2703dc165cbd373a65a4dcf22d50ae7f7 |
| 423 | .git/objects/a0 |
| 424 | .git/objects/a0/423896973644771497bdc03eb99d5281615b51 |
| 425 | .git/objects/d0 |
| 426 | .git/objects/d0/492b368b66bdabf2ac1fd8c92b39d3db916e59 |
| 427 | .git/objects/c4 |
| 428 | .git/objects/c4/d59f390b9cfd4318117afde11d601c1085f241</tt></pre> |
| 429 | </div></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 430 | <div class="para"><p>and the contents of these files is just the compressed data plus a |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 431 | header identifying their length and their type. The type is either a |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 432 | blob, a tree, a commit, or a tag.</p></div> |
| 433 | <div class="para"><p>The simplest commit to find is the HEAD commit, which we can find |
| 434 | from .git/HEAD:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 435 | <div class="listingblock"> |
| 436 | <div class="content"> |
| 437 | <pre><tt>$ cat .git/HEAD |
| 438 | ref: refs/heads/master</tt></pre> |
| 439 | </div></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 440 | <div class="para"><p>As you can see, this tells us which branch we're currently on, and it |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 441 | tells us this by naming a file under the .git directory, which itself |
| 442 | contains a SHA1 name referring to a commit object, which we can |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 443 | examine with cat-file:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 444 | <div class="listingblock"> |
| 445 | <div class="content"> |
| 446 | <pre><tt>$ cat .git/refs/heads/master |
| 447 | c4d59f390b9cfd4318117afde11d601c1085f241 |
| 448 | $ git cat-file -t c4d59f39 |
| 449 | commit |
| 450 | $ git cat-file commit c4d59f39 |
| 451 | tree d0492b368b66bdabf2ac1fd8c92b39d3db916e59 |
| 452 | parent 54196cc2703dc165cbd373a65a4dcf22d50ae7f7 |
| 453 | author J. Bruce Fields <bfields@puzzle.fieldses.org> 1143418702 -0500 |
| 454 | committer J. Bruce Fields <bfields@puzzle.fieldses.org> 1143418702 -0500 |
| 455 | |
| 456 | add emphasis</tt></pre> |
| 457 | </div></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 458 | <div class="para"><p>The "tree" object here refers to the new state of the tree:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 459 | <div class="listingblock"> |
| 460 | <div class="content"> |
| 461 | <pre><tt>$ git ls-tree d0492b36 |
| 462 | 100644 blob a0423896973644771497bdc03eb99d5281615b51 file.txt |
| 463 | $ git cat-file blob a0423896 |
| 464 | hello world!</tt></pre> |
| 465 | </div></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 466 | <div class="para"><p>and the "parent" object refers to the previous commit:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 467 | <div class="listingblock"> |
| 468 | <div class="content"> |
Junio C Hamano | 432d8ee | 2008-06-27 08:26:43 | [diff] [blame] | 469 | <pre><tt>$ git cat-file commit 54196cc2 |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 470 | tree 92b8b694ffb1675e5975148e1121810081dbdffe |
| 471 | author J. Bruce Fields <bfields@puzzle.fieldses.org> 1143414668 -0500 |
| 472 | committer J. Bruce Fields <bfields@puzzle.fieldses.org> 1143414668 -0500 |
| 473 | |
| 474 | initial commit</tt></pre> |
| 475 | </div></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 476 | <div class="para"><p>The tree object is the tree we examined first, and this commit is |
| 477 | unusual in that it lacks any parent.</p></div> |
| 478 | <div class="para"><p>Most commits have only one parent, but it is also common for a commit |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 479 | to have multiple parents. In that case the commit represents a |
| 480 | merge, with the parent references pointing to the heads of the merged |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 481 | branches.</p></div> |
| 482 | <div class="para"><p>Besides blobs, trees, and commits, the only remaining type of object |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 483 | is a "tag", which we won't discuss here; refer to <a href="git-tag.html">git-tag(1)</a> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 484 | for details.</p></div> |
| 485 | <div class="para"><p>So now we know how git uses the object database to represent a |
| 486 | project's history:</p></div> |
| 487 | <div class="ilist"><ul> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 488 | <li> |
| 489 | <p> |
| 490 | "commit" objects refer to "tree" objects representing the |
| 491 | snapshot of a directory tree at a particular point in the |
| 492 | history, and refer to "parent" commits to show how they're |
| 493 | connected into the project history. |
| 494 | </p> |
| 495 | </li> |
| 496 | <li> |
| 497 | <p> |
| 498 | "tree" objects represent the state of a single directory, |
| 499 | associating directory names to "blob" objects containing file |
| 500 | data and "tree" objects containing subdirectory information. |
| 501 | </p> |
| 502 | </li> |
| 503 | <li> |
| 504 | <p> |
| 505 | "blob" objects contain file data without any other structure. |
| 506 | </p> |
| 507 | </li> |
| 508 | <li> |
| 509 | <p> |
| 510 | References to commit objects at the head of each branch are |
| 511 | stored in files under .git/refs/heads/. |
| 512 | </p> |
| 513 | </li> |
| 514 | <li> |
| 515 | <p> |
| 516 | The name of the current branch is stored in .git/HEAD. |
| 517 | </p> |
| 518 | </li> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 519 | </ul></div> |
| 520 | <div class="para"><p>Note, by the way, that lots of commands take a tree as an argument. |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 521 | But as we can see above, a tree can be referred to in many different |
| 522 | ways--by the SHA1 name for that tree, by the name of a commit that |
| 523 | refers to the tree, by the name of a branch whose head refers to that |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 524 | tree, etc.--and most such commands can accept any of these names.</p></div> |
| 525 | <div class="para"><p>In command synopses, the word "tree-ish" is sometimes used to |
| 526 | designate such an argument.</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 527 | </div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 528 | <h2 id="_the_index_file">The index file</h2> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 529 | <div class="sectionbody"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 530 | <div class="para"><p>The primary tool we've been using to create commits is <tt>git-commit |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 531 | -a</tt>, which creates a commit including every change you've made to |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 532 | your working tree. But what if you want to commit changes only to |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 533 | certain files? Or only certain changes to certain files?</p></div> |
| 534 | <div class="para"><p>If we look at the way commits are created under the cover, we'll see |
| 535 | that there are more flexible ways creating commits.</p></div> |
| 536 | <div class="para"><p>Continuing with our test-project, let's modify file.txt again:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 537 | <div class="listingblock"> |
| 538 | <div class="content"> |
| 539 | <pre><tt>$ echo "hello world, again" >>file.txt</tt></pre> |
| 540 | </div></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 541 | <div class="para"><p>but this time instead of immediately making the commit, let's take an |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 542 | intermediate step, and ask for diffs along the way to keep track of |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 543 | what's happening:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 544 | <div class="listingblock"> |
| 545 | <div class="content"> |
| 546 | <pre><tt>$ git diff |
| 547 | --- a/file.txt |
| 548 | +++ b/file.txt |
| 549 | @@ -1 +1,2 @@ |
| 550 | hello world! |
| 551 | +hello world, again |
| 552 | $ git add file.txt |
| 553 | $ git diff</tt></pre> |
| 554 | </div></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 555 | <div class="para"><p>The last diff is empty, but no new commits have been made, and the |
| 556 | head still doesn't contain the new line:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 557 | <div class="listingblock"> |
| 558 | <div class="content"> |
Junio C Hamano | 432d8ee | 2008-06-27 08:26:43 | [diff] [blame] | 559 | <pre><tt>$ git diff HEAD |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 560 | diff --git a/file.txt b/file.txt |
| 561 | index a042389..513feba 100644 |
| 562 | --- a/file.txt |
| 563 | +++ b/file.txt |
| 564 | @@ -1 +1,2 @@ |
| 565 | hello world! |
| 566 | +hello world, again</tt></pre> |
| 567 | </div></div> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 568 | <div class="para"><p>So <em>git diff</em> is comparing against something other than the head. |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 569 | The thing that it's comparing against is actually the index file, |
| 570 | which is stored in .git/index in a binary format, but whose contents |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 571 | we can examine with ls-files:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 572 | <div class="listingblock"> |
| 573 | <div class="content"> |
| 574 | <pre><tt>$ git ls-files --stage |
| 575 | 100644 513feba2e53ebbd2532419ded848ba19de88ba00 0 file.txt |
| 576 | $ git cat-file -t 513feba2 |
| 577 | blob |
| 578 | $ git cat-file blob 513feba2 |
| 579 | hello world! |
| 580 | hello world, again</tt></pre> |
| 581 | </div></div> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 582 | <div class="para"><p>So what our <em>git add</em> did was store a new blob and then put |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 583 | a reference to it in the index file. If we modify the file again, |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 584 | we'll see that the new modifications are reflected in the <em>git diff</em> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 585 | output:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 586 | <div class="listingblock"> |
| 587 | <div class="content"> |
| 588 | <pre><tt>$ echo 'again?' >>file.txt |
| 589 | $ git diff |
| 590 | index 513feba..ba3da7b 100644 |
| 591 | --- a/file.txt |
| 592 | +++ b/file.txt |
| 593 | @@ -1,2 +1,3 @@ |
| 594 | hello world! |
| 595 | hello world, again |
| 596 | +again?</tt></pre> |
| 597 | </div></div> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 598 | <div class="para"><p>With the right arguments, <em>git diff</em> can also show us the difference |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 599 | between the working directory and the last commit, or between the |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 600 | index and the last commit:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 601 | <div class="listingblock"> |
| 602 | <div class="content"> |
| 603 | <pre><tt>$ git diff HEAD |
| 604 | diff --git a/file.txt b/file.txt |
| 605 | index a042389..ba3da7b 100644 |
| 606 | --- a/file.txt |
| 607 | +++ b/file.txt |
| 608 | @@ -1 +1,3 @@ |
| 609 | hello world! |
| 610 | +hello world, again |
| 611 | +again? |
| 612 | $ git diff --cached |
| 613 | diff --git a/file.txt b/file.txt |
| 614 | index a042389..513feba 100644 |
| 615 | --- a/file.txt |
| 616 | +++ b/file.txt |
| 617 | @@ -1 +1,2 @@ |
| 618 | hello world! |
| 619 | +hello world, again</tt></pre> |
| 620 | </div></div> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 621 | <div class="para"><p>At any time, we can create a new commit using <em>git commit</em> (without |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 622 | the "-a" option), and verify that the state committed only includes the |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 623 | changes stored in the index file, not the additional change that is |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 624 | still only in our working tree:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 625 | <div class="listingblock"> |
| 626 | <div class="content"> |
| 627 | <pre><tt>$ git commit -m "repeat" |
| 628 | $ git diff HEAD |
| 629 | diff --git a/file.txt b/file.txt |
| 630 | index 513feba..ba3da7b 100644 |
| 631 | --- a/file.txt |
| 632 | +++ b/file.txt |
| 633 | @@ -1,2 +1,3 @@ |
| 634 | hello world! |
| 635 | hello world, again |
| 636 | +again?</tt></pre> |
| 637 | </div></div> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 638 | <div class="para"><p>So by default <em>git commit</em> uses the index to create the commit, not |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 639 | the working tree; the "-a" option to commit tells it to first update |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 640 | the index with all changes in the working tree.</p></div> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 641 | <div class="para"><p>Finally, it's worth looking at the effect of <em>git add</em> on the index |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 642 | file:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 643 | <div class="listingblock"> |
| 644 | <div class="content"> |
| 645 | <pre><tt>$ echo "goodbye, world" >closing.txt |
| 646 | $ git add closing.txt</tt></pre> |
| 647 | </div></div> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 648 | <div class="para"><p>The effect of the <em>git add</em> was to add one entry to the index file:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 649 | <div class="listingblock"> |
| 650 | <div class="content"> |
| 651 | <pre><tt>$ git ls-files --stage |
| 652 | 100644 8b9743b20d4b15be3955fc8d5cd2b09cd2336138 0 closing.txt |
| 653 | 100644 513feba2e53ebbd2532419ded848ba19de88ba00 0 file.txt</tt></pre> |
| 654 | </div></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 655 | <div class="para"><p>And, as you can see with cat-file, this new entry refers to the |
| 656 | current contents of the file:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 657 | <div class="listingblock"> |
| 658 | <div class="content"> |
| 659 | <pre><tt>$ git cat-file blob 8b9743b2 |
| 660 | goodbye, world</tt></pre> |
| 661 | </div></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 662 | <div class="para"><p>The "status" command is a useful way to get a quick summary of the |
| 663 | situation:</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 664 | <div class="listingblock"> |
| 665 | <div class="content"> |
| 666 | <pre><tt>$ git status |
| 667 | # On branch master |
| 668 | # Changes to be committed: |
| 669 | # (use "git reset HEAD <file>..." to unstage) |
| 670 | # |
| 671 | # new file: closing.txt |
| 672 | # |
| 673 | # Changed but not updated: |
| 674 | # (use "git add <file>..." to update what will be committed) |
| 675 | # |
| 676 | # modified: file.txt |
| 677 | #</tt></pre> |
| 678 | </div></div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 679 | <div class="para"><p>Since the current state of closing.txt is cached in the index file, |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 680 | it is listed as "Changes to be committed". Since file.txt has |
| 681 | changes in the working directory that aren't reflected in the index, |
| 682 | it is marked "changed but not updated". At this point, running "git |
| 683 | commit" would create a commit that added closing.txt (with its new |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 684 | contents), but that didn't modify file.txt.</p></div> |
| 685 | <div class="para"><p>Also, note that a bare <tt>git diff</tt> shows the changes to file.txt, but |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 686 | not the addition of closing.txt, because the version of closing.txt |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 687 | in the index file is identical to the one in the working directory.</p></div> |
| 688 | <div class="para"><p>In addition to being the staging area for new commits, the index file |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 689 | is also populated from the object database when checking out a |
| 690 | branch, and is used to hold the trees involved in a merge operation. |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 691 | See <a href="gitcore-tutorial.html">gitcore-tutorial(7)</a> and the relevant man |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 692 | pages for details.</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 693 | </div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 694 | <h2 id="_what_next">What next?</h2> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 695 | <div class="sectionbody"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 696 | <div class="para"><p>At this point you should know everything necessary to read the man |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 697 | pages for any of the git commands; one good place to start would be |
| 698 | with the commands mentioned in <a href="everyday.html">Everyday git</a>. You |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 699 | should be able to find any unknown jargon in <a href="gitglossary.html">gitglossary(7)</a>.</p></div> |
| 700 | <div class="para"><p>The <a href="user-manual.html">Git User's Manual</a> provides a more |
| 701 | comprehensive introduction to git.</p></div> |
| 702 | <div class="para"><p><a href="gitcvs-migration.html">gitcvs-migration(7)</a> explains how to |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 703 | import a CVS repository into git, and shows how to use git in a |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 704 | CVS-like way.</p></div> |
| 705 | <div class="para"><p>For some interesting examples of git use, see the |
| 706 | <a href="howto-index.html">howtos</a>.</p></div> |
| 707 | <div class="para"><p>For git developers, <a href="gitcore-tutorial.html">gitcore-tutorial(7)</a> goes |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 708 | into detail on the lower-level git mechanisms involved in, for |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 709 | example, creating a new commit.</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 710 | </div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 711 | <h2 id="_see_also">SEE ALSO</h2> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 712 | <div class="sectionbody"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 713 | <div class="para"><p><a href="gittutorial.html">gittutorial(7)</a>, |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 714 | <a href="gitcvs-migration.html">gitcvs-migration(7)</a>, |
Junio C Hamano | 9e1793f | 2008-06-02 07:31:16 | [diff] [blame] | 715 | <a href="gitcore-tutorial.html">gitcore-tutorial(7)</a>, |
| 716 | <a href="gitglossary.html">gitglossary(7)</a>, |
Junio C Hamano | f66ecee | 2008-11-17 18:25:43 | [diff] [blame] | 717 | <a href="git-help.html">git-help(1)</a>, |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 718 | <a href="everyday.html">Everyday git</a>, |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 719 | <a href="user-manual.html">The Git User's Manual</a></p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 720 | </div> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 721 | <h2 id="_git">GIT</h2> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 722 | <div class="sectionbody"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 723 | <div class="para"><p>Part of the <a href="git.html">git(1)</a> suite.</p></div> |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 724 | </div> |
| 725 | <div id="footer"> |
| 726 | <div id="footer-text"> |
Junio C Hamano | ac752fa | 2010-09-19 00:01:00 | [diff] [blame] | 727 | Last updated 2010-09-18 23:57:05 UTC |
Junio C Hamano | dfccbb0 | 2008-05-26 01:16:14 | [diff] [blame] | 728 | </div> |
| 729 | </div> |
| 730 | </body> |
| 731 | </html> |