source: general/prog/git.xml@ f5524b6

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 f5524b6 was f5524b6, checked in by Douglas R. Reno <renodr@…>, 3 years ago

git: minor typo fix in dependencies

  • Property mode set to 100644
File size: 16.4 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
[8dfc5c3]7 <!ENTITY git-root "&kernel-dl;/software/scm/git" >
[a79f8e7]8
[dba6b4e0]9 <!ENTITY git-download-http "&git-root;/git-&git-version;.tar.xz">
[faa68e4a]10 <!ENTITY git-download-ftp " ">
[abf8d12]11 <!ENTITY git-md5sum "de30d259ad0f8f2ac22b0584e567daae">
[6f0a3e2a]12
13 <!ENTITY git-size "6.2 MB">
[7e09b3f]14 <!-- using gcc-8.1 the build and install are much bigger than with gcc-7.3 -->
[5d20400]15 <!-- but people keep forgetting that an install not only needs the nett build
16 space, it also needs the install space (or DESTDIR) -->
[abf8d12]17 <!ENTITY git-buildsize "213 MB (with downloaded documentation, add 16 MB to build documentation)">
[6030130]18 <!-- With 2.23.0, there was a large increase in time for tests. Possibly disk related? -->
[25ff6d5]19 <!-- Confirmed that it is disk related.-->
[abf8d12]20 <!ENTITY git-time "0.3 SBU (with parallelism=4; add 0.4 SBU for building documentation and 1.7 SBU for tests, both with parallelism=4)">
[800f6b1]21]>
22
23<sect1 id="git" xreflabel="git-&git-version;">
24 <?dbhtml filename="git.html"?>
25
26 <sect1info>
27 <date>$Date$</date>
28 </sect1info>
29
30 <title>Git-&git-version;</title>
31
32 <indexterm zone="git">
[32696a4]33 <primary sortas="a-Git">Git</primary>
[800f6b1]34 </indexterm>
35
36 <sect2 role="package">
37 <title>Introduction to Git</title>
38
[32696a4]39 <para>
40 <application>Git</application> is a free and open source, distributed
41 version control system designed to handle everything from small to very
42 large projects with speed and efficiency. Every
43 <application>Git</application> clone is a full-fledged repository with
[bdf19997]44 complete history and full revision tracking capabilities, not dependent
45 on network access or a central server. Branching and merging are fast and
46 easy to do. <application>Git</application> is used for version control of
[9276b6ee]47 files, much like tools such as <xref linkend="mercurial"/>,
[32696a4]48 <application>Bazaar</application>, <xref linkend="subversion"/>,
[d1c51434]49 <ulink url="http://www.nongnu.org/cvs/">CVS</ulink>,
50 <application>Perforce</application>, and
[32696a4]51 <application>Team Foundation Server</application>.
52 </para>
[800f6b1]53
[179d426d]54 &lfs110_checked;
[800f6b1]55
56 <bridgehead renderas="sect3">Package Information</bridgehead>
57 <itemizedlist spacing="compact">
58 <listitem>
[32696a4]59 <para>
60 Download (HTTP): <ulink url="&git-download-http;"/>
61 </para>
[800f6b1]62 </listitem>
63 <listitem>
[32696a4]64 <para>
65 Download (FTP): <ulink url="&git-download-ftp;"/>
66 </para>
[800f6b1]67 </listitem>
68 <listitem>
[32696a4]69 <para>
70 Download MD5 sum: &git-md5sum;
71 </para>
[800f6b1]72 </listitem>
73 <listitem>
[32696a4]74 <para>
75 Download size: &git-size;
76 </para>
[800f6b1]77 </listitem>
78 <listitem>
[32696a4]79 <para>
80 Estimated disk space required: &git-buildsize;
81 </para>
[800f6b1]82 </listitem>
83 <listitem>
[32696a4]84 <para>
85 Estimated build time: &git-time;
86 </para>
[800f6b1]87 </listitem>
88 </itemizedlist>
89
[435934c]90 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
91 <itemizedlist spacing="compact">
92 <listitem>
[32696a4]93 <para>
[a79f8e7]94 <ulink url="&git-root;/git-manpages-&git-version;.tar.xz">
[7053ca8]95 &git-root;/git-manpages-&git-version;.tar.xz</ulink>
[2bbb3379]96 (not needed if you've installed <xref linkend="asciidoc"/>,
97 <xref linkend="xmlto"/>, and prefer to rebuild them)
[32696a4]98 </para>
[435934c]99 </listitem>
100 <listitem>
[32696a4]101 <para>
[a79f8e7]102 <ulink url="&git-root;/git-htmldocs-&git-version;.tar.xz">
[7053ca8]103 &git-root;/git-htmldocs-&git-version;.tar.xz</ulink>
[2bbb3379]104 and other docs (not needed if you've installed
105 <xref linkend="asciidoc"/> and want to rebuild the documentation).
[32696a4]106 </para>
[435934c]107 </listitem>
108 </itemizedlist>
109
[800f6b1]110 <bridgehead renderas="sect3">Git Dependencies</bridgehead>
111
112 <bridgehead renderas="sect4">Recommended</bridgehead>
[1b2d41b]113 <para role="recommended">
[4f8ca94]114 <xref linkend="curl"/> (needed to use <application>Git</application> over
115 http, https, ftp or ftps)
[1b2d41b]116 </para>
[800f6b1]117
118 <bridgehead renderas="sect4">Optional</bridgehead>
[1b2d41b]119 <para role="optional">
[6e5b09c0]120 <xref role="runtime" linkend="gnupg2"/> (runtime, may be used to sign
[f5524b6]121 <application>Git</application> commits or tags, or verify the signatures
[6e5b09c0]122 of them),
[4992564]123 <xref role="runtime" linkend="openssh"/> (runtime, needed to use
124 <application>Git</application> over ssh),
[d86a91f]125 <xref linkend="pcre2"/> (<emphasis>or</emphasis> the deprecated <xref
[cac7f93]126 role="nodep" linkend="pcre"/>), in either case configured with
[d86a91f]127 <literal>--enable-jit</literal>,
[f1c6a8a]128 <xref role="runtime" linkend="subversion"/> with Perl bindings
129 (runtime, for <command>git svn</command>),
[572553b]130 <xref role="runtime" linkend="tk"/>
131 (gitk, a simple <application>Git</application>
[bc0c417]132 repository viewer, uses <application>Tk</application> at runtime),
133 <xref linkend="valgrind"/>,
134 <ulink url="https://metacpan.org/pod/Authen::SASL">Authen::SASL</ulink> and
135 <ulink url="https://metacpan.org/pod/MIME::Base64">MIME::Base64</ulink>
136 (both runtime, for <command>git send-email</command>)
[1b2d41b]137 </para>
138
[28814022]139 <bridgehead renderas="sect4">Optional (to create the man pages, html docs
140 and other docs)</bridgehead>
[464f030]141 <para role="optional">
[fad8db2]142 <xref linkend="xmlto"/> and
[b1c3841]143 <xref linkend="asciidoc"/>
144 <!-- or xref linkend="asciidoctor", doesn't work now because it needs docbook-xsl-ns -->,
145 and also
[28814022]146 <ulink url="http://dblatex.sourceforge.net/">dblatex</ulink>
147 (for the PDF version of the user manual), and
148 <ulink url="http://docbook2x.sourceforge.net/">docbook2x</ulink> to
149 create info pages
[1b2d41b]150 </para>
[800f6b1]151
152 <para condition="html" role="usernotes">User Notes:
[32696a4]153 <ulink url="&blfs-wiki;/git"/>
154 </para>
[800f6b1]155 </sect2>
156
157 <sect2 role="installation">
158 <title>Installation of Git</title>
159
[32696a4]160 <para>
161 Install <application>Git</application> by running the following
162 commands:
163 </para>
[800f6b1]164
[7e81406]165<screen><userinput>./configure --prefix=/usr \
166 --with-gitconfig=/etc/gitconfig \
167 --with-python=python3 &amp;&amp;
[800f6b1]168make</userinput></screen>
169
[6e08e9c0]170 <para>
171 You can build the man pages and/or html docs, or
[3ec1600]172 use downloaded ones. If you choose to build them, use the next two
[6e08e9c0]173 instructions.
174 </para>
175
[32696a4]176 <para>
[9faa23b6]177 If you have installed <xref linkend="asciidoc"/> you can
[32696a4]178 create the html version of the man pages and other docs:
179 </para>
[800f6b1]180
[a42c273]181<screen remap="doc"><userinput>make html</userinput></screen>
[800f6b1]182
[32696a4]183 <para>
[9faa23b6]184 If you have installed <xref linkend="asciidoc"/> and
[32696a4]185 <xref linkend="xmlto"/> you can create the man pages:
186 </para>
[435934c]187
[a42c273]188<screen remap="doc"><userinput>make man</userinput></screen>
[435934c]189
[32696a4]190 <para>
[28814022]191 The test suite can be run in parallel mode. To run the test suite, issue:
192 <command>make test</command>. If run as a normal user, 0 tests should be
193 reported as failed in the final summary.
[32696a4]194 </para>
[800f6b1]195
[32696a4]196 <para>
197 Now, as the <systemitem class="username">root</systemitem>
198 user:
199 </para>
[800f6b1]200
[eacfe160]201<screen role="root"><userinput>make perllibdir=/usr/lib/perl5/&lfs-perl-version;/site_perl install</userinput></screen>
[800f6b1]202
[6e08e9c0]203<!-- ==== Method 1 for docs ====== -->
204 <bridgehead renderas="sect3">If you created the man pages and/or html docs</bridgehead>
205
[32696a4]206 <para>
[3ec1600]207 Install the man pages as the
[32696a4]208 <systemitem class="username">root</systemitem> user:
209 </para>
[800f6b1]210
[06908bf6]211<screen role="root"
212 remap="doc"><userinput>make install-man</userinput></screen>
[435934c]213
[32696a4]214 <para>
[3ec1600]215 Install the html docs as the
[32696a4]216 <systemitem class="username">root</systemitem> user:
217 </para>
[435934c]218
[06908bf6]219<screen role="root"
220 remap="doc"><userinput>make htmldir=/usr/share/doc/git-&git-version; install-html</userinput></screen>
[6e08e9c0]221
222<!-- ==== Method 2 for docs ====== -->
223 <bridgehead renderas="sect3">If you downloaded the man pages and/or html docs</bridgehead>
[435934c]224
[32696a4]225 <para>
[6e08e9c0]226 If you downloaded the man pages untar them as the
[32696a4]227 <systemitem class="username">root</systemitem> user:
228 </para>
[435934c]229
[64419b7]230<screen role="root"><userinput>tar -xf ../git-manpages-&git-version;.tar.xz \
231 -C /usr/share/man --no-same-owner --no-overwrite-dir</userinput></screen>
[435934c]232
[32696a4]233 <para>
234 If you downloaded the html docs untar them as the
235 <systemitem class="username">root</systemitem> user:
236 </para>
[435934c]237
[78a00a4e]238<screen role="root"><userinput>mkdir -vp /usr/share/doc/git-&git-version; &amp;&amp;
239tar -xf ../git-htmldocs-&git-version;.tar.xz \
240 -C /usr/share/doc/git-&git-version; --no-same-owner --no-overwrite-dir &amp;&amp;
[0524804]241
[78a00a4e]242find /usr/share/doc/git-&git-version; -type d -exec chmod 755 {} \; &amp;&amp;
243find /usr/share/doc/git-&git-version; -type f -exec chmod 644 {} \;</userinput></screen>
[c4ab33b5]244
[6e08e9c0]245<!-- ==== Reorganize docs ====== -->
[28814022]246 <bridgehead renderas="sect3">Reorganize text and html in the html-docs (both methods)</bridgehead>
[6e08e9c0]247
248 <para>
[28814022]249 For both methods, the html-docs include a lot of plain text files.
250 Reorganize the files as the
[6e08e9c0]251 <systemitem class="username">root</systemitem> user:
252 </para>
253
[78a00a4e]254<screen role="root"><userinput>mkdir -vp /usr/share/doc/git-&git-version;/man-pages/{html,text} &amp;&amp;
255mv /usr/share/doc/git-&git-version;/{git*.txt,man-pages/text} &amp;&amp;
256mv /usr/share/doc/git-&git-version;/{git*.,index.,man-pages/}html &amp;&amp;
[64419b7]257
[78a00a4e]258mkdir -vp /usr/share/doc/git-&git-version;/technical/{html,text} &amp;&amp;
259mv /usr/share/doc/git-&git-version;/technical/{*.txt,text} &amp;&amp;
260mv /usr/share/doc/git-&git-version;/technical/{*.,}html &amp;&amp;
261
262mkdir -vp /usr/share/doc/git-&git-version;/howto/{html,text} &amp;&amp;
263mv /usr/share/doc/git-&git-version;/howto/{*.txt,text} &amp;&amp;
[6da25cc8]264mv /usr/share/doc/git-&git-version;/howto/{*.,}html &amp;&amp;
265
[d86a91f]266sed -i '/^&lt;a href=/s|howto/|&amp;html/|' /usr/share/doc/git-&git-version;/howto-index.html &amp;&amp;
267sed -i '/^\* link:/s|howto/|&amp;html/|' /usr/share/doc/git-&git-version;/howto-index.txt</userinput></screen>
[32696a4]268
[800f6b1]269 </sect2>
270
271 <sect2 role="commands">
272 <title>Command Explanations</title>
273
[5e5a8d5]274 <para>
[35943a41]275 <parameter>--with-gitconfig=/etc/gitconfig</parameter>: This sets
[5e5a8d5]276 <filename>/etc/gitconfig</filename> as the file that stores
277 the default, system wide, <application>Git</application>
278 settings.
279 </para>
280
[32696a4]281 <para>
[8ff2771]282 <parameter>--with-python=python3</parameter>: Use this switch to use
[7e81406]283 <application>Python 3</application>, instead of the EOL'ed
284 <application>Python 2</application>. Python is used for the
285 <command>git p4</command> interface to Perforce repositories,
286 and also used in some tests.
[32696a4]287 </para>
[435934c]288
[32696a4]289 <para>
[d86a91f]290 <option>--with-libpcre2</option>: Use this switch if
291 <application>PCRE2</application> is installed and has been built with
292 the non-default JIT enabled.
293 </para>
294
295 <para>
[ff104798]296 <option>--with-libpcre</option>: As an alternative to PCRE2, use this
[d86a91f]297 switch if the deprecated <application>PCRE</application> is installed
298 and has been built with the non-default JIT enabled.
[32696a4]299 </para>
[0524804]300
[32696a4]301 <para>
302 <command>tar -xf ../git-manpages-&git-version;.tar.gz -C
303 /usr/share/man --no-same-owner</command>: This untars
304 <filename>git-manpages-&git-version;.tar.gz</filename>. The
305 <option>-C</option> option makes tar change directory to
306 <filename class="directory">/usr/share/man</filename> before
307 it starts to decompress the docs. The <option>--no-same-owner</option>
308 option stops tar from preserving the user and group details of the
309 files. This is useful as that user or group may not exist on your
310 system; this could (potentially) be a security risk.
311 </para>
[0524804]312
[32696a4]313 <para>
314 <command>mv /usr/share/doc/git-&git-version; ...</command>: These
315 commands move some of the files into subfolders to make it easier to sort
316 through the docs and find what you're looking for.
317 </para>
[435934c]318
[c4ab33b5]319 <para>
[49ee8357]320 <command>find ... chmod ...</command>: These commands correct the
[c4ab33b5]321 permissions in the shipped documentation tar file.
322 </para>
323
[800f6b1]324 </sect2>
325
326 <sect2 role="configuration">
327 <title>Configuring Git</title>
328
329 <sect3 id="git-config">
330 <title>Config Files</title>
[32696a4]331 <para>
332 <filename>~/.gitconfig</filename> and
333 <filename>/etc/gitconfig</filename>
334 </para>
[800f6b1]335
336 <indexterm zone="git git-config">
337 <primary sortas="e-AA.gitconfig">~/.gitconfig</primary>
338 </indexterm>
339
340 <indexterm zone="git git-config">
341 <primary sortas="e-etc-gitconfig">/etc/gitconfig</primary>
342 </indexterm>
[32696a4]343
[800f6b1]344 </sect3>
345
346 </sect2>
347
348 <sect2 role="content">
349 <title>Contents</title>
350
351 <segmentedlist>
352 <segtitle>Installed Programs</segtitle>
[c3c56b2]353 <segtitle>Installed Libraries</segtitle>
[800f6b1]354 <segtitle>Installed Directories</segtitle>
355
356 <seglistitem>
[32696a4]357 <seg>
[21b1ead]358 git, git-receive-pack, git-upload-archive, and
359 git-upload-pack (hardlinked to each
360 other), git-cvsserver, git-shell, and gitk
[32696a4]361 </seg>
362 <seg>
363 None
364 </seg>
365 <seg>
[21b1ead]366 /usr/libexec/git-core, and
[5a04ffa]367 /usr/share/{doc/git-&git-version;,git-core,git-gui,gitk,gitweb}
[32696a4]368 </seg>
[800f6b1]369 </seglistitem>
370 </segmentedlist>
371
372 <variablelist>
373 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
374 <?dbfo list-presentation="list"?>
375 <?dbhtml list-presentation="table"?>
376
377 <varlistentry id="git-prog">
378 <term><command>git</command></term>
379 <listitem>
[32696a4]380 <para>
[4c24eb0a]381 is the stupid content tracker
[32696a4]382 </para>
[800f6b1]383 <indexterm zone="git git-prog">
384 <primary sortas="b-git">git</primary>
385 </indexterm>
386 </listitem>
387 </varlistentry>
388
389 <varlistentry id="git-cvsserver">
390 <term><command>git-cvsserver</command></term>
391 <listitem>
[32696a4]392 <para>
[4c24eb0a]393 is a CVS server emulator for <application>Git</application>
[32696a4]394 </para>
[800f6b1]395 <indexterm zone="git git-cvsserver">
396 <primary sortas="b-git-cvsserver">git-cvsserver</primary>
397 </indexterm>
398 </listitem>
399 </varlistentry>
400
401 <varlistentry id="gitk">
402 <term><command>gitk</command></term>
403 <listitem>
[32696a4]404 <para>
[a79f8e7]405 is a graphical <application>Git</application> repository browser
[4c24eb0a]406 (needs <xref linkend="tk"/>)
[32696a4]407 </para>
[800f6b1]408 <indexterm zone="git gitk">
409 <primary sortas="b-gitk">gitk</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
414 <varlistentry id="git-receive-pack">
415 <term><command>git-receive-pack</command></term>
416 <listitem>
[32696a4]417 <para>
418 is invoked by <command>git send-pack</command> and updates the
[4c24eb0a]419 repository with the information fed from the remote end
[32696a4]420 </para>
[800f6b1]421 <indexterm zone="git git-receive-pack">
422 <primary sortas="b-git-receive-pack">git-receive-pack</primary>
423 </indexterm>
424 </listitem>
425 </varlistentry>
426
427 <varlistentry id="git-shell">
428 <term><command>git-shell</command></term>
429 <listitem>
[32696a4]430 <para>
431 is a login shell for SSH accounts to provide restricted Git
[4c24eb0a]432 access
[32696a4]433 </para>
[800f6b1]434 <indexterm zone="git git-shell">
435 <primary sortas="b-git-shell">git-shell</primary>
436 </indexterm>
437 </listitem>
438 </varlistentry>
439
440 <varlistentry id="git-upload-archive">
441 <term><command>git-upload-archive</command></term>
442 <listitem>
[32696a4]443 <para>
444 is invoked by <command>git archive --remote</command> and sends
[4c24eb0a]445 a generated archive to the other end over the git protocol
[32696a4]446 </para>
[800f6b1]447 <indexterm zone="git git-upload-archive">
448 <primary sortas="b-git-upload-archive">git-upload-archive</primary>
449 </indexterm>
450 </listitem>
451 </varlistentry>
452
453 <varlistentry id="git-upload-pack">
454 <term><command>git-upload-pack</command></term>
455 <listitem>
[32696a4]456 <para>
457 is invoked by <command>git fetch-pack</command>, it discovers
458 what objects the other side is missing, and sends them after
[4c24eb0a]459 packing
[32696a4]460 </para>
[800f6b1]461 <indexterm zone="git git-upload-pack">
462 <primary sortas="b-git-upload-pack">git-upload-pack</primary>
463 </indexterm>
464 </listitem>
465 </varlistentry>
[32696a4]466
[800f6b1]467 </variablelist>
[32696a4]468
[800f6b1]469 </sect2>
[32696a4]470
[800f6b1]471</sect1>
Note: See TracBrowser for help on using the repository browser.