]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git.txt
tests: fix negated test_i18ngrep calls
[thirdparty/git.git] / Documentation / git.txt
CommitLineData
9e1f0a85 1git(1)
2cf565c5 2======
2cf565c5
DG
3
4NAME
5----
6git - the stupid content tracker
7
8
9SYNOPSIS
10--------
8b70004b 11[verse]
44e1e4d6 12'git' [--version] [--help] [-C <path>] [-c <name>=<value>]
68e4b552 13 [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
d49483f0
JT
14 [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
15 [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
68e4b552 16 <command> [<args>]
2cf565c5
DG
17
18DESCRIPTION
19-----------
23091e95
BF
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
6998e4db 24See linkgit:gittutorial[7] to get started, then see
7687ae98
JH
25link:everyday.html[Everyday Git] for a useful minimum set of
26commands. The link:user-manual.html[Git User's Manual] has a more
27in-depth introduction.
cb22bc44 28
7687ae98 29After you mastered the basic concepts, you can come back to this
2de9b711
TA
30page to learn what commands Git offers. You can learn more about
31individual Git commands with "git help command". linkgit:gitcli[7]
06ab60c0 32manual page gives you an overview of the command-line command syntax.
4514ad4f 33
2de9b711 34Formatted and hyperlinked version of the latest Git documentation
7687ae98 35can be viewed at `http://git-htmldocs.googlecode.com/git/git.html`.
34b604af 36
26cfcfbf
JH
37ifdef::stalenotes[]
38[NOTE]
39============
26cfcfbf 40
2ff3f61a 41You are reading the documentation for the latest (possibly
06ab60c0 42unreleased) version of Git, that is available from the 'master'
2ff3f61a
JH
43branch of the `git.git` repository.
44Documentation for older releases are available here:
43a8e4fe 45
32f56600 46* link:v2.0.4/git.html[documentation for release 2.0.4]
e156455e
JH
47
48* release notes for
32f56600 49 link:RelNotes/2.0.4.txt[2.0.4],
740c281d 50 link:RelNotes/2.0.3.txt[2.0.3],
ebc5da32 51 link:RelNotes/2.0.2.txt[2.0.2],
341e7e8e 52 link:RelNotes/2.0.1.txt[2.0.1],
e156455e
JH
53 link:RelNotes/2.0.0.txt[2.0.0].
54
34d52175 55* link:v1.9.4/git.html[documentation for release 1.9.4]
5f95c9f8
JH
56
57* release notes for
34d52175 58 link:RelNotes/1.9.4.txt[1.9.4],
eea59137 59 link:RelNotes/1.9.3.txt[1.9.3],
0bc85abb 60 link:RelNotes/1.9.2.txt[1.9.2],
cee0c275 61 link:RelNotes/1.9.1.txt[1.9.1],
5f95c9f8
JH
62 link:RelNotes/1.9.0.txt[1.9.0].
63
7bbc4e8f 64* link:v1.8.5.5/git.html[documentation for release 1.8.5.5]
d2446dfd
JH
65
66* release notes for
7bbc4e8f 67 link:RelNotes/1.8.5.5.txt[1.8.5.5],
3330a2c4 68 link:RelNotes/1.8.5.4.txt[1.8.5.4],
4224916a 69 link:RelNotes/1.8.5.3.txt[1.8.5.3],
5512ac58 70 link:RelNotes/1.8.5.2.txt[1.8.5.2],
a155a5f0 71 link:RelNotes/1.8.5.1.txt[1.8.5.1],
d2446dfd
JH
72 link:RelNotes/1.8.5.txt[1.8.5].
73
2f93541d 74* link:v1.8.4.5/git.html[documentation for release 1.8.4.5]
e230c568
JH
75
76* release notes for
2f93541d 77 link:RelNotes/1.8.4.5.txt[1.8.4.5],
becb4336 78 link:RelNotes/1.8.4.4.txt[1.8.4.4],
d7d2c879 79 link:RelNotes/1.8.4.3.txt[1.8.4.3],
dcb11cca 80 link:RelNotes/1.8.4.2.txt[1.8.4.2],
02a110ad 81 link:RelNotes/1.8.4.1.txt[1.8.4.1],
e230c568
JH
82 link:RelNotes/1.8.4.txt[1.8.4].
83
117eea7e 84* link:v1.8.3.4/git.html[documentation for release 1.8.3.4]
54219a4d
JH
85
86* release notes for
117eea7e 87 link:RelNotes/1.8.3.4.txt[1.8.3.4],
5addd1c7 88 link:RelNotes/1.8.3.3.txt[1.8.3.3],
3a461832 89 link:RelNotes/1.8.3.2.txt[1.8.3.2],
362de916 90 link:RelNotes/1.8.3.1.txt[1.8.3.1],
54219a4d
JH
91 link:RelNotes/1.8.3.txt[1.8.3].
92
92758dd2 93* link:v1.8.2.3/git.html[documentation for release 1.8.2.3]
239222f5
JH
94
95* release notes for
54219a4d
JH
96 link:RelNotes/1.8.2.3.txt[1.8.2.3],
97 link:RelNotes/1.8.2.2.txt[1.8.2.2],
98 link:RelNotes/1.8.2.1.txt[1.8.2.1],
239222f5
JH
99 link:RelNotes/1.8.2.txt[1.8.2].
100
2137ce01 101* link:v1.8.1.6/git.html[documentation for release 1.8.1.6]
5d417842
JH
102
103* release notes for
2137ce01 104 link:RelNotes/1.8.1.6.txt[1.8.1.6],
e6363a49 105 link:RelNotes/1.8.1.5.txt[1.8.1.5],
dff9f883 106 link:RelNotes/1.8.1.4.txt[1.8.1.4],
f3500825
JH
107 link:RelNotes/1.8.1.3.txt[1.8.1.3],
108 link:RelNotes/1.8.1.2.txt[1.8.1.2],
e4f59a32 109 link:RelNotes/1.8.1.1.txt[1.8.1.1],
5d417842
JH
110 link:RelNotes/1.8.1.txt[1.8.1].
111
15999998 112* link:v1.8.0.3/git.html[documentation for release 1.8.0.3]
8c7a786b
JH
113
114* release notes for
15999998 115 link:RelNotes/1.8.0.3.txt[1.8.0.3],
3e53891f 116 link:RelNotes/1.8.0.2.txt[1.8.0.2],
ed9fe755
JH
117 link:RelNotes/1.8.0.1.txt[1.8.0.1],
118 link:RelNotes/1.8.0.txt[1.8.0].
8c7a786b 119
7e201053 120* link:v1.7.12.4/git.html[documentation for release 1.7.12.4]
889d3589
JH
121
122* release notes for
7e201053 123 link:RelNotes/1.7.12.4.txt[1.7.12.4],
234cd456 124 link:RelNotes/1.7.12.3.txt[1.7.12.3],
d8cf053d 125 link:RelNotes/1.7.12.2.txt[1.7.12.2],
304b7d99 126 link:RelNotes/1.7.12.1.txt[1.7.12.1],
889d3589
JH
127 link:RelNotes/1.7.12.txt[1.7.12].
128
bafc478f 129* link:v1.7.11.7/git.html[documentation for release 1.7.11.7]
0ce2e396
JH
130
131* release notes for
bafc478f 132 link:RelNotes/1.7.11.7.txt[1.7.11.7],
e09e4024 133 link:RelNotes/1.7.11.6.txt[1.7.11.6],
cd7c0be1 134 link:RelNotes/1.7.11.5.txt[1.7.11.5],
0e4c8822 135 link:RelNotes/1.7.11.4.txt[1.7.11.4],
e6dfbcf1 136 link:RelNotes/1.7.11.3.txt[1.7.11.3],
8d141a1d 137 link:RelNotes/1.7.11.2.txt[1.7.11.2],
0e64a95a 138 link:RelNotes/1.7.11.1.txt[1.7.11.1],
0ce2e396
JH
139 link:RelNotes/1.7.11.txt[1.7.11].
140
785ee496 141* link:v1.7.10.5/git.html[documentation for release 1.7.10.5]
e8dde3e5
JH
142
143* release notes for
785ee496 144 link:RelNotes/1.7.10.5.txt[1.7.10.5],
121f71f0 145 link:RelNotes/1.7.10.4.txt[1.7.10.4],
6a6d72b1 146 link:RelNotes/1.7.10.3.txt[1.7.10.3],
b6555d73 147 link:RelNotes/1.7.10.2.txt[1.7.10.2],
bf505158 148 link:RelNotes/1.7.10.1.txt[1.7.10.1],
e8dde3e5
JH
149 link:RelNotes/1.7.10.txt[1.7.10].
150
d0f1ea60 151* link:v1.7.9.7/git.html[documentation for release 1.7.9.7]
828ea97d
JH
152
153* release notes for
d0f1ea60 154 link:RelNotes/1.7.9.7.txt[1.7.9.7],
cb2ed324 155 link:RelNotes/1.7.9.6.txt[1.7.9.6],
8ced9c90 156 link:RelNotes/1.7.9.5.txt[1.7.9.5],
a4603481 157 link:RelNotes/1.7.9.4.txt[1.7.9.4],
69f4e08f 158 link:RelNotes/1.7.9.3.txt[1.7.9.3],
78f4c9f6 159 link:RelNotes/1.7.9.2.txt[1.7.9.2],
90020e3b 160 link:RelNotes/1.7.9.1.txt[1.7.9.1],
828ea97d
JH
161 link:RelNotes/1.7.9.txt[1.7.9].
162
d9f5ef7a 163* link:v1.7.8.6/git.html[documentation for release 1.7.8.6]
406da780
JH
164
165* release notes for
d9f5ef7a 166 link:RelNotes/1.7.8.6.txt[1.7.8.6],
cb2ed324 167 link:RelNotes/1.7.8.5.txt[1.7.8.5],
c572f491 168 link:RelNotes/1.7.8.4.txt[1.7.8.4],
5f4d133f
JH
169 link:RelNotes/1.7.8.3.txt[1.7.8.3],
170 link:RelNotes/1.7.8.2.txt[1.7.8.2],
171 link:RelNotes/1.7.8.1.txt[1.7.8.1],
406da780
JH
172 link:RelNotes/1.7.8.txt[1.7.8].
173
82588584 174* link:v1.7.7.7/git.html[documentation for release 1.7.7.7]
703f05ad
JH
175
176* release notes for
82588584 177 link:RelNotes/1.7.7.7.txt[1.7.7.7],
c572f491 178 link:RelNotes/1.7.7.6.txt[1.7.7.6],
66c11f02
JH
179 link:RelNotes/1.7.7.5.txt[1.7.7.5],
180 link:RelNotes/1.7.7.4.txt[1.7.7.4],
181 link:RelNotes/1.7.7.3.txt[1.7.7.3],
182 link:RelNotes/1.7.7.2.txt[1.7.7.2],
f7d958df 183 link:RelNotes/1.7.7.1.txt[1.7.7.1],
703f05ad
JH
184 link:RelNotes/1.7.7.txt[1.7.7].
185
f174a258 186* link:v1.7.6.6/git.html[documentation for release 1.7.6.6]
f696543d
JH
187
188* release notes for
f174a258 189 link:RelNotes/1.7.6.6.txt[1.7.6.6],
15b7898c 190 link:RelNotes/1.7.6.5.txt[1.7.6.5],
63205264 191 link:RelNotes/1.7.6.4.txt[1.7.6.4],
740a8fc2 192 link:RelNotes/1.7.6.3.txt[1.7.6.3],
509d5970
JH
193 link:RelNotes/1.7.6.2.txt[1.7.6.2],
194 link:RelNotes/1.7.6.1.txt[1.7.6.1],
f696543d
JH
195 link:RelNotes/1.7.6.txt[1.7.6].
196
e5af0de2 197* link:v1.7.5.4/git.html[documentation for release 1.7.5.4]
ec014eac
JH
198
199* release notes for
e5af0de2 200 link:RelNotes/1.7.5.4.txt[1.7.5.4],
3c3e0b3c 201 link:RelNotes/1.7.5.3.txt[1.7.5.3],
3d5ae435 202 link:RelNotes/1.7.5.2.txt[1.7.5.2],
2f312e88 203 link:RelNotes/1.7.5.1.txt[1.7.5.1],
ec014eac
JH
204 link:RelNotes/1.7.5.txt[1.7.5].
205
6ceb270c 206* link:v1.7.4.5/git.html[documentation for release 1.7.4.5]
7ed863a8
JH
207
208* release notes for
6ceb270c 209 link:RelNotes/1.7.4.5.txt[1.7.4.5],
6be05591 210 link:RelNotes/1.7.4.4.txt[1.7.4.4],
cb35c064
JH
211 link:RelNotes/1.7.4.3.txt[1.7.4.3],
212 link:RelNotes/1.7.4.2.txt[1.7.4.2],
9971d6d5 213 link:RelNotes/1.7.4.1.txt[1.7.4.1],
7ed863a8
JH
214 link:RelNotes/1.7.4.txt[1.7.4].
215
685e9d91 216* link:v1.7.3.5/git.html[documentation for release 1.7.3.5]
87b50542
JH
217
218* release notes for
685e9d91 219 link:RelNotes/1.7.3.5.txt[1.7.3.5],
15368e18 220 link:RelNotes/1.7.3.4.txt[1.7.3.4],
ed94cc76 221 link:RelNotes/1.7.3.3.txt[1.7.3.3],
8a904385 222 link:RelNotes/1.7.3.2.txt[1.7.3.2],
92c1e717 223 link:RelNotes/1.7.3.1.txt[1.7.3.1],
87b50542
JH
224 link:RelNotes/1.7.3.txt[1.7.3].
225
1b974346 226* link:v1.7.2.5/git.html[documentation for release 1.7.2.5]
64fdc08d
JH
227
228* release notes for
1b974346 229 link:RelNotes/1.7.2.5.txt[1.7.2.5],
ed94cc76 230 link:RelNotes/1.7.2.4.txt[1.7.2.4],
761e742d
NP
231 link:RelNotes/1.7.2.3.txt[1.7.2.3],
232 link:RelNotes/1.7.2.2.txt[1.7.2.2],
233 link:RelNotes/1.7.2.1.txt[1.7.2.1],
234 link:RelNotes/1.7.2.txt[1.7.2].
64fdc08d 235
1b974346 236* link:v1.7.1.4/git.html[documentation for release 1.7.1.4]
d599e048
JH
237
238* release notes for
1b974346 239 link:RelNotes/1.7.1.4.txt[1.7.1.4],
ed94cc76 240 link:RelNotes/1.7.1.3.txt[1.7.1.3],
761e742d
NP
241 link:RelNotes/1.7.1.2.txt[1.7.1.2],
242 link:RelNotes/1.7.1.1.txt[1.7.1.1],
243 link:RelNotes/1.7.1.txt[1.7.1].
d599e048 244
1b974346 245* link:v1.7.0.9/git.html[documentation for release 1.7.0.9]
e923eaeb
JH
246
247* release notes for
1b974346 248 link:RelNotes/1.7.0.9.txt[1.7.0.9],
ed94cc76 249 link:RelNotes/1.7.0.8.txt[1.7.0.8],
761e742d
NP
250 link:RelNotes/1.7.0.7.txt[1.7.0.7],
251 link:RelNotes/1.7.0.6.txt[1.7.0.6],
252 link:RelNotes/1.7.0.5.txt[1.7.0.5],
253 link:RelNotes/1.7.0.4.txt[1.7.0.4],
254 link:RelNotes/1.7.0.3.txt[1.7.0.3],
255 link:RelNotes/1.7.0.2.txt[1.7.0.2],
256 link:RelNotes/1.7.0.1.txt[1.7.0.1],
257 link:RelNotes/1.7.0.txt[1.7.0].
e923eaeb 258
1b974346 259* link:v1.6.6.3/git.html[documentation for release 1.6.6.3]
902f2353
JH
260
261* release notes for
1b974346 262 link:RelNotes/1.6.6.3.txt[1.6.6.3],
761e742d
NP
263 link:RelNotes/1.6.6.2.txt[1.6.6.2],
264 link:RelNotes/1.6.6.1.txt[1.6.6.1],
265 link:RelNotes/1.6.6.txt[1.6.6].
902f2353 266
1b974346 267* link:v1.6.5.9/git.html[documentation for release 1.6.5.9]
78d553b7
JH
268
269* release notes for
1b974346 270 link:RelNotes/1.6.5.9.txt[1.6.5.9],
761e742d
NP
271 link:RelNotes/1.6.5.8.txt[1.6.5.8],
272 link:RelNotes/1.6.5.7.txt[1.6.5.7],
273 link:RelNotes/1.6.5.6.txt[1.6.5.6],
274 link:RelNotes/1.6.5.5.txt[1.6.5.5],
275 link:RelNotes/1.6.5.4.txt[1.6.5.4],
276 link:RelNotes/1.6.5.3.txt[1.6.5.3],
277 link:RelNotes/1.6.5.2.txt[1.6.5.2],
278 link:RelNotes/1.6.5.1.txt[1.6.5.1],
279 link:RelNotes/1.6.5.txt[1.6.5].
78d553b7 280
1b974346 281* link:v1.6.4.5/git.html[documentation for release 1.6.4.5]
0a53e9dd
JH
282
283* release notes for
1b974346 284 link:RelNotes/1.6.4.5.txt[1.6.4.5],
761e742d
NP
285 link:RelNotes/1.6.4.4.txt[1.6.4.4],
286 link:RelNotes/1.6.4.3.txt[1.6.4.3],
287 link:RelNotes/1.6.4.2.txt[1.6.4.2],
288 link:RelNotes/1.6.4.1.txt[1.6.4.1],
289 link:RelNotes/1.6.4.txt[1.6.4].
0a53e9dd 290
441b40d8 291* link:v1.6.3.4/git.html[documentation for release 1.6.3.4]
6096d759
JH
292
293* release notes for
761e742d
NP
294 link:RelNotes/1.6.3.4.txt[1.6.3.4],
295 link:RelNotes/1.6.3.3.txt[1.6.3.3],
296 link:RelNotes/1.6.3.2.txt[1.6.3.2],
297 link:RelNotes/1.6.3.1.txt[1.6.3.1],
298 link:RelNotes/1.6.3.txt[1.6.3].
a95148de
JH
299
300* release notes for
761e742d
NP
301 link:RelNotes/1.6.2.5.txt[1.6.2.5],
302 link:RelNotes/1.6.2.4.txt[1.6.2.4],
303 link:RelNotes/1.6.2.3.txt[1.6.2.3],
304 link:RelNotes/1.6.2.2.txt[1.6.2.2],
305 link:RelNotes/1.6.2.1.txt[1.6.2.1],
306 link:RelNotes/1.6.2.txt[1.6.2].
a95148de 307
621f1b4b 308* link:v1.6.1.3/git.html[documentation for release 1.6.1.3]
8104ebfe
JH
309
310* release notes for
761e742d
NP
311 link:RelNotes/1.6.1.3.txt[1.6.1.3],
312 link:RelNotes/1.6.1.2.txt[1.6.1.2],
313 link:RelNotes/1.6.1.1.txt[1.6.1.1],
314 link:RelNotes/1.6.1.txt[1.6.1].
8104ebfe 315
efe05b01 316* link:v1.6.0.6/git.html[documentation for release 1.6.0.6]
ea02eef0
JH
317
318* release notes for
761e742d
NP
319 link:RelNotes/1.6.0.6.txt[1.6.0.6],
320 link:RelNotes/1.6.0.5.txt[1.6.0.5],
321 link:RelNotes/1.6.0.4.txt[1.6.0.4],
322 link:RelNotes/1.6.0.3.txt[1.6.0.3],
323 link:RelNotes/1.6.0.2.txt[1.6.0.2],
324 link:RelNotes/1.6.0.1.txt[1.6.0.1],
325 link:RelNotes/1.6.0.txt[1.6.0].
ea02eef0 326
efe05b01 327* link:v1.5.6.6/git.html[documentation for release 1.5.6.6]
e449f105
JH
328
329* release notes for
761e742d
NP
330 link:RelNotes/1.5.6.6.txt[1.5.6.6],
331 link:RelNotes/1.5.6.5.txt[1.5.6.5],
332 link:RelNotes/1.5.6.4.txt[1.5.6.4],
333 link:RelNotes/1.5.6.3.txt[1.5.6.3],
334 link:RelNotes/1.5.6.2.txt[1.5.6.2],
335 link:RelNotes/1.5.6.1.txt[1.5.6.1],
336 link:RelNotes/1.5.6.txt[1.5.6].
e449f105 337
efe05b01 338* link:v1.5.5.6/git.html[documentation for release 1.5.5.6]
1d2375dd
JH
339
340* release notes for
761e742d
NP
341 link:RelNotes/1.5.5.6.txt[1.5.5.6],
342 link:RelNotes/1.5.5.5.txt[1.5.5.5],
343 link:RelNotes/1.5.5.4.txt[1.5.5.4],
344 link:RelNotes/1.5.5.3.txt[1.5.5.3],
345 link:RelNotes/1.5.5.2.txt[1.5.5.2],
346 link:RelNotes/1.5.5.1.txt[1.5.5.1],
347 link:RelNotes/1.5.5.txt[1.5.5].
1d2375dd 348
efe05b01 349* link:v1.5.4.7/git.html[documentation for release 1.5.4.7]
6ce8e44a
JH
350
351* release notes for
761e742d
NP
352 link:RelNotes/1.5.4.7.txt[1.5.4.7],
353 link:RelNotes/1.5.4.6.txt[1.5.4.6],
354 link:RelNotes/1.5.4.5.txt[1.5.4.5],
355 link:RelNotes/1.5.4.4.txt[1.5.4.4],
356 link:RelNotes/1.5.4.3.txt[1.5.4.3],
357 link:RelNotes/1.5.4.2.txt[1.5.4.2],
358 link:RelNotes/1.5.4.1.txt[1.5.4.1],
359 link:RelNotes/1.5.4.txt[1.5.4].
6ce8e44a 360
e708af6e 361* link:v1.5.3.8/git.html[documentation for release 1.5.3.8]
5587cac2
JH
362
363* release notes for
761e742d
NP
364 link:RelNotes/1.5.3.8.txt[1.5.3.8],
365 link:RelNotes/1.5.3.7.txt[1.5.3.7],
366 link:RelNotes/1.5.3.6.txt[1.5.3.6],
367 link:RelNotes/1.5.3.5.txt[1.5.3.5],
368 link:RelNotes/1.5.3.4.txt[1.5.3.4],
369 link:RelNotes/1.5.3.3.txt[1.5.3.3],
370 link:RelNotes/1.5.3.2.txt[1.5.3.2],
371 link:RelNotes/1.5.3.1.txt[1.5.3.1],
372 link:RelNotes/1.5.3.txt[1.5.3].
b6e4db6a 373
e636106c
JH
374* link:v1.5.2.5/git.html[documentation for release 1.5.2.5]
375
aba170cd 376* release notes for
761e742d
NP
377 link:RelNotes/1.5.2.5.txt[1.5.2.5],
378 link:RelNotes/1.5.2.4.txt[1.5.2.4],
379 link:RelNotes/1.5.2.3.txt[1.5.2.3],
380 link:RelNotes/1.5.2.2.txt[1.5.2.2],
381 link:RelNotes/1.5.2.1.txt[1.5.2.1],
382 link:RelNotes/1.5.2.txt[1.5.2].
aba170cd
JH
383
384* link:v1.5.1.6/git.html[documentation for release 1.5.1.6]
385
386* release notes for
761e742d
NP
387 link:RelNotes/1.5.1.6.txt[1.5.1.6],
388 link:RelNotes/1.5.1.5.txt[1.5.1.5],
389 link:RelNotes/1.5.1.4.txt[1.5.1.4],
390 link:RelNotes/1.5.1.3.txt[1.5.1.3],
391 link:RelNotes/1.5.1.2.txt[1.5.1.2],
392 link:RelNotes/1.5.1.1.txt[1.5.1.1],
393 link:RelNotes/1.5.1.txt[1.5.1].
2ff3f61a
JH
394
395* link:v1.5.0.7/git.html[documentation for release 1.5.0.7]
396
aba170cd 397* release notes for
761e742d
NP
398 link:RelNotes/1.5.0.7.txt[1.5.0.7],
399 link:RelNotes/1.5.0.6.txt[1.5.0.6],
400 link:RelNotes/1.5.0.5.txt[1.5.0.5],
401 link:RelNotes/1.5.0.3.txt[1.5.0.3],
402 link:RelNotes/1.5.0.2.txt[1.5.0.2],
403 link:RelNotes/1.5.0.1.txt[1.5.0.1],
404 link:RelNotes/1.5.0.txt[1.5.0].
2ff3f61a
JH
405
406* documentation for release link:v1.4.4.4/git.html[1.4.4.4],
407 link:v1.3.3/git.html[1.3.3],
408 link:v1.2.6/git.html[1.2.6],
409 link:v1.0.13/git.html[1.0.13].
26cfcfbf
JH
410
411============
412
413endif::stalenotes[]
414
cb22bc44
AE
415OPTIONS
416-------
417--version::
2de9b711 418 Prints the Git suite version that the 'git' program came from.
cb22bc44
AE
419
420--help::
a87cd02c 421 Prints the synopsis and a list of the most commonly used
0f6f195b 422 commands. If the option '--all' or '-a' is given then all
2de9b711 423 available commands are printed. If a Git command is named this
0f6f195b 424 option will bring up the manual page for that command.
45533d26
CC
425+
426Other options are available to control how the manual page is
5162e697 427displayed. See linkgit:git-help[1] for more information,
db5d6666
JN
428because `git --help ...` is converted internally into `git
429help ...`.
cb22bc44 430
44e1e4d6
NR
431-C <path>::
432 Run as if git was started in '<path>' instead of the current working
433 directory. When multiple `-C` options are given, each subsequent
434 non-absolute `-C <path>` is interpreted relative to the preceding `-C
435 <path>`.
436+
437This option affects options that expect path name like `--git-dir` and
438`--work-tree` in that their interpretations of the path names would be
439made relative to the working directory caused by the `-C` option. For
440example the following invocations are equivalent:
441
442 git --git-dir=a.git --work-tree=b -C c status
443 git --git-dir=c/a.git --work-tree=c/b status
444
8b1fa778
AR
445-c <name>=<value>::
446 Pass a configuration parameter to the command. The value
447 given will override values from configuration files.
448 The <name> is expected in the same format as listed by
449 'git config' (subkeys separated by dots).
450
62b4698e 451--exec-path[=<path>]::
2de9b711 452 Path to wherever your core Git programs are installed.
cb22bc44 453 This can also be controlled by setting the GIT_EXEC_PATH
56992f76 454 environment variable. If no path is given, 'git' will print
cb22bc44
AE
455 the current setting and then exit.
456
89a56bfb 457--html-path::
2de9b711 458 Print the path, without trailing slash, where Git's HTML
239b5ed9 459 documentation is installed and exit.
89a56bfb 460
f2dd8c37 461--man-path::
239b5ed9 462 Print the manpath (see `man(1)`) for the man pages for
2de9b711 463 this version of Git and exit.
f2dd8c37
JS
464
465--info-path::
239b5ed9 466 Print the path where the Info files documenting this
2de9b711 467 version of Git are installed and exit.
89a56bfb 468
3240240f
SB
469-p::
470--paginate::
06300d97
JN
471 Pipe all output into 'less' (or if set, $PAGER) if standard
472 output is a terminal. This overrides the `pager.<cmd>`
473 configuration options (see the "Configuration Mechanism" section
474 below).
6acbcb92 475
463a849d 476--no-pager::
2de9b711 477 Do not pipe Git output into a pager.
463a849d 478
6acbcb92
JS
479--git-dir=<path>::
480 Set the path to the repository. This can also be controlled by
302cc11a
LY
481 setting the GIT_DIR environment variable. It can be an absolute
482 path or relative path to current working directory.
6acbcb92 483
892c41b9 484--work-tree=<path>::
ea472c1e
JH
485 Set the path to the working tree. It can be an absolute path
486 or a path relative to the current working directory.
892c41b9
ML
487 This can also be controlled by setting the GIT_WORK_TREE
488 environment variable and the core.worktree configuration
ea472c1e
JH
489 variable (see core.worktree in linkgit:git-config[1] for a
490 more detailed discussion).
892c41b9 491
d49483f0 492--namespace=<path>::
2de9b711 493 Set the Git namespace. See linkgit:gitnamespaces[7] for more
d49483f0
JT
494 details. Equivalent to setting the `GIT_NAMESPACE` environment
495 variable.
496
6acbcb92 497--bare::
9277d602
JH
498 Treat the repository as a bare repository. If GIT_DIR
499 environment is not set, it is set to the current working
500 directory.
501
b0fa7ab5 502--no-replace-objects::
2de9b711 503 Do not use replacement refs to replace Git objects. See
b0fa7ab5
CC
504 linkgit:git-replace[1] for more information.
505
823ab40f 506--literal-pathspecs::
a16bf9dd
NTND
507 Treat pathspecs literally (i.e. no globbing, no pathspec magic).
508 This is equivalent to setting the `GIT_LITERAL_PATHSPECS` environment
823ab40f
JK
509 variable to `1`.
510
6fb02165 511--glob-pathspecs::
bd30c2e4
NTND
512 Add "glob" magic to all pathspec. This is equivalent to setting
513 the `GIT_GLOB_PATHSPECS` environment variable to `1`. Disabling
514 globbing on individual pathspecs can be done using pathspec
515 magic ":(literal)"
516
6fb02165 517--noglob-pathspecs::
bd30c2e4
NTND
518 Add "literal" magic to all pathspec. This is equivalent to setting
519 the `GIT_NOGLOB_PATHSPECS` environment variable to `1`. Enabling
520 globbing on individual pathspecs can be done using pathspec
521 magic ":(glob)"
9755afbd 522
6fb02165 523--icase-pathspecs::
93d93537
NTND
524 Add "icase" magic to all pathspec. This is equivalent to setting
525 the `GIT_ICASE_PATHSPECS` environment variable to `1`.
9755afbd 526
23091e95
BF
527GIT COMMANDS
528------------
9755afbd 529
2de9b711 530We divide Git into high level ("porcelain") commands and low level
23091e95 531("plumbing") commands.
8b15e2fb 532
23091e95
BF
533High-level commands (porcelain)
534-------------------------------
535
536We separate the porcelain commands into the main commands and some
537ancillary user utilities.
538
539Main porcelain commands
540~~~~~~~~~~~~~~~~~~~~~~~
905197de 541
377e8139 542include::cmds-mainporcelain.txt[]
e31bb3bb 543
90933efb 544Ancillary Commands
23091e95 545~~~~~~~~~~~~~~~~~~
2f2de9b4
JH
546Manipulators:
547
377e8139 548include::cmds-ancillarymanipulators.txt[]
204ee6a9 549
90933efb 550Interrogators:
204ee6a9 551
377e8139 552include::cmds-ancillaryinterrogators.txt[]
7fc9d69f 553
89bf2077
JH
554
555Interacting with Others
556~~~~~~~~~~~~~~~~~~~~~~~
557
558These commands are to interact with foreign SCM and with other
559people via patch over e-mail.
560
561include::cmds-foreignscminterface.txt[]
562
563
b1f33d62
RR
564Low-level commands (plumbing)
565-----------------------------
566
2de9b711 567Although Git includes its
b1f33d62
RR
568own porcelain layer, its low-level commands are sufficient to support
569development of alternative porcelains. Developers of such porcelains
5162e697
DM
570might start by reading about linkgit:git-update-index[1] and
571linkgit:git-read-tree[1].
b1f33d62 572
89bf2077
JH
573The interface (input, output, set of options and the semantics)
574to these low-level commands are meant to be a lot more stable
575than Porcelain level commands, because these commands are
576primarily for scripted use. The interface to Porcelain commands
577on the other hand are subject to change in order to improve the
578end user experience.
579
580The following description divides
581the low-level commands into commands that manipulate objects (in
b1f33d62
RR
582the repository, index, and working tree), commands that interrogate and
583compare objects, and commands that move objects and references between
584repositories.
585
89bf2077 586
b1f33d62
RR
587Manipulation commands
588~~~~~~~~~~~~~~~~~~~~~
b1f33d62 589
377e8139 590include::cmds-plumbingmanipulators.txt[]
b1f33d62
RR
591
592
593Interrogation commands
594~~~~~~~~~~~~~~~~~~~~~~
595
377e8139 596include::cmds-plumbinginterrogators.txt[]
b1f33d62
RR
597
598In general, the interrogate commands do not touch the files in
599the working tree.
600
601
602Synching repositories
603~~~~~~~~~~~~~~~~~~~~~
604
377e8139 605include::cmds-synchingrepositories.txt[]
b1f33d62 606
57f6ec02 607The following are helper commands used by the above; end users
89bf2077
JH
608typically do not use them directly.
609
610include::cmds-synchelpers.txt[]
611
612
613Internal helper commands
614~~~~~~~~~~~~~~~~~~~~~~~~
615
616These are internal helper commands used by other commands; end
617users typically do not use them directly.
618
619include::cmds-purehelpers.txt[]
620
b1f33d62 621
5773c9f2
JH
622Configuration Mechanism
623-----------------------
624
c0179c0d
MM
625Git uses a simple text format to store customizations that are per
626repository and are per user. Such a configuration file may look
627like this:
5773c9f2
JH
628
629------------
630#
2fa090b6 631# A '#' or ';' character indicates a comment.
5773c9f2
JH
632#
633
634; core variables
635[core]
636 ; Don't trust file modes
637 filemode = false
638
639; user identity
640[user]
641 name = "Junio C Hamano"
c0179c0d 642 email = "gitster@pobox.com"
5773c9f2
JH
643
644------------
645
646Various commands read from the configuration file and adjust
06300d97 647their operation accordingly. See linkgit:git-config[1] for a
c0179c0d 648list and more details about the configuration mechanism.
5773c9f2
JH
649
650
6c84e2e0 651Identifier Terminology
2cf565c5
DG
652----------------------
653<object>::
2fa090b6 654 Indicates the object name for any type of object.
2cf565c5
DG
655
656<blob>::
2fa090b6 657 Indicates a blob object name.
2cf565c5
DG
658
659<tree>::
2fa090b6 660 Indicates a tree object name.
2cf565c5
DG
661
662<commit>::
2fa090b6 663 Indicates a commit object name.
2cf565c5
DG
664
665<tree-ish>::
2fa090b6 666 Indicates a tree, commit or tag object name. A
6c84e2e0
DG
667 command that takes a <tree-ish> argument ultimately wants to
668 operate on a <tree> object but automatically dereferences
669 <commit> and <tag> objects that point at a <tree>.
2cf565c5 670
043d7605
TT
671<commit-ish>::
672 Indicates a commit or tag object name. A
673 command that takes a <commit-ish> argument ultimately wants to
674 operate on a <commit> object but automatically dereferences
675 <tag> objects that point at a <commit>.
676
2cf565c5
DG
677<type>::
678 Indicates that an object type is required.
2fa090b6 679 Currently one of: `blob`, `tree`, `commit`, or `tag`.
2cf565c5
DG
680
681<file>::
2fa090b6
JH
682 Indicates a filename - almost always relative to the
683 root of the tree structure `GIT_INDEX_FILE` describes.
2cf565c5 684
c1bdacf9
DG
685Symbolic Identifiers
686--------------------
2de9b711 687Any Git command accepting any <object> can also use the following
6c84e2e0 688symbolic notation:
c1bdacf9
DG
689
690HEAD::
0abcfbff 691 indicates the head of the current branch.
2fa090b6 692
c1bdacf9 693<tag>::
2fa090b6 694 a valid tag 'name'
0abcfbff 695 (i.e. a `refs/tags/<tag>` reference).
2fa090b6 696
c1bdacf9 697<head>::
2fa090b6 698 a valid head 'name'
0abcfbff 699 (i.e. a `refs/heads/<head>` reference).
2fa090b6 700
d47107d8 701For a more complete list of ways to spell object names, see
9d83e382 702"SPECIFYING REVISIONS" section in linkgit:gitrevisions[7].
d47107d8 703
c1bdacf9
DG
704
705File/Directory Structure
706------------------------
c1bdacf9 707
6998e4db 708Please see the linkgit:gitrepository-layout[5] document.
c1bdacf9 709
6998e4db 710Read linkgit:githooks[5] for more details about each hook.
6250ad1e 711
c1bdacf9 712Higher level SCMs may provide and manage additional information in the
2fa090b6 713`$GIT_DIR`.
c1bdacf9 714
a1d4aa74 715
2cf565c5
DG
716Terminology
717-----------
6998e4db 718Please see linkgit:gitglossary[7].
2cf565c5
DG
719
720
721Environment Variables
722---------------------
2de9b711 723Various Git commands use the following environment variables:
2cf565c5 724
2de9b711 725The Git Repository
c1bdacf9 726~~~~~~~~~~~~~~~~~~
2de9b711 727These environment variables apply to 'all' core Git commands. Nb: it
c1bdacf9 728is worth noting that they may be used/overridden by SCMS sitting above
2de9b711 729Git so take care if using Cogito etc.
c1bdacf9
DG
730
731'GIT_INDEX_FILE'::
732 This environment allows the specification of an alternate
5f3aa197
LS
733 index file. If not specified, the default of `$GIT_DIR/index`
734 is used.
c1bdacf9 735
136347d7
TG
736'GIT_INDEX_VERSION'::
737 This environment variable allows the specification of an index
738 version for new repositories. It won't affect existing index
739 files. By default index file version [23] is used.
740
c1bdacf9
DG
741'GIT_OBJECT_DIRECTORY'::
742 If the object storage directory is specified via this
743 environment variable then the sha1 directories are created
744 underneath - otherwise the default `$GIT_DIR/objects`
745 directory is used.
746
747'GIT_ALTERNATE_OBJECT_DIRECTORIES'::
2de9b711 748 Due to the immutable nature of Git objects, old objects can be
c1bdacf9 749 archived into shared, read-only directories. This variable
80ba074f 750 specifies a ":" separated (on Windows ";" separated) list
2de9b711 751 of Git object directories which can be used to search for Git
80ba074f 752 objects. New objects will not be written to these directories.
c1bdacf9
DG
753
754'GIT_DIR'::
2fa090b6
JH
755 If the 'GIT_DIR' environment variable is set then it
756 specifies a path to use instead of the default `.git`
757 for the base of the repository.
75940a00 758 The '--git-dir' command-line option also sets this value.
c1bdacf9 759
892c41b9 760'GIT_WORK_TREE'::
a758a349 761 Set the path to the root of the working tree.
06ab60c0 762 This can also be controlled by the '--work-tree' command-line
892c41b9
ML
763 option and the core.worktree configuration variable.
764
d49483f0 765'GIT_NAMESPACE'::
2de9b711 766 Set the Git namespace; see linkgit:gitnamespaces[7] for details.
d49483f0
JT
767 The '--namespace' command-line option also sets this value.
768
0454dd93 769'GIT_CEILING_DIRECTORIES'::
7ec30aaa 770 This should be a colon-separated list of absolute paths. If
3e07d268 771 set, it is a list of directories that Git should not chdir up
7ec30aaa
MH
772 into while looking for a repository directory (useful for
773 excluding slow-loading network directories). It will not
774 exclude the current working directory or a GIT_DIR set on the
775 command line or in the environment. Normally, Git has to read
776 the entries in this list and resolve any symlink that
777 might be present in order to compare them with the current
778 directory. However, if even this access is slow, you
779 can add an empty entry to the list to tell Git that the
780 subsequent entries are not symlinks and needn't be resolved;
781 e.g.,
782 'GIT_CEILING_DIRECTORIES=/maybe/symlink::/very/slow/non/symlink'.
0454dd93 783
cf87463e 784'GIT_DISCOVERY_ACROSS_FILESYSTEM'::
e6405517 785 When run in a directory that does not have ".git" repository
2de9b711 786 directory, Git tries to find such a directory in the parent
e6405517
JH
787 directories to find the top of the working tree, but by default it
788 does not cross filesystem boundaries. This environment variable
2de9b711 789 can be set to true to tell Git not to stop at filesystem
cf87463e
JH
790 boundaries. Like 'GIT_CEILING_DIRECTORIES', this will not affect
791 an explicit repository directory set via 'GIT_DIR' or on the
792 command line.
8030e442 793
2de9b711 794Git Commits
c1bdacf9
DG
795~~~~~~~~~~~
796'GIT_AUTHOR_NAME'::
797'GIT_AUTHOR_EMAIL'::
798'GIT_AUTHOR_DATE'::
799'GIT_COMMITTER_NAME'::
800'GIT_COMMITTER_EMAIL'::
4e58bf97 801'GIT_COMMITTER_DATE'::
28a94f88 802'EMAIL'::
5162e697 803 see linkgit:git-commit-tree[1]
c1bdacf9 804
2de9b711 805Git Diffs
c1bdacf9 806~~~~~~~~~
d81ed1b5 807'GIT_DIFF_OPTS'::
fde97d8a
SE
808 Only valid setting is "--unified=??" or "-u??" to set the
809 number of context lines shown when a unified diff is created.
810 This takes precedence over any "-U" or "--unified" option
2de9b711 811 value passed on the Git diff command line.
fde97d8a 812
d81ed1b5 813'GIT_EXTERNAL_DIFF'::
fde97d8a
SE
814 When the environment variable 'GIT_EXTERNAL_DIFF' is set, the
815 program named by it is called, instead of the diff invocation
816 described above. For a path that is added, removed, or modified,
817 'GIT_EXTERNAL_DIFF' is called with 7 parameters:
818
819 path old-file old-hex old-mode new-file new-hex new-mode
820+
821where:
822
823 <old|new>-file:: are files GIT_EXTERNAL_DIFF can use to read the
824 contents of <old|new>,
d5fa1f1a 825 <old|new>-hex:: are the 40-hexdigit SHA-1 hashes,
fde97d8a 826 <old|new>-mode:: are the octal representation of the file modes.
fde97d8a
SE
827+
828The file parameters can point at the user's working file
829(e.g. `new-file` in "git-diff-files"), `/dev/null` (e.g. `old-file`
830when a new file is added), or a temporary file (e.g. `old-file` in the
831index). 'GIT_EXTERNAL_DIFF' should not worry about unlinking the
832temporary file --- it is removed when 'GIT_EXTERNAL_DIFF' exits.
833+
834For a path that is unmerged, 'GIT_EXTERNAL_DIFF' is called with 1
835parameter, <path>.
ee7fb0b1
ZK
836+
837For each path 'GIT_EXTERNAL_DIFF' is called, two environment variables,
838'GIT_DIFF_PATH_COUNTER' and 'GIT_DIFF_PATH_TOTAL' are set.
839
840'GIT_DIFF_PATH_COUNTER'::
841 A 1-based counter incremented by one for every path.
842
843'GIT_DIFF_PATH_TOTAL'::
844 The total number of paths.
2cf565c5 845
575ba9d6
ML
846other
847~~~~~
dbddb714
JN
848'GIT_MERGE_VERBOSITY'::
849 A number controlling the amount of output shown by
850 the recursive merge strategy. Overrides merge.verbosity.
5162e697 851 See linkgit:git-merge[1]
dbddb714 852
c27d205a 853'GIT_PAGER'::
a7738c77 854 This environment variable overrides `$PAGER`. If it is set
2de9b711 855 to an empty string or to the value "cat", Git will not launch
ab54cd6c
JN
856 a pager. See also the `core.pager` option in
857 linkgit:git-config[1].
c27d205a 858
36384c97
RSM
859'GIT_EDITOR'::
860 This environment variable overrides `$EDITOR` and `$VISUAL`.
2de9b711 861 It is used by several Git commands when, on interactive mode,
36384c97
RSM
862 an editor is to be launched. See also linkgit:git-var[1]
863 and the `core.editor` option in linkgit:git-config[1].
864
d5538b41 865'GIT_SSH'::
0b444cdb
TR
866 If this environment variable is set then 'git fetch'
867 and 'git push' will use this command instead
2fd02c92 868 of 'ssh' when they need to connect to a remote system.
e39c695d
DB
869 The '$GIT_SSH' command will be given exactly two or
870 four arguments: the 'username@host' (or just 'host')
871 from the URL and the shell command to execute on that
872 remote system, optionally preceded by '-p' (literally) and
873 the 'port' from the URL when it specifies something other
874 than the default SSH port.
d5538b41
SP
875+
876To pass options to the program that you want to list in GIT_SSH
877you will need to wrap the program and options into a shell script,
878then set GIT_SSH to refer to the shell script.
879+
880Usually it is easier to configure any desired options through your
881personal `.ssh/config` file. Please consult your ssh documentation
882for further details.
883
453842c9 884'GIT_ASKPASS'::
2de9b711 885 If this environment variable is set, then Git commands which need to
453842c9 886 acquire passwords or passphrases (e.g. for HTTP or IMAP authentication)
06ab60c0 887 will call this program with a suitable prompt as command-line argument
453842c9
KF
888 and read the password from its STDOUT. See also the 'core.askpass'
889 option in linkgit:git-config[1].
890
e8ef401c
JN
891'GIT_CONFIG_NOSYSTEM'::
892 Whether to skip reading settings from the system-wide
893 `$(prefix)/etc/gitconfig` file. This environment variable can
894 be used along with `$HOME` and `$XDG_CONFIG_HOME` to create a
895 predictable environment for a picky script, or you can set it
896 temporarily to avoid using a buggy `/etc/gitconfig` file while
897 waiting for someone with sufficient permissions to fix it.
898
06f59e9f
TT
899'GIT_FLUSH'::
900 If this environment variable is set to "1", then commands such
0b444cdb 901 as 'git blame' (in incremental mode), 'git rev-list', 'git log',
627a8b8d 902 'git check-attr' and 'git check-ignore' will
f1ed7fea
AS
903 force a flush of the output stream after each record have been
904 flushed. If this
06f59e9f
TT
905 variable is set to "0", the output of these commands will be done
906 using completely buffered I/O. If this environment variable is
2de9b711 907 not set, Git will choose buffered or record-oriented flushing
06f59e9f
TT
908 based on whether stdout appears to be redirected to a file or not.
909
575ba9d6 910'GIT_TRACE'::
eb9250df
KB
911 Enables general trace messages, e.g. alias expansion, built-in
912 command execution and external command execution.
913+
914If this variable is set to "1", "2" or "true" (comparison
915is case insensitive), trace messages will be printed to
916stderr.
917+
918If the variable is set to an integer value greater than 2
919and lower than 10 (strictly) then Git will interpret this
920value as an open file descriptor and will try to write the
921trace messages into this file descriptor.
922+
923Alternatively, if the variable is set to an absolute path
924(starting with a '/' character), Git will interpret this
925as a file path and will try to write the trace messages
926into it.
927+
928Unsetting the variable, or setting it to empty, "0" or
929"false" (case insensitive) disables trace messages.
575ba9d6 930
b12ca963 931'GIT_TRACE_PACK_ACCESS'::
67dc598e 932 Enables trace messages for all accesses to any packs. For each
b12ca963
NTND
933 access, the pack file name and an offset in the pack is
934 recorded. This may be helpful for troubleshooting some
935 pack-related performance problems.
67dc598e 936 See 'GIT_TRACE' for available trace output options.
b12ca963 937
1dd278ce 938'GIT_TRACE_PACKET'::
eb9250df
KB
939 Enables trace messages for all packets coming in or out of a
940 given program. This can help with debugging object negotiation
941 or other protocol issues. Tracing is turned off at a packet
942 starting with "PACK".
943 See 'GIT_TRACE' for available trace output options.
944
578da039
KB
945'GIT_TRACE_PERFORMANCE'::
946 Enables performance related trace messages, e.g. total execution
947 time of each Git command.
948 See 'GIT_TRACE' for available trace output options.
949
eb9250df
KB
950'GIT_TRACE_SETUP'::
951 Enables trace messages printing the .git, working tree and current
952 working directory after Git has completed its setup phase.
953 See 'GIT_TRACE' for available trace output options.
954
955'GIT_TRACE_SHALLOW'::
956 Enables trace messages that can help debugging fetching /
957 cloning of shallow repositories.
958 See 'GIT_TRACE' for available trace output options.
1dd278ce 959
823ab40f 960GIT_LITERAL_PATHSPECS::
2de9b711 961 Setting this variable to `1` will cause Git to treat all
823ab40f
JK
962 pathspecs literally, rather than as glob patterns. For example,
963 running `GIT_LITERAL_PATHSPECS=1 git log -- '*.c'` will search
964 for commits that touch the path `*.c`, not any paths that the
965 glob `*.c` matches. You might want this if you are feeding
2de9b711 966 literal paths to Git (e.g., paths previously given to you by
823ab40f
JK
967 `git ls-tree`, `--raw` diff output, etc).
968
bd30c2e4
NTND
969GIT_GLOB_PATHSPECS::
970 Setting this variable to `1` will cause Git to treat all
971 pathspecs as glob patterns (aka "glob" magic).
972
973GIT_NOGLOB_PATHSPECS::
974 Setting this variable to `1` will cause Git to treat all
975 pathspecs as literal (aka "literal" magic).
976
93d93537
NTND
977GIT_ICASE_PATHSPECS::
978 Setting this variable to `1` will cause Git to treat all
979 pathspecs as case-insensitive.
980
c3e2d189
JH
981'GIT_REFLOG_ACTION'::
982 When a ref is updated, reflog entries are created to keep
983 track of the reason why the ref was updated (which is
984 typically the name of the high-level command that updated
985 the ref), in addition to the old and new values of the ref.
986 A scripted Porcelain command can use set_reflog_action
987 helper function in `git-sh-setup` to set its name to this
988 variable when it is invoked as the top level command by the
989 end user, to be recorded in the body of the reflog.
990
823ab40f 991
8db9307c
JH
992Discussion[[Discussion]]
993------------------------
40dac517
BF
994
995More detail on the following is available from the
2de9b711 996link:user-manual.html#git-concepts[Git concepts chapter of the
6998e4db 997user-manual] and linkgit:gitcore-tutorial[7].
40dac517 998
2de9b711 999A Git project normally consists of a working directory with a ".git"
40dac517
BF
1000subdirectory at the top level. The .git directory contains, among other
1001things, a compressed object database representing the complete history
1002of the project, an "index" file which links that history to the current
1003contents of the working tree, and named pointers into that history such
1004as tags and branch heads.
1005
1006The object database contains objects of three main types: blobs, which
1007hold file data; trees, which point to blobs and other trees to build up
02ff6250 1008directory hierarchies; and commits, which each reference a single tree
40dac517
BF
1009and some number of parent commits.
1010
1011The commit, equivalent to what other systems call a "changeset" or
1012"version", represents a step in the project's history, and each parent
1013represents an immediately preceding step. Commits with more than one
1014parent represent merges of independent lines of development.
1015
d5fa1f1a 1016All objects are named by the SHA-1 hash of their contents, normally
40dac517
BF
1017written as a string of 40 hex digits. Such names are globally unique.
1018The entire history leading up to a commit can be vouched for by signing
1019just that commit. A fourth object type, the tag, is provided for this
1020purpose.
1021
1022When first created, objects are stored in individual files, but for
1023efficiency may later be compressed together into "pack files".
1024
1025Named pointers called refs mark interesting points in history. A ref
d5fa1f1a
TA
1026may contain the SHA-1 name of an object or the name of another ref. Refs
1027with names beginning `ref/head/` contain the SHA-1 name of the most
1028recent commit (or "head") of a branch under development. SHA-1 names of
40dac517
BF
1029tags of interest are stored under `ref/tags/`. A special ref named
1030`HEAD` contains the name of the currently checked-out branch.
1031
1032The index file is initialized with a list of all paths and, for each
1033path, a blob object and a set of attributes. The blob object represents
1034the contents of the file as of the head of the current branch. The
1035attributes (last modified time, size, etc.) are taken from the
1036corresponding file in the working tree. Subsequent changes to the
1037working tree can be found by comparing these attributes. The index may
1038be updated with new content, and new commits may be created from the
1039content stored in the index.
1040
1041The index is also capable of storing multiple entries (called "stages")
1042for a given pathname. These stages are used to hold the various
1043unmerged version of a file when a merge is in progress.
6c84e2e0 1044
7687ae98
JH
1045FURTHER DOCUMENTATION
1046---------------------
1047
1048See the references in the "description" section to get started
2de9b711 1049using Git. The following is probably more detail than necessary
7687ae98
JH
1050for a first-time user.
1051
2de9b711 1052The link:user-manual.html#git-concepts[Git concepts chapter of the
7687ae98 1053user-manual] and linkgit:gitcore-tutorial[7] both provide
2de9b711 1054introductions to the underlying Git architecture.
7687ae98
JH
1055
1056See linkgit:gitworkflows[7] for an overview of recommended workflows.
1057
1058See also the link:howto-index.html[howto] documents for some useful
1059examples.
1060
1061The internals are documented in the
48a8c26c 1062link:technical/api-index.html[Git API documentation].
7687ae98
JH
1063
1064Users migrating from CVS may also want to
1065read linkgit:gitcvs-migration[7].
1066
1067
cb22bc44
AE
1068Authors
1069-------
48bb914e 1070Git was started by Linus Torvalds, and is currently maintained by Junio
2de9b711 1071C Hamano. Numerous contributions have come from the Git mailing list
405869d0 1072<git@vger.kernel.org>. http://www.openhub.net/p/git/contributors/summary
6ecc01f2
JH
1073gives you a more complete list of contributors.
1074
1075If you have a clone of git.git itself, the
d8f708f8
JK
1076output of linkgit:git-shortlog[1] and linkgit:git-blame[1] can show you
1077the authors for specific parts of the project.
2cf565c5 1078
c97ca277
JH
1079Reporting Bugs
1080--------------
1081
1082Report bugs to the Git mailing list <git@vger.kernel.org> where the
1083development and maintenance is primarily done. You do not have to be
1084subscribed to the list to send a message there.
1085
497c8331
CC
1086SEE ALSO
1087--------
1088linkgit:gittutorial[7], linkgit:gittutorial-2[7],
5cbef01a 1089link:everyday.html[Everyday Git], linkgit:gitcvs-migration[7],
497c8331 1090linkgit:gitglossary[7], linkgit:gitcore-tutorial[7],
801a011d
TR
1091linkgit:gitcli[7], link:user-manual.html[The Git User's Manual],
1092linkgit:gitworkflows[7]
497c8331 1093
2cf565c5
DG
1094GIT
1095---
9e1f0a85 1096Part of the linkgit:git[1] suite