source: general/prog/git.xml@ a79f8e7

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a79f8e7 was a79f8e7, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Update url for git

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

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