source: general/prog/git.xml@ 6e08e9c0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.7 7.8 7.9 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 krejzi/svn 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 6e08e9c0 was 6e08e9c0, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Parted-3.2 fails to build with --disable-device-mapper. Reported and fixed by Ken M.
Update to SQLite-3.8.6.
Update to git-2.1.0. Modified docs and man instructions.
MIT Kerberos V5-1.12.2: update gpg2, fix configure, install instructions and other parts.
Samba-4.1.11: promote libxslt-1.1.28 to Recommended.

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

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