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