source: general/prog/git.xml@ f85cd20

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 f85cd20 was f85cd20, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Update to git-1.8.5.2.

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