source: general/prog/git.xml@ 419681d6

systemd-13485
Last change on this file since 419681d6 was 419681d6, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Sync to trunk r17130
Fix FAAC compilation under GCC-6

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@17323 af4574ff-66df-0310-9fd7-8a98e5e911e0

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