source: general/prog/git.xml@ 9cb59b68

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9cb59b68 was 9cb59b68, checked in by Igor Živković <igor@…>, 8 years ago

Update to git-2.8.0.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17181 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 14.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY git-root "https://www.kernel.org/pub/software/scm/git" >
8
9 <!ENTITY git-download-http "&git-root;/git-&git-version;.tar.xz">
10 <!ENTITY git-download-ftp "ftp://ftp.kernel.org/pub/software/scm/git/git-&git-version;.tar.xz">
11 <!ENTITY git-md5sum "01477f0b97ccab20b986f2808f4d7a97">
12 <!ENTITY git-size "3.8 MB">
13 <!ENTITY git-buildsize "3683 MB (including the pre-built documentation)">
14 <!ENTITY git-time "0.8 SBU (add 2.9 SBU for building documentation, add 4.1 SBU if running the tests - or 2.2 SBU with -j4)">
15]>
16
17<sect1 id="git" xreflabel="git-&git-version;">
18 <?dbhtml filename="git.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>Git-&git-version;</title>
26
27 <indexterm zone="git">
28 <primary sortas="a-Git">Git</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to Git</title>
33
34 <para>
35
36 <application>Git</application> is a free and open source, distributed
37 version control system designed to handle everything from small to very
38 large projects with speed and efficiency. Every
39 <application>Git</application> clone is a full-fledged repository with
40 complete history and full revision tracking capabilities, not dependent
41 on network access or a central server. Branching and merging are fast and
42 easy to do. <application>Git</application> is used for version control of
43 files, much like tools such as <xref linkend="mercurial"/>,
44 <application>Bazaar</application>, <xref linkend="subversion"/>,
45 <ulink url="http://www.nongnu.org/cvs/">CVS</ulink>,
46 <application>Perforce</application>, and
47 <application>Team Foundation Server</application>.
48
49 </para>
50
51 &lfs79_checked;
52
53 <bridgehead renderas="sect3">Package Information</bridgehead>
54 <itemizedlist spacing="compact">
55 <listitem>
56 <para>
57 Download (HTTP): <ulink url="&git-download-http;"/>
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download (FTP): <ulink url="&git-download-ftp;"/>
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Download MD5 sum: &git-md5sum;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Download size: &git-size;
73 </para>
74 </listitem>
75 <listitem>
76 <para>
77 Estimated disk space required: &git-buildsize;
78 </para>
79 </listitem>
80 <listitem>
81 <para>
82 Estimated build time: &git-time;
83 </para>
84 </listitem>
85 </itemizedlist>
86
87 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
88 <itemizedlist spacing="compact">
89 <listitem>
90 <para>
91 <ulink url="&git-root;/git-manpages-&git-version;.tar.xz">
92 &git-root;/git-manpages-&git-version;.tar.xz</ulink>
93 (if you prefer the original, not needed if you've installed asciidoc
94 and xmlto and prefer to build them).
95 </para>
96 </listitem>
97 <listitem>
98 <para>
99 <ulink url="&git-root;/git-htmldocs-&git-version;.tar.xz">
100 &git-root;/git-htmldocs-&git-version;.tar.xz</ulink>
101 and other docs (if you prefer the original, not needed if you've
102 installed asciidoc and prefer to build them).
103 </para>
104 </listitem>
105 </itemizedlist>
106
107 <bridgehead renderas="sect3">Git Dependencies</bridgehead>
108
109 <bridgehead renderas="sect4">Recommended</bridgehead>
110 <para role="recommended">
111 <xref linkend="curl"/> (needed to use <application>Git</application> over http,
112 https, ftp or ftps),
113 <xref linkend="openssl"/>, and
114 <xref linkend="python2"/>
115 </para>
116
117 <bridgehead renderas="sect4">Optional</bridgehead>
118 <para role="optional">
119 <xref linkend="pcre"/>,
120 <xref linkend="subversion"/> with Perl bindings (for <command>git svn</command>),
121 <xref linkend="tk"/> (gitk, a simple <application>Git</application>
122 repository viewer, uses <application>Tk</application> at runtime), and
123 <xref linkend="valgrind"/>
124 </para>
125
126 <bridgehead renderas="sect4">Optional (to create the man pages, html docs
127 and other docs)</bridgehead>
128 <para>
129 <xref linkend="xmlto"/> and
130 <ulink url="http://www.methods.co.nz/asciidoc/">AsciiDoc</ulink> or
131 <ulink url="http://asciidoctor.org/">AsciiDoctor</ulink>, and also
132 <ulink url="http://dblatex.sourceforge.net/">dblatex</ulink>
133 (for the PDF version of the user manual), and
134 <ulink url="http://docbook2x.sourceforge.net/">docbook2x</ulink> to
135 create info pages
136 </para>
137
138 <para condition="html" role="usernotes">User Notes:
139 <ulink url="&blfs-wiki;/git"/>
140 </para>
141 </sect2>
142
143 <sect2 role="installation">
144 <title>Installation of Git</title>
145
146 <para>
147 Install <application>Git</application> by running the following
148 commands:
149 </para>
150
151<screen><userinput>./configure --prefix=/usr --with-gitconfig=/etc/gitconfig &amp;&amp;
152make</userinput></screen>
153
154 <para>
155 You can build the man pages and/or html docs, or
156 use downloaded ones. If you choose to build them, use next two following
157 instructions.
158 </para>
159
160 <para>
161 If you have installed <ulink
162 url="http://www.methods.co.nz/asciidoc/">AsciiDoc</ulink> you can
163 create the html version of the man pages and other docs:
164 </para>
165
166<screen><userinput>make html</userinput></screen>
167
168 <para>
169 If you have installed <ulink
170 url="http://www.methods.co.nz/asciidoc/">AsciiDoc</ulink> and
171 <xref linkend="xmlto"/> you can create the man pages:
172 </para>
173
174<screen><userinput>make man</userinput></screen>
175
176 <para>
177 The test suite can be run in parallel mode. To run the test suite, issue:
178 <command>make test</command>. If run as a normal user, 0 tests should be
179 reported as failed in the final summary.
180 </para>
181
182 <para>
183 Now, as the <systemitem class="username">root</systemitem>
184 user:
185 </para>
186
187<screen role="root"><userinput>make install</userinput></screen>
188
189<!-- ==== Method 1 for docs ====== -->
190 <bridgehead renderas="sect3">If you created the man pages and/or html docs</bridgehead>
191
192 <para>
193 Install the man pages as
194 <systemitem class="username">root</systemitem> user:
195 </para>
196
197<screen role="root"><userinput>make install-man</userinput></screen>
198
199 <para>
200 Install the html docs as
201 <systemitem class="username">root</systemitem> user:
202 </para>
203
204<screen role="root"><userinput>make htmldir=/usr/share/doc/git-&git-version; install-html</userinput></screen>
205
206<!-- ==== Method 2 for docs ====== -->
207 <bridgehead renderas="sect3">If you downloaded the man pages and/or html docs</bridgehead>
208
209 <para>
210 If you downloaded the man pages untar them as the
211 <systemitem class="username">root</systemitem> user:
212 </para>
213
214<screen role="root"><userinput>tar -xf ../git-manpages-&git-version;.tar.xz \
215 -C /usr/share/man --no-same-owner --no-overwrite-dir</userinput></screen>
216
217 <para>
218 If you downloaded the html docs untar them as the
219 <systemitem class="username">root</systemitem> user:
220 </para>
221
222<screen role="root"><userinput>mkdir -vp /usr/share/doc/git-&git-version; &amp;&amp;
223tar -xf ../git-htmldocs-&git-version;.tar.xz \
224 -C /usr/share/doc/git-&git-version; --no-same-owner --no-overwrite-dir &amp;&amp;
225
226find /usr/share/doc/git-&git-version; -type d -exec chmod 755 {} \; &amp;&amp;
227find /usr/share/doc/git-&git-version; -type f -exec chmod 644 {} \;</userinput></screen>
228
229<!-- ==== Reorganize docs ====== -->
230 <bridgehead renderas="sect3">Reorganize text and html in the html-docs (both methods)</bridgehead>
231
232 <para>
233 For both methods, the html-docs include a lot of plain text files.
234 Reorganize the files as the
235 <systemitem class="username">root</systemitem> user:
236 </para>
237
238<screen role="root"><userinput>mkdir -vp /usr/share/doc/git-&git-version;/man-pages/{html,text} &amp;&amp;
239mv /usr/share/doc/git-&git-version;/{git*.txt,man-pages/text} &amp;&amp;
240mv /usr/share/doc/git-&git-version;/{git*.,index.,man-pages/}html &amp;&amp;
241
242mkdir -vp /usr/share/doc/git-&git-version;/technical/{html,text} &amp;&amp;
243mv /usr/share/doc/git-&git-version;/technical/{*.txt,text} &amp;&amp;
244mv /usr/share/doc/git-&git-version;/technical/{*.,}html &amp;&amp;
245
246mkdir -vp /usr/share/doc/git-&git-version;/howto/{html,text} &amp;&amp;
247mv /usr/share/doc/git-&git-version;/howto/{*.txt,text} &amp;&amp;
248mv /usr/share/doc/git-&git-version;/howto/{*.,}html</userinput></screen>
249
250 </sect2>
251
252 <sect2 role="commands">
253 <title>Command Explanations</title>
254
255 <para>
256 <parameter>--with-gitconfig=/etc/gitconfig</parameter>: This sets
257 <filename>/etc/gitconfig</filename> as the file that stores
258 the default, system wide, <application>Git</application>
259 settings.
260 </para>
261
262 <para>
263 <option>--without-python</option>: Use this switch if
264 <application>Python</application> is not installed.
265 </para>
266
267 <para>
268 <option>--with-libpcre</option>: Use this switch if
269 <application>PCRE</application> is installed.
270 </para>
271
272 <para>
273 <command>tar -xf ../git-manpages-&git-version;.tar.gz -C
274 /usr/share/man --no-same-owner</command>: This untars
275 <filename>git-manpages-&git-version;.tar.gz</filename>. The
276 <option>-C</option> option makes tar change directory to
277 <filename class="directory">/usr/share/man</filename> before
278 it starts to decompress the docs. The <option>--no-same-owner</option>
279 option stops tar from preserving the user and group details of the
280 files. This is useful as that user or group may not exist on your
281 system; this could (potentially) be a security risk.
282 </para>
283
284 <para>
285 <command>mv /usr/share/doc/git-&git-version; ...</command>: These
286 commands move some of the files into subfolders to make it easier to sort
287 through the docs and find what you're looking for.
288 </para>
289
290 <para>
291 <command>find ... chmod ...</command>: These commands correct the
292 permissions in the shipped documentation tar file.
293 </para>
294
295 </sect2>
296
297 <sect2 role="configuration">
298 <title>Configuring Git</title>
299
300 <sect3 id="git-config">
301 <title>Config Files</title>
302 <para>
303 <filename>~/.gitconfig</filename> and
304 <filename>/etc/gitconfig</filename>
305 </para>
306
307 <indexterm zone="git git-config">
308 <primary sortas="e-AA.gitconfig">~/.gitconfig</primary>
309 </indexterm>
310
311 <indexterm zone="git git-config">
312 <primary sortas="e-etc-gitconfig">/etc/gitconfig</primary>
313 </indexterm>
314
315 </sect3>
316
317 </sect2>
318
319 <sect2 role="content">
320 <title>Contents</title>
321
322 <segmentedlist>
323 <segtitle>Installed Programs</segtitle>
324 <segtitle>Installed Libraries</segtitle>
325 <segtitle>Installed Directories</segtitle>
326
327 <seglistitem>
328 <seg>
329 git, git-receive-pack and git-upload-archive (hardlinked to each other),
330 git-cvsserver, git-shell, git-upload-pack, and gitk
331 </seg>
332 <seg>
333 None
334 </seg>
335 <seg>
336 /usr/lib/perl5/site_perl/&lt;5.x.y&gt;{,&lt;arch&gt;-linux/auto}/Git,
337 /usr/libexec/git-core and
338 /usr/share/{doc/git-&git-version;,git-core,git-gui,gitk,gitweb}
339 </seg>
340 </seglistitem>
341 </segmentedlist>
342
343 <variablelist>
344 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
345 <?dbfo list-presentation="list"?>
346 <?dbhtml list-presentation="table"?>
347
348 <varlistentry id="git-prog">
349 <term><command>git</command></term>
350 <listitem>
351 <para>
352 is the stupid content tracker.
353 </para>
354 <indexterm zone="git git-prog">
355 <primary sortas="b-git">git</primary>
356 </indexterm>
357 </listitem>
358 </varlistentry>
359
360 <varlistentry id="git-cvsserver">
361 <term><command>git-cvsserver</command></term>
362 <listitem>
363 <para>
364 is a CVS server emulator for <application>Git</application>.
365 </para>
366 <indexterm zone="git git-cvsserver">
367 <primary sortas="b-git-cvsserver">git-cvsserver</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
372 <varlistentry id="gitk">
373 <term><command>gitk</command></term>
374 <listitem>
375 <para>
376 is a graphical <application>Git</application> repository browser
377 (needs <xref linkend="tk"/>).
378 </para>
379 <indexterm zone="git gitk">
380 <primary sortas="b-gitk">gitk</primary>
381 </indexterm>
382 </listitem>
383 </varlistentry>
384
385 <varlistentry id="git-receive-pack">
386 <term><command>git-receive-pack</command></term>
387 <listitem>
388 <para>
389 is invoked by <command>git send-pack</command> and updates the
390 repository with the information fed from the remote end.
391 </para>
392 <indexterm zone="git git-receive-pack">
393 <primary sortas="b-git-receive-pack">git-receive-pack</primary>
394 </indexterm>
395 </listitem>
396 </varlistentry>
397
398 <varlistentry id="git-shell">
399 <term><command>git-shell</command></term>
400 <listitem>
401 <para>
402 is a login shell for SSH accounts to provide restricted Git
403 access.
404 </para>
405 <indexterm zone="git git-shell">
406 <primary sortas="b-git-shell">git-shell</primary>
407 </indexterm>
408 </listitem>
409 </varlistentry>
410
411 <varlistentry id="git-upload-archive">
412 <term><command>git-upload-archive</command></term>
413 <listitem>
414 <para>
415 is invoked by <command>git archive --remote</command> and sends
416 a generated archive to the other end over the git protocol.
417 </para>
418 <indexterm zone="git git-upload-archive">
419 <primary sortas="b-git-upload-archive">git-upload-archive</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
423
424 <varlistentry id="git-upload-pack">
425 <term><command>git-upload-pack</command></term>
426 <listitem>
427 <para>
428 is invoked by <command>git fetch-pack</command>, it discovers
429 what objects the other side is missing, and sends them after
430 packing.
431 </para>
432 <indexterm zone="git git-upload-pack">
433 <primary sortas="b-git-upload-pack">git-upload-pack</primary>
434 </indexterm>
435 </listitem>
436 </varlistentry>
437
438 </variablelist>
439
440 </sect2>
441
442</sect1>
Note: See TracBrowser for help on using the repository browser.