source: general/prog/git.xml@ f9f13ae

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 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 f9f13ae was f9f13ae, checked in by Fernando de Oliveira <fernando@…>, 9 years ago

Update to dovecot-2.2.18.

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

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