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