source: general/prog/git.xml@ c4ab33b5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 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 c4ab33b5 was c4ab33b5, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

Update to git-1.8.4wq

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

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