source: general/prog/git.xml@ 45ab6c7

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 45ab6c7 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

  • Property mode set to 100644
File size: 16.1 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 " ">
[195f473c]11 <!ENTITY git-md5sum "51bd18a1af964dd3b1c7b0220889ebb6">
[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) -->
[6f0a3e2a]17 <!ENTITY git-buildsize "374 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.-->
[6f0a3e2a]20 <!ENTITY git-time "0.3 SBU (with parallelism=4; add 0.4 SBU for building documentation and 1.6 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
[4a2c778d]54 &lfs101_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">
[d86a91f]120 <xref linkend="pcre2"/> (<emphasis>or</emphasis> the deprecated <xref
[cac7f93]121 role="nodep" linkend="pcre"/>), in either case configured with
[d86a91f]122 <literal>--enable-jit</literal>,
[4f8ca94]123 <xref linkend="subversion"/> with Perl bindings (for <command>git
124 svn</command>),
[572553b]125 <xref role="runtime" linkend="tk"/>
126 (gitk, a simple <application>Git</application>
[bc0c417]127 repository viewer, uses <application>Tk</application> at runtime),
128 <xref linkend="valgrind"/>,
129 <ulink url="https://metacpan.org/pod/Authen::SASL">Authen::SASL</ulink> and
130 <ulink url="https://metacpan.org/pod/MIME::Base64">MIME::Base64</ulink>
131 (both runtime, for <command>git send-email</command>)
[1b2d41b]132 </para>
133
[28814022]134 <bridgehead renderas="sect4">Optional (to create the man pages, html docs
135 and other docs)</bridgehead>
[464f030]136 <para role="optional">
[fad8db2]137 <xref linkend="xmlto"/> and
[9faa23b6]138 <xref linkend="asciidoc"/> or
[28814022]139 <ulink url="http://asciidoctor.org/">AsciiDoctor</ulink>, and also
140 <ulink url="http://dblatex.sourceforge.net/">dblatex</ulink>
141 (for the PDF version of the user manual), and
142 <ulink url="http://docbook2x.sourceforge.net/">docbook2x</ulink> to
143 create info pages
[1b2d41b]144 </para>
[800f6b1]145
146 <para condition="html" role="usernotes">User Notes:
[32696a4]147 <ulink url="&blfs-wiki;/git"/>
148 </para>
[800f6b1]149 </sect2>
150
151 <sect2 role="installation">
152 <title>Installation of Git</title>
153
[32696a4]154 <para>
155 Install <application>Git</application> by running the following
156 commands:
157 </para>
[800f6b1]158
[7e81406]159<screen><userinput>./configure --prefix=/usr \
160 --with-gitconfig=/etc/gitconfig \
161 --with-python=python3 &amp;&amp;
[800f6b1]162make</userinput></screen>
163
[6e08e9c0]164 <para>
165 You can build the man pages and/or html docs, or
[3ec1600]166 use downloaded ones. If you choose to build them, use the next two
[6e08e9c0]167 instructions.
168 </para>
169
[32696a4]170 <para>
[9faa23b6]171 If you have installed <xref linkend="asciidoc"/> you can
[32696a4]172 create the html version of the man pages and other docs:
173 </para>
[800f6b1]174
[a42c273]175<screen remap="doc"><userinput>make html</userinput></screen>
[800f6b1]176
[32696a4]177 <para>
[9faa23b6]178 If you have installed <xref linkend="asciidoc"/> and
[32696a4]179 <xref linkend="xmlto"/> you can create the man pages:
180 </para>
[435934c]181
[a42c273]182<screen remap="doc"><userinput>make man</userinput></screen>
[435934c]183
[32696a4]184 <para>
[28814022]185 The test suite can be run in parallel mode. To run the test suite, issue:
186 <command>make test</command>. If run as a normal user, 0 tests should be
187 reported as failed in the final summary.
[32696a4]188 </para>
[800f6b1]189
[32696a4]190 <para>
191 Now, as the <systemitem class="username">root</systemitem>
192 user:
193 </para>
[800f6b1]194
[eacfe160]195<screen role="root"><userinput>make perllibdir=/usr/lib/perl5/&lfs-perl-version;/site_perl install</userinput></screen>
[800f6b1]196
[6e08e9c0]197<!-- ==== Method 1 for docs ====== -->
198 <bridgehead renderas="sect3">If you created the man pages and/or html docs</bridgehead>
199
[32696a4]200 <para>
[3ec1600]201 Install the man pages as the
[32696a4]202 <systemitem class="username">root</systemitem> user:
203 </para>
[800f6b1]204
[06908bf6]205<screen role="root"
206 remap="doc"><userinput>make install-man</userinput></screen>
[435934c]207
[32696a4]208 <para>
[3ec1600]209 Install the html docs as the
[32696a4]210 <systemitem class="username">root</systemitem> user:
211 </para>
[435934c]212
[06908bf6]213<screen role="root"
214 remap="doc"><userinput>make htmldir=/usr/share/doc/git-&git-version; install-html</userinput></screen>
[6e08e9c0]215
216<!-- ==== Method 2 for docs ====== -->
217 <bridgehead renderas="sect3">If you downloaded the man pages and/or html docs</bridgehead>
[435934c]218
[32696a4]219 <para>
[6e08e9c0]220 If you downloaded the man pages untar them as the
[32696a4]221 <systemitem class="username">root</systemitem> user:
222 </para>
[435934c]223
[64419b7]224<screen role="root"><userinput>tar -xf ../git-manpages-&git-version;.tar.xz \
225 -C /usr/share/man --no-same-owner --no-overwrite-dir</userinput></screen>
[435934c]226
[32696a4]227 <para>
228 If you downloaded the html docs untar them as the
229 <systemitem class="username">root</systemitem> user:
230 </para>
[435934c]231
[78a00a4e]232<screen role="root"><userinput>mkdir -vp /usr/share/doc/git-&git-version; &amp;&amp;
233tar -xf ../git-htmldocs-&git-version;.tar.xz \
234 -C /usr/share/doc/git-&git-version; --no-same-owner --no-overwrite-dir &amp;&amp;
[0524804]235
[78a00a4e]236find /usr/share/doc/git-&git-version; -type d -exec chmod 755 {} \; &amp;&amp;
237find /usr/share/doc/git-&git-version; -type f -exec chmod 644 {} \;</userinput></screen>
[c4ab33b5]238
[6e08e9c0]239<!-- ==== Reorganize docs ====== -->
[28814022]240 <bridgehead renderas="sect3">Reorganize text and html in the html-docs (both methods)</bridgehead>
[6e08e9c0]241
242 <para>
[28814022]243 For both methods, the html-docs include a lot of plain text files.
244 Reorganize the files as the
[6e08e9c0]245 <systemitem class="username">root</systemitem> user:
246 </para>
247
[78a00a4e]248<screen role="root"><userinput>mkdir -vp /usr/share/doc/git-&git-version;/man-pages/{html,text} &amp;&amp;
249mv /usr/share/doc/git-&git-version;/{git*.txt,man-pages/text} &amp;&amp;
250mv /usr/share/doc/git-&git-version;/{git*.,index.,man-pages/}html &amp;&amp;
[64419b7]251
[78a00a4e]252mkdir -vp /usr/share/doc/git-&git-version;/technical/{html,text} &amp;&amp;
253mv /usr/share/doc/git-&git-version;/technical/{*.txt,text} &amp;&amp;
254mv /usr/share/doc/git-&git-version;/technical/{*.,}html &amp;&amp;
255
256mkdir -vp /usr/share/doc/git-&git-version;/howto/{html,text} &amp;&amp;
257mv /usr/share/doc/git-&git-version;/howto/{*.txt,text} &amp;&amp;
[6da25cc8]258mv /usr/share/doc/git-&git-version;/howto/{*.,}html &amp;&amp;
259
[d86a91f]260sed -i '/^&lt;a href=/s|howto/|&amp;html/|' /usr/share/doc/git-&git-version;/howto-index.html &amp;&amp;
261sed -i '/^\* link:/s|howto/|&amp;html/|' /usr/share/doc/git-&git-version;/howto-index.txt</userinput></screen>
[32696a4]262
[800f6b1]263 </sect2>
264
265 <sect2 role="commands">
266 <title>Command Explanations</title>
267
[5e5a8d5]268 <para>
[35943a41]269 <parameter>--with-gitconfig=/etc/gitconfig</parameter>: This sets
[5e5a8d5]270 <filename>/etc/gitconfig</filename> as the file that stores
271 the default, system wide, <application>Git</application>
272 settings.
273 </para>
274
[32696a4]275 <para>
[8ff2771]276 <parameter>--with-python=python3</parameter>: Use this switch to use
[7e81406]277 <application>Python 3</application>, instead of the EOL'ed
278 <application>Python 2</application>. Python is used for the
279 <command>git p4</command> interface to Perforce repositories,
280 and also used in some tests.
[32696a4]281 </para>
[435934c]282
[32696a4]283 <para>
[d86a91f]284 <option>--with-libpcre2</option>: Use this switch if
285 <application>PCRE2</application> is installed and has been built with
286 the non-default JIT enabled.
287 </para>
288
289 <para>
[ff104798]290 <option>--with-libpcre</option>: As an alternative to PCRE2, use this
[d86a91f]291 switch if the deprecated <application>PCRE</application> is installed
292 and has been built with the non-default JIT enabled.
[32696a4]293 </para>
[0524804]294
[32696a4]295 <para>
296 <command>tar -xf ../git-manpages-&git-version;.tar.gz -C
297 /usr/share/man --no-same-owner</command>: This untars
298 <filename>git-manpages-&git-version;.tar.gz</filename>. The
299 <option>-C</option> option makes tar change directory to
300 <filename class="directory">/usr/share/man</filename> before
301 it starts to decompress the docs. The <option>--no-same-owner</option>
302 option stops tar from preserving the user and group details of the
303 files. This is useful as that user or group may not exist on your
304 system; this could (potentially) be a security risk.
305 </para>
[0524804]306
[32696a4]307 <para>
308 <command>mv /usr/share/doc/git-&git-version; ...</command>: These
309 commands move some of the files into subfolders to make it easier to sort
310 through the docs and find what you're looking for.
311 </para>
[435934c]312
[c4ab33b5]313 <para>
[49ee8357]314 <command>find ... chmod ...</command>: These commands correct the
[c4ab33b5]315 permissions in the shipped documentation tar file.
316 </para>
317
[800f6b1]318 </sect2>
319
320 <sect2 role="configuration">
321 <title>Configuring Git</title>
322
323 <sect3 id="git-config">
324 <title>Config Files</title>
[32696a4]325 <para>
326 <filename>~/.gitconfig</filename> and
327 <filename>/etc/gitconfig</filename>
328 </para>
[800f6b1]329
330 <indexterm zone="git git-config">
331 <primary sortas="e-AA.gitconfig">~/.gitconfig</primary>
332 </indexterm>
333
334 <indexterm zone="git git-config">
335 <primary sortas="e-etc-gitconfig">/etc/gitconfig</primary>
336 </indexterm>
[32696a4]337
[800f6b1]338 </sect3>
339
340 </sect2>
341
342 <sect2 role="content">
343 <title>Contents</title>
344
345 <segmentedlist>
346 <segtitle>Installed Programs</segtitle>
[c3c56b2]347 <segtitle>Installed Libraries</segtitle>
[800f6b1]348 <segtitle>Installed Directories</segtitle>
349
350 <seglistitem>
[32696a4]351 <seg>
[21b1ead]352 git, git-receive-pack, git-upload-archive, and
353 git-upload-pack (hardlinked to each
354 other), git-cvsserver, git-shell, and gitk
[32696a4]355 </seg>
356 <seg>
357 None
358 </seg>
359 <seg>
[21b1ead]360 /usr/libexec/git-core, and
[5a04ffa]361 /usr/share/{doc/git-&git-version;,git-core,git-gui,gitk,gitweb}
[32696a4]362 </seg>
[800f6b1]363 </seglistitem>
364 </segmentedlist>
365
366 <variablelist>
367 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
368 <?dbfo list-presentation="list"?>
369 <?dbhtml list-presentation="table"?>
370
371 <varlistentry id="git-prog">
372 <term><command>git</command></term>
373 <listitem>
[32696a4]374 <para>
[4c24eb0a]375 is the stupid content tracker
[32696a4]376 </para>
[800f6b1]377 <indexterm zone="git git-prog">
378 <primary sortas="b-git">git</primary>
379 </indexterm>
380 </listitem>
381 </varlistentry>
382
383 <varlistentry id="git-cvsserver">
384 <term><command>git-cvsserver</command></term>
385 <listitem>
[32696a4]386 <para>
[4c24eb0a]387 is a CVS server emulator for <application>Git</application>
[32696a4]388 </para>
[800f6b1]389 <indexterm zone="git git-cvsserver">
390 <primary sortas="b-git-cvsserver">git-cvsserver</primary>
391 </indexterm>
392 </listitem>
393 </varlistentry>
394
395 <varlistentry id="gitk">
396 <term><command>gitk</command></term>
397 <listitem>
[32696a4]398 <para>
[a79f8e7]399 is a graphical <application>Git</application> repository browser
[4c24eb0a]400 (needs <xref linkend="tk"/>)
[32696a4]401 </para>
[800f6b1]402 <indexterm zone="git gitk">
403 <primary sortas="b-gitk">gitk</primary>
404 </indexterm>
405 </listitem>
406 </varlistentry>
407
408 <varlistentry id="git-receive-pack">
409 <term><command>git-receive-pack</command></term>
410 <listitem>
[32696a4]411 <para>
412 is invoked by <command>git send-pack</command> and updates the
[4c24eb0a]413 repository with the information fed from the remote end
[32696a4]414 </para>
[800f6b1]415 <indexterm zone="git git-receive-pack">
416 <primary sortas="b-git-receive-pack">git-receive-pack</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
420
421 <varlistentry id="git-shell">
422 <term><command>git-shell</command></term>
423 <listitem>
[32696a4]424 <para>
425 is a login shell for SSH accounts to provide restricted Git
[4c24eb0a]426 access
[32696a4]427 </para>
[800f6b1]428 <indexterm zone="git git-shell">
429 <primary sortas="b-git-shell">git-shell</primary>
430 </indexterm>
431 </listitem>
432 </varlistentry>
433
434 <varlistentry id="git-upload-archive">
435 <term><command>git-upload-archive</command></term>
436 <listitem>
[32696a4]437 <para>
438 is invoked by <command>git archive --remote</command> and sends
[4c24eb0a]439 a generated archive to the other end over the git protocol
[32696a4]440 </para>
[800f6b1]441 <indexterm zone="git git-upload-archive">
442 <primary sortas="b-git-upload-archive">git-upload-archive</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446
447 <varlistentry id="git-upload-pack">
448 <term><command>git-upload-pack</command></term>
449 <listitem>
[32696a4]450 <para>
451 is invoked by <command>git fetch-pack</command>, it discovers
452 what objects the other side is missing, and sends them after
[4c24eb0a]453 packing
[32696a4]454 </para>
[800f6b1]455 <indexterm zone="git git-upload-pack">
456 <primary sortas="b-git-upload-pack">git-upload-pack</primary>
457 </indexterm>
458 </listitem>
459 </varlistentry>
[32696a4]460
[800f6b1]461 </variablelist>
[32696a4]462
[800f6b1]463 </sect2>
[32696a4]464
[800f6b1]465</sect1>
Note: See TracBrowser for help on using the repository browser.