c64ffa81d8b1c184b99ff5063624f62d021c6403
   1git(1)
   2======
   3
   4NAME
   5----
   6git - the stupid content tracker
   7
   8
   9SYNOPSIS
  10--------
  11[verse]
  12'git' [--version] [--help] [-C <path>] [-c <name>=<value>]
  13    [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
  14    [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
  15    [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
  16    <command> [<args>]
  17
  18DESCRIPTION
  19-----------
  20Git is a fast, scalable, distributed revision control system with an
  21unusually rich command set that provides both high-level operations
  22and full access to internals.
  23
  24See linkgit:gittutorial[7] to get started, then see
  25linkgit:giteveryday[7] for a useful minimum set of
  26commands.  The link:user-manual.html[Git User's Manual] has a more
  27in-depth introduction.
  28
  29After you mastered the basic concepts, you can come back to this
  30page to learn what commands Git offers.  You can learn more about
  31individual Git commands with "git help command".  linkgit:gitcli[7]
  32manual page gives you an overview of the command-line command syntax.
  33
  34Formatted and hyperlinked version of the latest Git documentation
  35can be viewed at `http://git-htmldocs.googlecode.com/git/git.html`.
  36
  37ifdef::stalenotes[]
  38[NOTE]
  39============
  40
  41You are reading the documentation for the latest (possibly
  42unreleased) version of Git, that is available from the 'master'
  43branch of the `git.git` repository.
  44Documentation for older releases are available here:
  45
  46* link:v2.5.5/git.html[documentation for release 2.5.5]
  47
  48* release notes for
  49  link:RelNotes/2.5.5.txt[2.5.5],
  50  link:RelNotes/2.5.4.txt[2.5.4],
  51  link:RelNotes/2.5.3.txt[2.5.3],
  52  link:RelNotes/2.5.2.txt[2.5.2],
  53  link:RelNotes/2.5.1.txt[2.5.1],
  54  link:RelNotes/2.5.0.txt[2.5].
  55
  56* link:v2.4.12/git.html[documentation for release 2.4.12]
  57
  58* release notes for
  59  link:RelNotes/2.4.12.txt[2.4.12],
  60  link:RelNotes/2.4.11.txt[2.4.11],
  61  link:RelNotes/2.4.10.txt[2.4.10],
  62  link:RelNotes/2.4.9.txt[2.4.9],
  63  link:RelNotes/2.4.8.txt[2.4.8],
  64  link:RelNotes/2.4.7.txt[2.4.7],
  65  link:RelNotes/2.4.6.txt[2.4.6],
  66  link:RelNotes/2.4.5.txt[2.4.5],
  67  link:RelNotes/2.4.4.txt[2.4.4],
  68  link:RelNotes/2.4.3.txt[2.4.3],
  69  link:RelNotes/2.4.2.txt[2.4.2],
  70  link:RelNotes/2.4.1.txt[2.4.1],
  71  link:RelNotes/2.4.0.txt[2.4].
  72
  73* link:v2.3.10/git.html[documentation for release 2.3.10]
  74
  75* release notes for
  76  link:RelNotes/2.3.10.txt[2.3.10],
  77  link:RelNotes/2.3.9.txt[2.3.9],
  78  link:RelNotes/2.3.8.txt[2.3.8],
  79  link:RelNotes/2.3.7.txt[2.3.7],
  80  link:RelNotes/2.3.6.txt[2.3.6],
  81  link:RelNotes/2.3.5.txt[2.3.5],
  82  link:RelNotes/2.3.4.txt[2.3.4],
  83  link:RelNotes/2.3.3.txt[2.3.3],
  84  link:RelNotes/2.3.2.txt[2.3.2],
  85  link:RelNotes/2.3.1.txt[2.3.1],
  86  link:RelNotes/2.3.0.txt[2.3].
  87
  88* link:v2.2.3/git.html[documentation for release 2.2.3]
  89
  90* release notes for
  91  link:RelNotes/2.2.3.txt[2.2.3],
  92  link:RelNotes/2.2.2.txt[2.2.2],
  93  link:RelNotes/2.2.1.txt[2.2.1],
  94  link:RelNotes/2.2.0.txt[2.2].
  95
  96* link:v2.1.4/git.html[documentation for release 2.1.4]
  97
  98* release notes for
  99  link:RelNotes/2.1.4.txt[2.1.4],
 100  link:RelNotes/2.1.3.txt[2.1.3],
 101  link:RelNotes/2.1.2.txt[2.1.2],
 102  link:RelNotes/2.1.1.txt[2.1.1],
 103  link:RelNotes/2.1.0.txt[2.1].
 104
 105* link:v2.0.5/git.html[documentation for release 2.0.5]
 106
 107* release notes for
 108  link:RelNotes/2.0.5.txt[2.0.5],
 109  link:RelNotes/2.0.4.txt[2.0.4],
 110  link:RelNotes/2.0.3.txt[2.0.3],
 111  link:RelNotes/2.0.2.txt[2.0.2],
 112  link:RelNotes/2.0.1.txt[2.0.1],
 113  link:RelNotes/2.0.0.txt[2.0.0].
 114
 115* link:v1.9.5/git.html[documentation for release 1.9.5]
 116
 117* release notes for
 118  link:RelNotes/1.9.5.txt[1.9.5],
 119  link:RelNotes/1.9.4.txt[1.9.4],
 120  link:RelNotes/1.9.3.txt[1.9.3],
 121  link:RelNotes/1.9.2.txt[1.9.2],
 122  link:RelNotes/1.9.1.txt[1.9.1],
 123  link:RelNotes/1.9.0.txt[1.9.0].
 124
 125* link:v1.8.5.6/git.html[documentation for release 1.8.5.6]
 126
 127* release notes for
 128  link:RelNotes/1.8.5.6.txt[1.8.5.6],
 129  link:RelNotes/1.8.5.5.txt[1.8.5.5],
 130  link:RelNotes/1.8.5.4.txt[1.8.5.4],
 131  link:RelNotes/1.8.5.3.txt[1.8.5.3],
 132  link:RelNotes/1.8.5.2.txt[1.8.5.2],
 133  link:RelNotes/1.8.5.1.txt[1.8.5.1],
 134  link:RelNotes/1.8.5.txt[1.8.5].
 135
 136* link:v1.8.4.5/git.html[documentation for release 1.8.4.5]
 137
 138* release notes for
 139  link:RelNotes/1.8.4.5.txt[1.8.4.5],
 140  link:RelNotes/1.8.4.4.txt[1.8.4.4],
 141  link:RelNotes/1.8.4.3.txt[1.8.4.3],
 142  link:RelNotes/1.8.4.2.txt[1.8.4.2],
 143  link:RelNotes/1.8.4.1.txt[1.8.4.1],
 144  link:RelNotes/1.8.4.txt[1.8.4].
 145
 146* link:v1.8.3.4/git.html[documentation for release 1.8.3.4]
 147
 148* release notes for
 149  link:RelNotes/1.8.3.4.txt[1.8.3.4],
 150  link:RelNotes/1.8.3.3.txt[1.8.3.3],
 151  link:RelNotes/1.8.3.2.txt[1.8.3.2],
 152  link:RelNotes/1.8.3.1.txt[1.8.3.1],
 153  link:RelNotes/1.8.3.txt[1.8.3].
 154
 155* link:v1.8.2.3/git.html[documentation for release 1.8.2.3]
 156
 157* release notes for
 158  link:RelNotes/1.8.2.3.txt[1.8.2.3],
 159  link:RelNotes/1.8.2.2.txt[1.8.2.2],
 160  link:RelNotes/1.8.2.1.txt[1.8.2.1],
 161  link:RelNotes/1.8.2.txt[1.8.2].
 162
 163* link:v1.8.1.6/git.html[documentation for release 1.8.1.6]
 164
 165* release notes for
 166  link:RelNotes/1.8.1.6.txt[1.8.1.6],
 167  link:RelNotes/1.8.1.5.txt[1.8.1.5],
 168  link:RelNotes/1.8.1.4.txt[1.8.1.4],
 169  link:RelNotes/1.8.1.3.txt[1.8.1.3],
 170  link:RelNotes/1.8.1.2.txt[1.8.1.2],
 171  link:RelNotes/1.8.1.1.txt[1.8.1.1],
 172  link:RelNotes/1.8.1.txt[1.8.1].
 173
 174* link:v1.8.0.3/git.html[documentation for release 1.8.0.3]
 175
 176* release notes for
 177  link:RelNotes/1.8.0.3.txt[1.8.0.3],
 178  link:RelNotes/1.8.0.2.txt[1.8.0.2],
 179  link:RelNotes/1.8.0.1.txt[1.8.0.1],
 180  link:RelNotes/1.8.0.txt[1.8.0].
 181
 182* link:v1.7.12.4/git.html[documentation for release 1.7.12.4]
 183
 184* release notes for
 185  link:RelNotes/1.7.12.4.txt[1.7.12.4],
 186  link:RelNotes/1.7.12.3.txt[1.7.12.3],
 187  link:RelNotes/1.7.12.2.txt[1.7.12.2],
 188  link:RelNotes/1.7.12.1.txt[1.7.12.1],
 189  link:RelNotes/1.7.12.txt[1.7.12].
 190
 191* link:v1.7.11.7/git.html[documentation for release 1.7.11.7]
 192
 193* release notes for
 194  link:RelNotes/1.7.11.7.txt[1.7.11.7],
 195  link:RelNotes/1.7.11.6.txt[1.7.11.6],
 196  link:RelNotes/1.7.11.5.txt[1.7.11.5],
 197  link:RelNotes/1.7.11.4.txt[1.7.11.4],
 198  link:RelNotes/1.7.11.3.txt[1.7.11.3],
 199  link:RelNotes/1.7.11.2.txt[1.7.11.2],
 200  link:RelNotes/1.7.11.1.txt[1.7.11.1],
 201  link:RelNotes/1.7.11.txt[1.7.11].
 202
 203* link:v1.7.10.5/git.html[documentation for release 1.7.10.5]
 204
 205* release notes for
 206  link:RelNotes/1.7.10.5.txt[1.7.10.5],
 207  link:RelNotes/1.7.10.4.txt[1.7.10.4],
 208  link:RelNotes/1.7.10.3.txt[1.7.10.3],
 209  link:RelNotes/1.7.10.2.txt[1.7.10.2],
 210  link:RelNotes/1.7.10.1.txt[1.7.10.1],
 211  link:RelNotes/1.7.10.txt[1.7.10].
 212
 213* link:v1.7.9.7/git.html[documentation for release 1.7.9.7]
 214
 215* release notes for
 216  link:RelNotes/1.7.9.7.txt[1.7.9.7],
 217  link:RelNotes/1.7.9.6.txt[1.7.9.6],
 218  link:RelNotes/1.7.9.5.txt[1.7.9.5],
 219  link:RelNotes/1.7.9.4.txt[1.7.9.4],
 220  link:RelNotes/1.7.9.3.txt[1.7.9.3],
 221  link:RelNotes/1.7.9.2.txt[1.7.9.2],
 222  link:RelNotes/1.7.9.1.txt[1.7.9.1],
 223  link:RelNotes/1.7.9.txt[1.7.9].
 224
 225* link:v1.7.8.6/git.html[documentation for release 1.7.8.6]
 226
 227* release notes for
 228  link:RelNotes/1.7.8.6.txt[1.7.8.6],
 229  link:RelNotes/1.7.8.5.txt[1.7.8.5],
 230  link:RelNotes/1.7.8.4.txt[1.7.8.4],
 231  link:RelNotes/1.7.8.3.txt[1.7.8.3],
 232  link:RelNotes/1.7.8.2.txt[1.7.8.2],
 233  link:RelNotes/1.7.8.1.txt[1.7.8.1],
 234  link:RelNotes/1.7.8.txt[1.7.8].
 235
 236* link:v1.7.7.7/git.html[documentation for release 1.7.7.7]
 237
 238* release notes for
 239  link:RelNotes/1.7.7.7.txt[1.7.7.7],
 240  link:RelNotes/1.7.7.6.txt[1.7.7.6],
 241  link:RelNotes/1.7.7.5.txt[1.7.7.5],
 242  link:RelNotes/1.7.7.4.txt[1.7.7.4],
 243  link:RelNotes/1.7.7.3.txt[1.7.7.3],
 244  link:RelNotes/1.7.7.2.txt[1.7.7.2],
 245  link:RelNotes/1.7.7.1.txt[1.7.7.1],
 246  link:RelNotes/1.7.7.txt[1.7.7].
 247
 248* link:v1.7.6.6/git.html[documentation for release 1.7.6.6]
 249
 250* release notes for
 251  link:RelNotes/1.7.6.6.txt[1.7.6.6],
 252  link:RelNotes/1.7.6.5.txt[1.7.6.5],
 253  link:RelNotes/1.7.6.4.txt[1.7.6.4],
 254  link:RelNotes/1.7.6.3.txt[1.7.6.3],
 255  link:RelNotes/1.7.6.2.txt[1.7.6.2],
 256  link:RelNotes/1.7.6.1.txt[1.7.6.1],
 257  link:RelNotes/1.7.6.txt[1.7.6].
 258
 259* link:v1.7.5.4/git.html[documentation for release 1.7.5.4]
 260
 261* release notes for
 262  link:RelNotes/1.7.5.4.txt[1.7.5.4],
 263  link:RelNotes/1.7.5.3.txt[1.7.5.3],
 264  link:RelNotes/1.7.5.2.txt[1.7.5.2],
 265  link:RelNotes/1.7.5.1.txt[1.7.5.1],
 266  link:RelNotes/1.7.5.txt[1.7.5].
 267
 268* link:v1.7.4.5/git.html[documentation for release 1.7.4.5]
 269
 270* release notes for
 271  link:RelNotes/1.7.4.5.txt[1.7.4.5],
 272  link:RelNotes/1.7.4.4.txt[1.7.4.4],
 273  link:RelNotes/1.7.4.3.txt[1.7.4.3],
 274  link:RelNotes/1.7.4.2.txt[1.7.4.2],
 275  link:RelNotes/1.7.4.1.txt[1.7.4.1],
 276  link:RelNotes/1.7.4.txt[1.7.4].
 277
 278* link:v1.7.3.5/git.html[documentation for release 1.7.3.5]
 279
 280* release notes for
 281  link:RelNotes/1.7.3.5.txt[1.7.3.5],
 282  link:RelNotes/1.7.3.4.txt[1.7.3.4],
 283  link:RelNotes/1.7.3.3.txt[1.7.3.3],
 284  link:RelNotes/1.7.3.2.txt[1.7.3.2],
 285  link:RelNotes/1.7.3.1.txt[1.7.3.1],
 286  link:RelNotes/1.7.3.txt[1.7.3].
 287
 288* link:v1.7.2.5/git.html[documentation for release 1.7.2.5]
 289
 290* release notes for
 291  link:RelNotes/1.7.2.5.txt[1.7.2.5],
 292  link:RelNotes/1.7.2.4.txt[1.7.2.4],
 293  link:RelNotes/1.7.2.3.txt[1.7.2.3],
 294  link:RelNotes/1.7.2.2.txt[1.7.2.2],
 295  link:RelNotes/1.7.2.1.txt[1.7.2.1],
 296  link:RelNotes/1.7.2.txt[1.7.2].
 297
 298* link:v1.7.1.4/git.html[documentation for release 1.7.1.4]
 299
 300* release notes for
 301  link:RelNotes/1.7.1.4.txt[1.7.1.4],
 302  link:RelNotes/1.7.1.3.txt[1.7.1.3],
 303  link:RelNotes/1.7.1.2.txt[1.7.1.2],
 304  link:RelNotes/1.7.1.1.txt[1.7.1.1],
 305  link:RelNotes/1.7.1.txt[1.7.1].
 306
 307* link:v1.7.0.9/git.html[documentation for release 1.7.0.9]
 308
 309* release notes for
 310  link:RelNotes/1.7.0.9.txt[1.7.0.9],
 311  link:RelNotes/1.7.0.8.txt[1.7.0.8],
 312  link:RelNotes/1.7.0.7.txt[1.7.0.7],
 313  link:RelNotes/1.7.0.6.txt[1.7.0.6],
 314  link:RelNotes/1.7.0.5.txt[1.7.0.5],
 315  link:RelNotes/1.7.0.4.txt[1.7.0.4],
 316  link:RelNotes/1.7.0.3.txt[1.7.0.3],
 317  link:RelNotes/1.7.0.2.txt[1.7.0.2],
 318  link:RelNotes/1.7.0.1.txt[1.7.0.1],
 319  link:RelNotes/1.7.0.txt[1.7.0].
 320
 321* link:v1.6.6.3/git.html[documentation for release 1.6.6.3]
 322
 323* release notes for
 324  link:RelNotes/1.6.6.3.txt[1.6.6.3],
 325  link:RelNotes/1.6.6.2.txt[1.6.6.2],
 326  link:RelNotes/1.6.6.1.txt[1.6.6.1],
 327  link:RelNotes/1.6.6.txt[1.6.6].
 328
 329* link:v1.6.5.9/git.html[documentation for release 1.6.5.9]
 330
 331* release notes for
 332  link:RelNotes/1.6.5.9.txt[1.6.5.9],
 333  link:RelNotes/1.6.5.8.txt[1.6.5.8],
 334  link:RelNotes/1.6.5.7.txt[1.6.5.7],
 335  link:RelNotes/1.6.5.6.txt[1.6.5.6],
 336  link:RelNotes/1.6.5.5.txt[1.6.5.5],
 337  link:RelNotes/1.6.5.4.txt[1.6.5.4],
 338  link:RelNotes/1.6.5.3.txt[1.6.5.3],
 339  link:RelNotes/1.6.5.2.txt[1.6.5.2],
 340  link:RelNotes/1.6.5.1.txt[1.6.5.1],
 341  link:RelNotes/1.6.5.txt[1.6.5].
 342
 343* link:v1.6.4.5/git.html[documentation for release 1.6.4.5]
 344
 345* release notes for
 346  link:RelNotes/1.6.4.5.txt[1.6.4.5],
 347  link:RelNotes/1.6.4.4.txt[1.6.4.4],
 348  link:RelNotes/1.6.4.3.txt[1.6.4.3],
 349  link:RelNotes/1.6.4.2.txt[1.6.4.2],
 350  link:RelNotes/1.6.4.1.txt[1.6.4.1],
 351  link:RelNotes/1.6.4.txt[1.6.4].
 352
 353* link:v1.6.3.4/git.html[documentation for release 1.6.3.4]
 354
 355* release notes for
 356  link:RelNotes/1.6.3.4.txt[1.6.3.4],
 357  link:RelNotes/1.6.3.3.txt[1.6.3.3],
 358  link:RelNotes/1.6.3.2.txt[1.6.3.2],
 359  link:RelNotes/1.6.3.1.txt[1.6.3.1],
 360  link:RelNotes/1.6.3.txt[1.6.3].
 361
 362* release notes for
 363  link:RelNotes/1.6.2.5.txt[1.6.2.5],
 364  link:RelNotes/1.6.2.4.txt[1.6.2.4],
 365  link:RelNotes/1.6.2.3.txt[1.6.2.3],
 366  link:RelNotes/1.6.2.2.txt[1.6.2.2],
 367  link:RelNotes/1.6.2.1.txt[1.6.2.1],
 368  link:RelNotes/1.6.2.txt[1.6.2].
 369
 370* link:v1.6.1.3/git.html[documentation for release 1.6.1.3]
 371
 372* release notes for
 373  link:RelNotes/1.6.1.3.txt[1.6.1.3],
 374  link:RelNotes/1.6.1.2.txt[1.6.1.2],
 375  link:RelNotes/1.6.1.1.txt[1.6.1.1],
 376  link:RelNotes/1.6.1.txt[1.6.1].
 377
 378* link:v1.6.0.6/git.html[documentation for release 1.6.0.6]
 379
 380* release notes for
 381  link:RelNotes/1.6.0.6.txt[1.6.0.6],
 382  link:RelNotes/1.6.0.5.txt[1.6.0.5],
 383  link:RelNotes/1.6.0.4.txt[1.6.0.4],
 384  link:RelNotes/1.6.0.3.txt[1.6.0.3],
 385  link:RelNotes/1.6.0.2.txt[1.6.0.2],
 386  link:RelNotes/1.6.0.1.txt[1.6.0.1],
 387  link:RelNotes/1.6.0.txt[1.6.0].
 388
 389* link:v1.5.6.6/git.html[documentation for release 1.5.6.6]
 390
 391* release notes for
 392  link:RelNotes/1.5.6.6.txt[1.5.6.6],
 393  link:RelNotes/1.5.6.5.txt[1.5.6.5],
 394  link:RelNotes/1.5.6.4.txt[1.5.6.4],
 395  link:RelNotes/1.5.6.3.txt[1.5.6.3],
 396  link:RelNotes/1.5.6.2.txt[1.5.6.2],
 397  link:RelNotes/1.5.6.1.txt[1.5.6.1],
 398  link:RelNotes/1.5.6.txt[1.5.6].
 399
 400* link:v1.5.5.6/git.html[documentation for release 1.5.5.6]
 401
 402* release notes for
 403  link:RelNotes/1.5.5.6.txt[1.5.5.6],
 404  link:RelNotes/1.5.5.5.txt[1.5.5.5],
 405  link:RelNotes/1.5.5.4.txt[1.5.5.4],
 406  link:RelNotes/1.5.5.3.txt[1.5.5.3],
 407  link:RelNotes/1.5.5.2.txt[1.5.5.2],
 408  link:RelNotes/1.5.5.1.txt[1.5.5.1],
 409  link:RelNotes/1.5.5.txt[1.5.5].
 410
 411* link:v1.5.4.7/git.html[documentation for release 1.5.4.7]
 412
 413* release notes for
 414  link:RelNotes/1.5.4.7.txt[1.5.4.7],
 415  link:RelNotes/1.5.4.6.txt[1.5.4.6],
 416  link:RelNotes/1.5.4.5.txt[1.5.4.5],
 417  link:RelNotes/1.5.4.4.txt[1.5.4.4],
 418  link:RelNotes/1.5.4.3.txt[1.5.4.3],
 419  link:RelNotes/1.5.4.2.txt[1.5.4.2],
 420  link:RelNotes/1.5.4.1.txt[1.5.4.1],
 421  link:RelNotes/1.5.4.txt[1.5.4].
 422
 423* link:v1.5.3.8/git.html[documentation for release 1.5.3.8]
 424
 425* release notes for
 426  link:RelNotes/1.5.3.8.txt[1.5.3.8],
 427  link:RelNotes/1.5.3.7.txt[1.5.3.7],
 428  link:RelNotes/1.5.3.6.txt[1.5.3.6],
 429  link:RelNotes/1.5.3.5.txt[1.5.3.5],
 430  link:RelNotes/1.5.3.4.txt[1.5.3.4],
 431  link:RelNotes/1.5.3.3.txt[1.5.3.3],
 432  link:RelNotes/1.5.3.2.txt[1.5.3.2],
 433  link:RelNotes/1.5.3.1.txt[1.5.3.1],
 434  link:RelNotes/1.5.3.txt[1.5.3].
 435
 436* link:v1.5.2.5/git.html[documentation for release 1.5.2.5]
 437
 438* release notes for
 439  link:RelNotes/1.5.2.5.txt[1.5.2.5],
 440  link:RelNotes/1.5.2.4.txt[1.5.2.4],
 441  link:RelNotes/1.5.2.3.txt[1.5.2.3],
 442  link:RelNotes/1.5.2.2.txt[1.5.2.2],
 443  link:RelNotes/1.5.2.1.txt[1.5.2.1],
 444  link:RelNotes/1.5.2.txt[1.5.2].
 445
 446* link:v1.5.1.6/git.html[documentation for release 1.5.1.6]
 447
 448* release notes for
 449  link:RelNotes/1.5.1.6.txt[1.5.1.6],
 450  link:RelNotes/1.5.1.5.txt[1.5.1.5],
 451  link:RelNotes/1.5.1.4.txt[1.5.1.4],
 452  link:RelNotes/1.5.1.3.txt[1.5.1.3],
 453  link:RelNotes/1.5.1.2.txt[1.5.1.2],
 454  link:RelNotes/1.5.1.1.txt[1.5.1.1],
 455  link:RelNotes/1.5.1.txt[1.5.1].
 456
 457* link:v1.5.0.7/git.html[documentation for release 1.5.0.7]
 458
 459* release notes for
 460  link:RelNotes/1.5.0.7.txt[1.5.0.7],
 461  link:RelNotes/1.5.0.6.txt[1.5.0.6],
 462  link:RelNotes/1.5.0.5.txt[1.5.0.5],
 463  link:RelNotes/1.5.0.3.txt[1.5.0.3],
 464  link:RelNotes/1.5.0.2.txt[1.5.0.2],
 465  link:RelNotes/1.5.0.1.txt[1.5.0.1],
 466  link:RelNotes/1.5.0.txt[1.5.0].
 467
 468* documentation for release link:v1.4.4.4/git.html[1.4.4.4],
 469  link:v1.3.3/git.html[1.3.3],
 470  link:v1.2.6/git.html[1.2.6],
 471  link:v1.0.13/git.html[1.0.13].
 472
 473============
 474
 475endif::stalenotes[]
 476
 477OPTIONS
 478-------
 479--version::
 480        Prints the Git suite version that the 'git' program came from.
 481
 482--help::
 483        Prints the synopsis and a list of the most commonly used
 484        commands. If the option '--all' or '-a' is given then all
 485        available commands are printed. If a Git command is named this
 486        option will bring up the manual page for that command.
 487+
 488Other options are available to control how the manual page is
 489displayed. See linkgit:git-help[1] for more information,
 490because `git --help ...` is converted internally into `git
 491help ...`.
 492
 493-C <path>::
 494        Run as if git was started in '<path>' instead of the current working
 495        directory.  When multiple `-C` options are given, each subsequent
 496        non-absolute `-C <path>` is interpreted relative to the preceding `-C
 497        <path>`.
 498+
 499This option affects options that expect path name like `--git-dir` and
 500`--work-tree` in that their interpretations of the path names would be
 501made relative to the working directory caused by the `-C` option. For
 502example the following invocations are equivalent:
 503
 504    git --git-dir=a.git --work-tree=b -C c status
 505    git --git-dir=c/a.git --work-tree=c/b status
 506
 507-c <name>=<value>::
 508        Pass a configuration parameter to the command. The value
 509        given will override values from configuration files.
 510        The <name> is expected in the same format as listed by
 511        'git config' (subkeys separated by dots).
 512+
 513Note that omitting the `=` in `git -c foo.bar ...` is allowed and sets
 514`foo.bar` to the boolean true value (just like `[foo]bar` would in a
 515config file). Including the equals but with an empty value (like `git -c
 516foo.bar= ...`) sets `foo.bar` to the empty string.
 517
 518--exec-path[=<path>]::
 519        Path to wherever your core Git programs are installed.
 520        This can also be controlled by setting the GIT_EXEC_PATH
 521        environment variable. If no path is given, 'git' will print
 522        the current setting and then exit.
 523
 524--html-path::
 525        Print the path, without trailing slash, where Git's HTML
 526        documentation is installed and exit.
 527
 528--man-path::
 529        Print the manpath (see `man(1)`) for the man pages for
 530        this version of Git and exit.
 531
 532--info-path::
 533        Print the path where the Info files documenting this
 534        version of Git are installed and exit.
 535
 536-p::
 537--paginate::
 538        Pipe all output into 'less' (or if set, $PAGER) if standard
 539        output is a terminal.  This overrides the `pager.<cmd>`
 540        configuration options (see the "Configuration Mechanism" section
 541        below).
 542
 543--no-pager::
 544        Do not pipe Git output into a pager.
 545
 546--git-dir=<path>::
 547        Set the path to the repository. This can also be controlled by
 548        setting the GIT_DIR environment variable. It can be an absolute
 549        path or relative path to current working directory.
 550
 551--work-tree=<path>::
 552        Set the path to the working tree. It can be an absolute path
 553        or a path relative to the current working directory.
 554        This can also be controlled by setting the GIT_WORK_TREE
 555        environment variable and the core.worktree configuration
 556        variable (see core.worktree in linkgit:git-config[1] for a
 557        more detailed discussion).
 558
 559--namespace=<path>::
 560        Set the Git namespace.  See linkgit:gitnamespaces[7] for more
 561        details.  Equivalent to setting the `GIT_NAMESPACE` environment
 562        variable.
 563
 564--bare::
 565        Treat the repository as a bare repository.  If GIT_DIR
 566        environment is not set, it is set to the current working
 567        directory.
 568
 569--no-replace-objects::
 570        Do not use replacement refs to replace Git objects. See
 571        linkgit:git-replace[1] for more information.
 572
 573--literal-pathspecs::
 574        Treat pathspecs literally (i.e. no globbing, no pathspec magic).
 575        This is equivalent to setting the `GIT_LITERAL_PATHSPECS` environment
 576        variable to `1`.
 577
 578--glob-pathspecs::
 579        Add "glob" magic to all pathspec. This is equivalent to setting
 580        the `GIT_GLOB_PATHSPECS` environment variable to `1`. Disabling
 581        globbing on individual pathspecs can be done using pathspec
 582        magic ":(literal)"
 583
 584--noglob-pathspecs::
 585        Add "literal" magic to all pathspec. This is equivalent to setting
 586        the `GIT_NOGLOB_PATHSPECS` environment variable to `1`. Enabling
 587        globbing on individual pathspecs can be done using pathspec
 588        magic ":(glob)"
 589
 590--icase-pathspecs::
 591        Add "icase" magic to all pathspec. This is equivalent to setting
 592        the `GIT_ICASE_PATHSPECS` environment variable to `1`.
 593
 594GIT COMMANDS
 595------------
 596
 597We divide Git into high level ("porcelain") commands and low level
 598("plumbing") commands.
 599
 600High-level commands (porcelain)
 601-------------------------------
 602
 603We separate the porcelain commands into the main commands and some
 604ancillary user utilities.
 605
 606Main porcelain commands
 607~~~~~~~~~~~~~~~~~~~~~~~
 608
 609include::cmds-mainporcelain.txt[]
 610
 611Ancillary Commands
 612~~~~~~~~~~~~~~~~~~
 613Manipulators:
 614
 615include::cmds-ancillarymanipulators.txt[]
 616
 617Interrogators:
 618
 619include::cmds-ancillaryinterrogators.txt[]
 620
 621
 622Interacting with Others
 623~~~~~~~~~~~~~~~~~~~~~~~
 624
 625These commands are to interact with foreign SCM and with other
 626people via patch over e-mail.
 627
 628include::cmds-foreignscminterface.txt[]
 629
 630
 631Low-level commands (plumbing)
 632-----------------------------
 633
 634Although Git includes its
 635own porcelain layer, its low-level commands are sufficient to support
 636development of alternative porcelains.  Developers of such porcelains
 637might start by reading about linkgit:git-update-index[1] and
 638linkgit:git-read-tree[1].
 639
 640The interface (input, output, set of options and the semantics)
 641to these low-level commands are meant to be a lot more stable
 642than Porcelain level commands, because these commands are
 643primarily for scripted use.  The interface to Porcelain commands
 644on the other hand are subject to change in order to improve the
 645end user experience.
 646
 647The following description divides
 648the low-level commands into commands that manipulate objects (in
 649the repository, index, and working tree), commands that interrogate and
 650compare objects, and commands that move objects and references between
 651repositories.
 652
 653
 654Manipulation commands
 655~~~~~~~~~~~~~~~~~~~~~
 656
 657include::cmds-plumbingmanipulators.txt[]
 658
 659
 660Interrogation commands
 661~~~~~~~~~~~~~~~~~~~~~~
 662
 663include::cmds-plumbinginterrogators.txt[]
 664
 665In general, the interrogate commands do not touch the files in
 666the working tree.
 667
 668
 669Synching repositories
 670~~~~~~~~~~~~~~~~~~~~~
 671
 672include::cmds-synchingrepositories.txt[]
 673
 674The following are helper commands used by the above; end users
 675typically do not use them directly.
 676
 677include::cmds-synchelpers.txt[]
 678
 679
 680Internal helper commands
 681~~~~~~~~~~~~~~~~~~~~~~~~
 682
 683These are internal helper commands used by other commands; end
 684users typically do not use them directly.
 685
 686include::cmds-purehelpers.txt[]
 687
 688
 689Configuration Mechanism
 690-----------------------
 691
 692Git uses a simple text format to store customizations that are per
 693repository and are per user.  Such a configuration file may look
 694like this:
 695
 696------------
 697#
 698# A '#' or ';' character indicates a comment.
 699#
 700
 701; core variables
 702[core]
 703        ; Don't trust file modes
 704        filemode = false
 705
 706; user identity
 707[user]
 708        name = "Junio C Hamano"
 709        email = "gitster@pobox.com"
 710
 711------------
 712
 713Various commands read from the configuration file and adjust
 714their operation accordingly.  See linkgit:git-config[1] for a
 715list and more details about the configuration mechanism.
 716
 717
 718Identifier Terminology
 719----------------------
 720<object>::
 721        Indicates the object name for any type of object.
 722
 723<blob>::
 724        Indicates a blob object name.
 725
 726<tree>::
 727        Indicates a tree object name.
 728
 729<commit>::
 730        Indicates a commit object name.
 731
 732<tree-ish>::
 733        Indicates a tree, commit or tag object name.  A
 734        command that takes a <tree-ish> argument ultimately wants to
 735        operate on a <tree> object but automatically dereferences
 736        <commit> and <tag> objects that point at a <tree>.
 737
 738<commit-ish>::
 739        Indicates a commit or tag object name.  A
 740        command that takes a <commit-ish> argument ultimately wants to
 741        operate on a <commit> object but automatically dereferences
 742        <tag> objects that point at a <commit>.
 743
 744<type>::
 745        Indicates that an object type is required.
 746        Currently one of: `blob`, `tree`, `commit`, or `tag`.
 747
 748<file>::
 749        Indicates a filename - almost always relative to the
 750        root of the tree structure `GIT_INDEX_FILE` describes.
 751
 752Symbolic Identifiers
 753--------------------
 754Any Git command accepting any <object> can also use the following
 755symbolic notation:
 756
 757HEAD::
 758        indicates the head of the current branch.
 759
 760<tag>::
 761        a valid tag 'name'
 762        (i.e. a `refs/tags/<tag>` reference).
 763
 764<head>::
 765        a valid head 'name'
 766        (i.e. a `refs/heads/<head>` reference).
 767
 768For a more complete list of ways to spell object names, see
 769"SPECIFYING REVISIONS" section in linkgit:gitrevisions[7].
 770
 771
 772File/Directory Structure
 773------------------------
 774
 775Please see the linkgit:gitrepository-layout[5] document.
 776
 777Read linkgit:githooks[5] for more details about each hook.
 778
 779Higher level SCMs may provide and manage additional information in the
 780`$GIT_DIR`.
 781
 782
 783Terminology
 784-----------
 785Please see linkgit:gitglossary[7].
 786
 787
 788Environment Variables
 789---------------------
 790Various Git commands use the following environment variables:
 791
 792The Git Repository
 793~~~~~~~~~~~~~~~~~~
 794These environment variables apply to 'all' core Git commands. Nb: it
 795is worth noting that they may be used/overridden by SCMS sitting above
 796Git so take care if using a foreign front-end.
 797
 798'GIT_INDEX_FILE'::
 799        This environment allows the specification of an alternate
 800        index file. If not specified, the default of `$GIT_DIR/index`
 801        is used.
 802
 803'GIT_INDEX_VERSION'::
 804        This environment variable allows the specification of an index
 805        version for new repositories.  It won't affect existing index
 806        files.  By default index file version 2 or 3 is used. See
 807        linkgit:git-update-index[1] for more information.
 808
 809'GIT_OBJECT_DIRECTORY'::
 810        If the object storage directory is specified via this
 811        environment variable then the sha1 directories are created
 812        underneath - otherwise the default `$GIT_DIR/objects`
 813        directory is used.
 814
 815'GIT_ALTERNATE_OBJECT_DIRECTORIES'::
 816        Due to the immutable nature of Git objects, old objects can be
 817        archived into shared, read-only directories. This variable
 818        specifies a ":" separated (on Windows ";" separated) list
 819        of Git object directories which can be used to search for Git
 820        objects. New objects will not be written to these directories.
 821
 822'GIT_DIR'::
 823        If the 'GIT_DIR' environment variable is set then it
 824        specifies a path to use instead of the default `.git`
 825        for the base of the repository.
 826        The '--git-dir' command-line option also sets this value.
 827
 828'GIT_WORK_TREE'::
 829        Set the path to the root of the working tree.
 830        This can also be controlled by the '--work-tree' command-line
 831        option and the core.worktree configuration variable.
 832
 833'GIT_NAMESPACE'::
 834        Set the Git namespace; see linkgit:gitnamespaces[7] for details.
 835        The '--namespace' command-line option also sets this value.
 836
 837'GIT_CEILING_DIRECTORIES'::
 838        This should be a colon-separated list of absolute paths.  If
 839        set, it is a list of directories that Git should not chdir up
 840        into while looking for a repository directory (useful for
 841        excluding slow-loading network directories).  It will not
 842        exclude the current working directory or a GIT_DIR set on the
 843        command line or in the environment.  Normally, Git has to read
 844        the entries in this list and resolve any symlink that
 845        might be present in order to compare them with the current
 846        directory.  However, if even this access is slow, you
 847        can add an empty entry to the list to tell Git that the
 848        subsequent entries are not symlinks and needn't be resolved;
 849        e.g.,
 850        'GIT_CEILING_DIRECTORIES=/maybe/symlink::/very/slow/non/symlink'.
 851
 852'GIT_DISCOVERY_ACROSS_FILESYSTEM'::
 853        When run in a directory that does not have ".git" repository
 854        directory, Git tries to find such a directory in the parent
 855        directories to find the top of the working tree, but by default it
 856        does not cross filesystem boundaries.  This environment variable
 857        can be set to true to tell Git not to stop at filesystem
 858        boundaries.  Like 'GIT_CEILING_DIRECTORIES', this will not affect
 859        an explicit repository directory set via 'GIT_DIR' or on the
 860        command line.
 861
 862'GIT_COMMON_DIR'::
 863        If this variable is set to a path, non-worktree files that are
 864        normally in $GIT_DIR will be taken from this path
 865        instead. Worktree-specific files such as HEAD or index are
 866        taken from $GIT_DIR. See linkgit:gitrepository-layout[5] and
 867        linkgit:git-worktree[1] for
 868        details. This variable has lower precedence than other path
 869        variables such as GIT_INDEX_FILE, GIT_OBJECT_DIRECTORY...
 870
 871Git Commits
 872~~~~~~~~~~~
 873'GIT_AUTHOR_NAME'::
 874'GIT_AUTHOR_EMAIL'::
 875'GIT_AUTHOR_DATE'::
 876'GIT_COMMITTER_NAME'::
 877'GIT_COMMITTER_EMAIL'::
 878'GIT_COMMITTER_DATE'::
 879'EMAIL'::
 880        see linkgit:git-commit-tree[1]
 881
 882Git Diffs
 883~~~~~~~~~
 884'GIT_DIFF_OPTS'::
 885        Only valid setting is "--unified=??" or "-u??" to set the
 886        number of context lines shown when a unified diff is created.
 887        This takes precedence over any "-U" or "--unified" option
 888        value passed on the Git diff command line.
 889
 890'GIT_EXTERNAL_DIFF'::
 891        When the environment variable 'GIT_EXTERNAL_DIFF' is set, the
 892        program named by it is called, instead of the diff invocation
 893        described above.  For a path that is added, removed, or modified,
 894        'GIT_EXTERNAL_DIFF' is called with 7 parameters:
 895
 896        path old-file old-hex old-mode new-file new-hex new-mode
 897+
 898where:
 899
 900        <old|new>-file:: are files GIT_EXTERNAL_DIFF can use to read the
 901                         contents of <old|new>,
 902        <old|new>-hex:: are the 40-hexdigit SHA-1 hashes,
 903        <old|new>-mode:: are the octal representation of the file modes.
 904+
 905The file parameters can point at the user's working file
 906(e.g. `new-file` in "git-diff-files"), `/dev/null` (e.g. `old-file`
 907when a new file is added), or a temporary file (e.g. `old-file` in the
 908index).  'GIT_EXTERNAL_DIFF' should not worry about unlinking the
 909temporary file --- it is removed when 'GIT_EXTERNAL_DIFF' exits.
 910+
 911For a path that is unmerged, 'GIT_EXTERNAL_DIFF' is called with 1
 912parameter, <path>.
 913+
 914For each path 'GIT_EXTERNAL_DIFF' is called, two environment variables,
 915'GIT_DIFF_PATH_COUNTER' and 'GIT_DIFF_PATH_TOTAL' are set.
 916
 917'GIT_DIFF_PATH_COUNTER'::
 918        A 1-based counter incremented by one for every path.
 919
 920'GIT_DIFF_PATH_TOTAL'::
 921        The total number of paths.
 922
 923other
 924~~~~~
 925'GIT_MERGE_VERBOSITY'::
 926        A number controlling the amount of output shown by
 927        the recursive merge strategy.  Overrides merge.verbosity.
 928        See linkgit:git-merge[1]
 929
 930'GIT_PAGER'::
 931        This environment variable overrides `$PAGER`. If it is set
 932        to an empty string or to the value "cat", Git will not launch
 933        a pager.  See also the `core.pager` option in
 934        linkgit:git-config[1].
 935
 936'GIT_EDITOR'::
 937        This environment variable overrides `$EDITOR` and `$VISUAL`.
 938        It is used by several Git commands when, on interactive mode,
 939        an editor is to be launched. See also linkgit:git-var[1]
 940        and the `core.editor` option in linkgit:git-config[1].
 941
 942'GIT_SSH'::
 943'GIT_SSH_COMMAND'::
 944        If either of these environment variables is set then 'git fetch'
 945        and 'git push' will use the specified command instead of 'ssh'
 946        when they need to connect to a remote system.
 947        The command will be given exactly two or four arguments: the
 948        'username@host' (or just 'host') from the URL and the shell
 949        command to execute on that remote system, optionally preceded by
 950        '-p' (literally) and the 'port' from the URL when it specifies
 951        something other than the default SSH port.
 952+
 953`$GIT_SSH_COMMAND` takes precedence over `$GIT_SSH`, and is interpreted
 954by the shell, which allows additional arguments to be included.
 955`$GIT_SSH` on the other hand must be just the path to a program
 956(which can be a wrapper shell script, if additional arguments are
 957needed).
 958+
 959Usually it is easier to configure any desired options through your
 960personal `.ssh/config` file.  Please consult your ssh documentation
 961for further details.
 962
 963'GIT_ASKPASS'::
 964        If this environment variable is set, then Git commands which need to
 965        acquire passwords or passphrases (e.g. for HTTP or IMAP authentication)
 966        will call this program with a suitable prompt as command-line argument
 967        and read the password from its STDOUT. See also the 'core.askPass'
 968        option in linkgit:git-config[1].
 969
 970'GIT_TERMINAL_PROMPT'::
 971        If this environment variable is set to `0`, git will not prompt
 972        on the terminal (e.g., when asking for HTTP authentication).
 973
 974'GIT_CONFIG_NOSYSTEM'::
 975        Whether to skip reading settings from the system-wide
 976        `$(prefix)/etc/gitconfig` file.  This environment variable can
 977        be used along with `$HOME` and `$XDG_CONFIG_HOME` to create a
 978        predictable environment for a picky script, or you can set it
 979        temporarily to avoid using a buggy `/etc/gitconfig` file while
 980        waiting for someone with sufficient permissions to fix it.
 981
 982'GIT_FLUSH'::
 983        If this environment variable is set to "1", then commands such
 984        as 'git blame' (in incremental mode), 'git rev-list', 'git log',
 985        'git check-attr' and 'git check-ignore' will
 986        force a flush of the output stream after each record have been
 987        flushed. If this
 988        variable is set to "0", the output of these commands will be done
 989        using completely buffered I/O.   If this environment variable is
 990        not set, Git will choose buffered or record-oriented flushing
 991        based on whether stdout appears to be redirected to a file or not.
 992
 993'GIT_TRACE'::
 994        Enables general trace messages, e.g. alias expansion, built-in
 995        command execution and external command execution.
 996+
 997If this variable is set to "1", "2" or "true" (comparison
 998is case insensitive), trace messages will be printed to
 999stderr.
1000+
1001If the variable is set to an integer value greater than 2
1002and lower than 10 (strictly) then Git will interpret this
1003value as an open file descriptor and will try to write the
1004trace messages into this file descriptor.
1005+
1006Alternatively, if the variable is set to an absolute path
1007(starting with a '/' character), Git will interpret this
1008as a file path and will try to write the trace messages
1009into it.
1010+
1011Unsetting the variable, or setting it to empty, "0" or
1012"false" (case insensitive) disables trace messages.
1013
1014'GIT_TRACE_PACK_ACCESS'::
1015        Enables trace messages for all accesses to any packs. For each
1016        access, the pack file name and an offset in the pack is
1017        recorded. This may be helpful for troubleshooting some
1018        pack-related performance problems.
1019        See 'GIT_TRACE' for available trace output options.
1020
1021'GIT_TRACE_PACKET'::
1022        Enables trace messages for all packets coming in or out of a
1023        given program. This can help with debugging object negotiation
1024        or other protocol issues. Tracing is turned off at a packet
1025        starting with "PACK".
1026        See 'GIT_TRACE' for available trace output options.
1027
1028'GIT_TRACE_PERFORMANCE'::
1029        Enables performance related trace messages, e.g. total execution
1030        time of each Git command.
1031        See 'GIT_TRACE' for available trace output options.
1032
1033'GIT_TRACE_SETUP'::
1034        Enables trace messages printing the .git, working tree and current
1035        working directory after Git has completed its setup phase.
1036        See 'GIT_TRACE' for available trace output options.
1037
1038'GIT_TRACE_SHALLOW'::
1039        Enables trace messages that can help debugging fetching /
1040        cloning of shallow repositories.
1041        See 'GIT_TRACE' for available trace output options.
1042
1043GIT_LITERAL_PATHSPECS::
1044        Setting this variable to `1` will cause Git to treat all
1045        pathspecs literally, rather than as glob patterns. For example,
1046        running `GIT_LITERAL_PATHSPECS=1 git log -- '*.c'` will search
1047        for commits that touch the path `*.c`, not any paths that the
1048        glob `*.c` matches. You might want this if you are feeding
1049        literal paths to Git (e.g., paths previously given to you by
1050        `git ls-tree`, `--raw` diff output, etc).
1051
1052GIT_GLOB_PATHSPECS::
1053        Setting this variable to `1` will cause Git to treat all
1054        pathspecs as glob patterns (aka "glob" magic).
1055
1056GIT_NOGLOB_PATHSPECS::
1057        Setting this variable to `1` will cause Git to treat all
1058        pathspecs as literal (aka "literal" magic).
1059
1060GIT_ICASE_PATHSPECS::
1061        Setting this variable to `1` will cause Git to treat all
1062        pathspecs as case-insensitive.
1063
1064'GIT_REFLOG_ACTION'::
1065        When a ref is updated, reflog entries are created to keep
1066        track of the reason why the ref was updated (which is
1067        typically the name of the high-level command that updated
1068        the ref), in addition to the old and new values of the ref.
1069        A scripted Porcelain command can use set_reflog_action
1070        helper function in `git-sh-setup` to set its name to this
1071        variable when it is invoked as the top level command by the
1072        end user, to be recorded in the body of the reflog.
1073
1074`GIT_REF_PARANOIA`::
1075        If set to `1`, include broken or badly named refs when iterating
1076        over lists of refs. In a normal, non-corrupted repository, this
1077        does nothing. However, enabling it may help git to detect and
1078        abort some operations in the presence of broken refs. Git sets
1079        this variable automatically when performing destructive
1080        operations like linkgit:git-prune[1]. You should not need to set
1081        it yourself unless you want to be paranoid about making sure
1082        an operation has touched every ref (e.g., because you are
1083        cloning a repository to make a backup).
1084
1085`GIT_ALLOW_PROTOCOL`::
1086        If set, provide a colon-separated list of protocols which are
1087        allowed to be used with fetch/push/clone. This is useful to
1088        restrict recursive submodule initialization from an untrusted
1089        repository. Any protocol not mentioned will be disallowed (i.e.,
1090        this is a whitelist, not a blacklist). If the variable is not
1091        set at all, all protocols are enabled.  The protocol names
1092        currently used by git are:
1093
1094          - `file`: any local file-based path (including `file://` URLs,
1095            or local paths)
1096
1097          - `git`: the anonymous git protocol over a direct TCP
1098            connection (or proxy, if configured)
1099
1100          - `ssh`: git over ssh (including `host:path` syntax,
1101            `git+ssh://`, etc).
1102
1103          - `rsync`: git over rsync
1104
1105          - `http`: git over http, both "smart http" and "dumb http".
1106            Note that this does _not_ include `https`; if you want both,
1107            you should specify both as `http:https`.
1108
1109          - any external helpers are named by their protocol (e.g., use
1110            `hg` to allow the `git-remote-hg` helper)
1111
1112
1113Discussion[[Discussion]]
1114------------------------
1115
1116More detail on the following is available from the
1117link:user-manual.html#git-concepts[Git concepts chapter of the
1118user-manual] and linkgit:gitcore-tutorial[7].
1119
1120A Git project normally consists of a working directory with a ".git"
1121subdirectory at the top level.  The .git directory contains, among other
1122things, a compressed object database representing the complete history
1123of the project, an "index" file which links that history to the current
1124contents of the working tree, and named pointers into that history such
1125as tags and branch heads.
1126
1127The object database contains objects of three main types: blobs, which
1128hold file data; trees, which point to blobs and other trees to build up
1129directory hierarchies; and commits, which each reference a single tree
1130and some number of parent commits.
1131
1132The commit, equivalent to what other systems call a "changeset" or
1133"version", represents a step in the project's history, and each parent
1134represents an immediately preceding step.  Commits with more than one
1135parent represent merges of independent lines of development.
1136
1137All objects are named by the SHA-1 hash of their contents, normally
1138written as a string of 40 hex digits.  Such names are globally unique.
1139The entire history leading up to a commit can be vouched for by signing
1140just that commit.  A fourth object type, the tag, is provided for this
1141purpose.
1142
1143When first created, objects are stored in individual files, but for
1144efficiency may later be compressed together into "pack files".
1145
1146Named pointers called refs mark interesting points in history.  A ref
1147may contain the SHA-1 name of an object or the name of another ref.  Refs
1148with names beginning `ref/head/` contain the SHA-1 name of the most
1149recent commit (or "head") of a branch under development.  SHA-1 names of
1150tags of interest are stored under `ref/tags/`.  A special ref named
1151`HEAD` contains the name of the currently checked-out branch.
1152
1153The index file is initialized with a list of all paths and, for each
1154path, a blob object and a set of attributes.  The blob object represents
1155the contents of the file as of the head of the current branch.  The
1156attributes (last modified time, size, etc.) are taken from the
1157corresponding file in the working tree.  Subsequent changes to the
1158working tree can be found by comparing these attributes.  The index may
1159be updated with new content, and new commits may be created from the
1160content stored in the index.
1161
1162The index is also capable of storing multiple entries (called "stages")
1163for a given pathname.  These stages are used to hold the various
1164unmerged version of a file when a merge is in progress.
1165
1166FURTHER DOCUMENTATION
1167---------------------
1168
1169See the references in the "description" section to get started
1170using Git.  The following is probably more detail than necessary
1171for a first-time user.
1172
1173The link:user-manual.html#git-concepts[Git concepts chapter of the
1174user-manual] and linkgit:gitcore-tutorial[7] both provide
1175introductions to the underlying Git architecture.
1176
1177See linkgit:gitworkflows[7] for an overview of recommended workflows.
1178
1179See also the link:howto-index.html[howto] documents for some useful
1180examples.
1181
1182The internals are documented in the
1183link:technical/api-index.html[Git API documentation].
1184
1185Users migrating from CVS may also want to
1186read linkgit:gitcvs-migration[7].
1187
1188
1189Authors
1190-------
1191Git was started by Linus Torvalds, and is currently maintained by Junio
1192C Hamano. Numerous contributions have come from the Git mailing list
1193<git@vger.kernel.org>.  http://www.openhub.net/p/git/contributors/summary
1194gives you a more complete list of contributors.
1195
1196If you have a clone of git.git itself, the
1197output of linkgit:git-shortlog[1] and linkgit:git-blame[1] can show you
1198the authors for specific parts of the project.
1199
1200Reporting Bugs
1201--------------
1202
1203Report bugs to the Git mailing list <git@vger.kernel.org> where the
1204development and maintenance is primarily done.  You do not have to be
1205subscribed to the list to send a message there.
1206
1207SEE ALSO
1208--------
1209linkgit:gittutorial[7], linkgit:gittutorial-2[7],
1210linkgit:giteveryday[7], linkgit:gitcvs-migration[7],
1211linkgit:gitglossary[7], linkgit:gitcore-tutorial[7],
1212linkgit:gitcli[7], link:user-manual.html[The Git User's Manual],
1213linkgit:gitworkflows[7]
1214
1215GIT
1216---
1217Part of the linkgit:git[1] suite