source: general/prog/git.xml@ fd063aae

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

Update to git-1.8.4.2.

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

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