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

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 9faa23b6 was 9faa23b6, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Added Asciidoc

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

  • Property mode set to 100644
File size: 14.7 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
94 <xref linkend="asciidoc"/> and <xref linkend="xmlto"/>
95 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 <xref linkend="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 <xref linkend="asciidoc"/> 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 <xref linkend="asciidoc"/> 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 <xref linkend="asciidoc"/> and
170 <xref linkend="xmlto"/> you can create the man pages:
171 </para>
172
173<screen><userinput>make man</userinput></screen>
174
175 <para>
176 The test suite can be run in parallel mode. To run the test suite, issue:
177 <command>make test</command>. If run as a normal user, 0 tests should be
178 reported as failed in the final summary.
179 </para>
180
181 <para>
182 Now, as the <systemitem class="username">root</systemitem>
183 user:
184 </para>
185
186<screen role="root"><userinput>make install</userinput></screen>
187
188<!-- ==== Method 1 for docs ====== -->
189 <bridgehead renderas="sect3">If you created the man pages and/or html docs</bridgehead>
190
191 <para>
192 Install the man pages as
193 <systemitem class="username">root</systemitem> user:
194 </para>
195
196<screen role="root"><userinput>make install-man</userinput></screen>
197
198 <para>
199 Install the html docs as
200 <systemitem class="username">root</systemitem> user:
201 </para>
202
203<screen role="root"><userinput>make htmldir=/usr/share/doc/git-&git-version; install-html</userinput></screen>
204
205<!-- ==== Method 2 for docs ====== -->
206 <bridgehead renderas="sect3">If you downloaded the man pages and/or html docs</bridgehead>
207
208 <para>
209 If you downloaded the man pages untar them as the
210 <systemitem class="username">root</systemitem> user:
211 </para>
212
213<screen role="root"><userinput>tar -xf ../git-manpages-&git-version;.tar.xz \
214 -C /usr/share/man --no-same-owner --no-overwrite-dir</userinput></screen>
215
216 <para>
217 If you downloaded the html docs untar them as the
218 <systemitem class="username">root</systemitem> user:
219 </para>
220
221<screen role="root"><userinput>mkdir -vp /usr/share/doc/git-&git-version; &amp;&amp;
222tar -xf ../git-htmldocs-&git-version;.tar.xz \
223 -C /usr/share/doc/git-&git-version; --no-same-owner --no-overwrite-dir &amp;&amp;
224
225find /usr/share/doc/git-&git-version; -type d -exec chmod 755 {} \; &amp;&amp;
226find /usr/share/doc/git-&git-version; -type f -exec chmod 644 {} \;</userinput></screen>
227
228<!-- ==== Reorganize docs ====== -->
229 <bridgehead renderas="sect3">Reorganize text and html in the html-docs (both methods)</bridgehead>
230
231 <para>
232 For both methods, the html-docs include a lot of plain text files.
233 Reorganize the files as the
234 <systemitem class="username">root</systemitem> user:
235 </para>
236
237<screen role="root"><userinput>mkdir -vp /usr/share/doc/git-&git-version;/man-pages/{html,text} &amp;&amp;
238mv /usr/share/doc/git-&git-version;/{git*.txt,man-pages/text} &amp;&amp;
239mv /usr/share/doc/git-&git-version;/{git*.,index.,man-pages/}html &amp;&amp;
240
241mkdir -vp /usr/share/doc/git-&git-version;/technical/{html,text} &amp;&amp;
242mv /usr/share/doc/git-&git-version;/technical/{*.txt,text} &amp;&amp;
243mv /usr/share/doc/git-&git-version;/technical/{*.,}html &amp;&amp;
244
245mkdir -vp /usr/share/doc/git-&git-version;/howto/{html,text} &amp;&amp;
246mv /usr/share/doc/git-&git-version;/howto/{*.txt,text} &amp;&amp;
247mv /usr/share/doc/git-&git-version;/howto/{*.,}html</userinput></screen>
248
249 </sect2>
250
251 <sect2 role="commands">
252 <title>Command Explanations</title>
253
254 <para>
255 <parameter>--with-gitconfig=/etc/gitconfig</parameter>: This sets
256 <filename>/etc/gitconfig</filename> as the file that stores
257 the default, system wide, <application>Git</application>
258 settings.
259 </para>
260
261 <para>
262 <option>--without-python</option>: Use this switch if
263 <application>Python</application> is not installed.
264 </para>
265
266 <para>
267 <option>--with-libpcre</option>: Use this switch if
268 <application>PCRE</application> is installed.
269 </para>
270
271 <para>
272 <command>tar -xf ../git-manpages-&git-version;.tar.gz -C
273 /usr/share/man --no-same-owner</command>: This untars
274 <filename>git-manpages-&git-version;.tar.gz</filename>. The
275 <option>-C</option> option makes tar change directory to
276 <filename class="directory">/usr/share/man</filename> before
277 it starts to decompress the docs. The <option>--no-same-owner</option>
278 option stops tar from preserving the user and group details of the
279 files. This is useful as that user or group may not exist on your
280 system; this could (potentially) be a security risk.
281 </para>
282
283 <para>
284 <command>mv /usr/share/doc/git-&git-version; ...</command>: These
285 commands move some of the files into subfolders to make it easier to sort
286 through the docs and find what you're looking for.
287 </para>
288
289 <para>
290 <command>find ... chmod ...</command>: These commands correct the
291 permissions in the shipped documentation tar file.
292 </para>
293
294 </sect2>
295
296 <sect2 role="configuration">
297 <title>Configuring Git</title>
298
299 <sect3 id="git-config">
300 <title>Config Files</title>
301 <para>
302 <filename>~/.gitconfig</filename> and
303 <filename>/etc/gitconfig</filename>
304 </para>
305
306 <indexterm zone="git git-config">
307 <primary sortas="e-AA.gitconfig">~/.gitconfig</primary>
308 </indexterm>
309
310 <indexterm zone="git git-config">
311 <primary sortas="e-etc-gitconfig">/etc/gitconfig</primary>
312 </indexterm>
313
314 </sect3>
315
316 </sect2>
317
318 <sect2 role="content">
319 <title>Contents</title>
320
321 <segmentedlist>
322 <segtitle>Installed Programs</segtitle>
323 <segtitle>Installed Libraries</segtitle>
324 <segtitle>Installed Directories</segtitle>
325
326 <seglistitem>
327 <seg>
328 git, git-receive-pack and git-upload-archive (hardlinked to each other),
329 git-cvsserver, git-shell, git-upload-pack, and gitk
330 </seg>
331 <seg>
332 None
333 </seg>
334 <seg>
335 /usr/lib/perl5/site_perl/&lt;5.x.y&gt;{,&lt;arch&gt;-linux/auto}/Git,
336 /usr/libexec/git-core and
337 /usr/share/{doc/git-&git-version;,git-core,git-gui,gitk,gitweb}
338 </seg>
339 </seglistitem>
340 </segmentedlist>
341
342 <variablelist>
343 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
344 <?dbfo list-presentation="list"?>
345 <?dbhtml list-presentation="table"?>
346
347 <varlistentry id="git-prog">
348 <term><command>git</command></term>
349 <listitem>
350 <para>
351 is the stupid content tracker.
352 </para>
353 <indexterm zone="git git-prog">
354 <primary sortas="b-git">git</primary>
355 </indexterm>
356 </listitem>
357 </varlistentry>
358
359 <varlistentry id="git-cvsserver">
360 <term><command>git-cvsserver</command></term>
361 <listitem>
362 <para>
363 is a CVS server emulator for <application>Git</application>.
364 </para>
365 <indexterm zone="git git-cvsserver">
366 <primary sortas="b-git-cvsserver">git-cvsserver</primary>
367 </indexterm>
368 </listitem>
369 </varlistentry>
370
371 <varlistentry id="gitk">
372 <term><command>gitk</command></term>
373 <listitem>
374 <para>
375 is a graphical <application>Git</application> repository browser
376 (needs <xref linkend="tk"/>).
377 </para>
378 <indexterm zone="git gitk">
379 <primary sortas="b-gitk">gitk</primary>
380 </indexterm>
381 </listitem>
382 </varlistentry>
383
384 <varlistentry id="git-receive-pack">
385 <term><command>git-receive-pack</command></term>
386 <listitem>
387 <para>
388 is invoked by <command>git send-pack</command> and updates the
389 repository with the information fed from the remote end.
390 </para>
391 <indexterm zone="git git-receive-pack">
392 <primary sortas="b-git-receive-pack">git-receive-pack</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
396
397 <varlistentry id="git-shell">
398 <term><command>git-shell</command></term>
399 <listitem>
400 <para>
401 is a login shell for SSH accounts to provide restricted Git
402 access.
403 </para>
404 <indexterm zone="git git-shell">
405 <primary sortas="b-git-shell">git-shell</primary>
406 </indexterm>
407 </listitem>
408 </varlistentry>
409
410 <varlistentry id="git-upload-archive">
411 <term><command>git-upload-archive</command></term>
412 <listitem>
413 <para>
414 is invoked by <command>git archive --remote</command> and sends
415 a generated archive to the other end over the git protocol.
416 </para>
417 <indexterm zone="git git-upload-archive">
418 <primary sortas="b-git-upload-archive">git-upload-archive</primary>
419 </indexterm>
420 </listitem>
421 </varlistentry>
422
423 <varlistentry id="git-upload-pack">
424 <term><command>git-upload-pack</command></term>
425 <listitem>
426 <para>
427 is invoked by <command>git fetch-pack</command>, it discovers
428 what objects the other side is missing, and sends them after
429 packing.
430 </para>
431 <indexterm zone="git git-upload-pack">
432 <primary sortas="b-git-upload-pack">git-upload-pack</primary>
433 </indexterm>
434 </listitem>
435 </varlistentry>
436
437 </variablelist>
438
439 </sect2>
440
441</sect1>
Note: See TracBrowser for help on using the repository browser.