source: general/prog/git.xml@ 8f29aa2

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 8f29aa2 was c33586b, checked in by Igor Živković <igor@…>, 11 years ago

git manpages and htmldocs permissions fix

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

  • Property mode set to 100644
File size: 14.6 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 " ">
[c4ab33b5]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)">
[800f6b1]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">
[32696a4]26 <primary sortas="a-Git">Git</primary>
[800f6b1]27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Git</title>
31
[32696a4]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>
[800f6b1]45
[01cecdc2]46 &lfs74_checked;
[800f6b1]47
48 <bridgehead renderas="sect3">Package Information</bridgehead>
49 <itemizedlist spacing="compact">
50 <listitem>
[32696a4]51 <para>
52 Download (HTTP): <ulink url="&git-download-http;"/>
53 </para>
[800f6b1]54 </listitem>
55 <listitem>
[32696a4]56 <para>
57 Download (FTP): <ulink url="&git-download-ftp;"/>
58 </para>
[800f6b1]59 </listitem>
60 <listitem>
[32696a4]61 <para>
62 Download MD5 sum: &git-md5sum;
63 </para>
[800f6b1]64 </listitem>
65 <listitem>
[32696a4]66 <para>
67 Download size: &git-size;
68 </para>
[800f6b1]69 </listitem>
70 <listitem>
[32696a4]71 <para>
72 Estimated disk space required: &git-buildsize;
73 </para>
[800f6b1]74 </listitem>
75 <listitem>
[32696a4]76 <para>
77 Estimated build time: &git-time;
78 </para>
[800f6b1]79 </listitem>
80 </itemizedlist>
81
[435934c]82 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
83 <itemizedlist spacing="compact">
84 <listitem>
[32696a4]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>
[435934c]90 </listitem>
91 <listitem>
[32696a4]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>
[435934c]97 </listitem>
98 </itemizedlist>
99
[800f6b1]100 <bridgehead renderas="sect3">Git Dependencies</bridgehead>
101
102 <bridgehead renderas="sect4">Recommended</bridgehead>
[1b2d41b]103 <para role="recommended">
[0d7900a]104 <xref linkend="curl"/> (needed to use <application>Git</application> over http,
[32696a4]105 https, ftp or ftps),
106 <xref linkend="expat"/>,
107 <xref linkend="openssl"/> and
108 <xref linkend="python2"/>
[1b2d41b]109 </para>
[800f6b1]110
111 <bridgehead renderas="sect4">Optional</bridgehead>
[1b2d41b]112 <para role="optional">
[32696a4]113 <xref linkend="pcre"/> and
[1b2d41b]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>
[800f6b1]123
124 <para condition="html" role="usernotes">User Notes:
[32696a4]125 <ulink url="&blfs-wiki;/git"/>
126 </para>
[800f6b1]127 </sect2>
128
129 <sect2 role="installation">
130 <title>Installation of Git</title>
131
[32696a4]132 <para>
133 Install <application>Git</application> by running the following
134 commands:
135 </para>
[800f6b1]136
[5e5a8d5]137<screen><userinput>./configure --prefix=/usr \
138 --libexecdir=/usr/lib \
139 --with-gitconfig=/etc/gitconfig &amp;&amp;
[800f6b1]140make</userinput></screen>
141
[32696a4]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>
[800f6b1]147
[65fe9d8]148<screen><userinput>make html</userinput></screen>
[800f6b1]149
[32696a4]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>
[435934c]155
[65fe9d8]156<screen><userinput>make man</userinput></screen>
[435934c]157
[32696a4]158 <para>
159 To check the results, issue: <command>make test</command>.
160 </para>
[800f6b1]161
[32696a4]162 <para>
163 Now, as the <systemitem class="username">root</systemitem>
164 user:
165 </para>
[800f6b1]166
167<screen role="root"><userinput>make install</userinput></screen>
168
[32696a4]169 <para>
170 If you created the man pages, install them as the
171 <systemitem class="username">root</systemitem> user:
172 </para>
[800f6b1]173
174<screen role="root"><userinput>make install-man</userinput></screen>
[435934c]175
[32696a4]176 <para>
177 If you created the html docs, install them as the
178 <systemitem class="username">root</systemitem> user:
179 </para>
[435934c]180
[0524804]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>
[435934c]191
[32696a4]192 <para>
193 Alternatively, If you downloaded the man pages untar them as the
194 <systemitem class="username">root</systemitem> user:
195 </para>
[435934c]196
[c33586b]197<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]198
[32696a4]199 <para>
200 If you downloaded the html docs untar them as the
201 <systemitem class="username">root</systemitem> user:
202 </para>
[435934c]203
[0524804]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 \
[c33586b]207 -C /usr/share/doc/git-&git-version; --no-same-owner --no-overwrite-dir &amp;&amp;
[0524804]208
[c4ab33b5]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
[0524804]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>
[32696a4]220
[800f6b1]221 </sect2>
222
223 <sect2 role="commands">
224 <title>Command Explanations</title>
225
[5e5a8d5]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
[32696a4]233 <para>
234 <option>--without-python</option>: Use this switch if
235 <application>Python</application> is not installed.
236 </para>
[435934c]237
[32696a4]238 <para>
239 <option>--with-libpcre</option>: Use this switch if
240 <application>PCRE</application> is installed.
241 </para>
[0524804]242
[32696a4]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>
[0524804]254
[32696a4]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>
[435934c]260
[c4ab33b5]261 <para>
262 <command>find ... chmod ...</command>: These commands correct the
263 permissions in the shipped documentation tar file.
264 </para>
265
[800f6b1]266 </sect2>
267
268 <sect2 role="configuration">
269 <title>Configuring Git</title>
270
271 <sect3 id="git-config">
272 <title>Config Files</title>
[32696a4]273 <para>
274 <filename>~/.gitconfig</filename> and
275 <filename>/etc/gitconfig</filename>
276 </para>
[800f6b1]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>
[32696a4]285
[800f6b1]286 </sect3>
287
288 <sect3><title>Configuration Information</title>
289
[32696a4]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>
[800f6b1]294
[32696a4]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>
[800f6b1]301
[874fec7f]302<screen role="root"><userinput>git config --system http.sslCAPath /etc/ssl/certs</userinput></screen>
[32696a4]303
[800f6b1]304 </sect3>
[32696a4]305
[800f6b1]306 </sect2>
307
308 <sect2 role="content">
309 <title>Contents</title>
310
311 <segmentedlist>
312 <segtitle>Installed Programs</segtitle>
[c3c56b2]313 <segtitle>Installed Libraries</segtitle>
[800f6b1]314 <segtitle>Installed Directories</segtitle>
315
316 <seglistitem>
[32696a4]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>
[800f6b1]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>
[32696a4]343 <para>
344 is the stupid content tracker.
345 </para>
[800f6b1]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>
[32696a4]355 <para>
356 is a CVS server emulator for <application>Git</application>.
357 </para>
[800f6b1]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>
[32696a4]367 <para>
368 is a graphical <application>Git</application> repository browser
369 (needs <xref linkend="tk"/>).
370 </para>
[800f6b1]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>
[32696a4]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>
[800f6b1]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>
[32696a4]393 <para>
394 is a login shell for SSH accounts to provide restricted Git
395 access.
396 </para>
[800f6b1]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>
[32696a4]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>
[800f6b1]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>
[32696a4]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>
[800f6b1]424 <indexterm zone="git git-upload-pack">
425 <primary sortas="b-git-upload-pack">git-upload-pack</primary>
426 </indexterm>
427 </listitem>
428 </varlistentry>
[32696a4]429
[800f6b1]430 </variablelist>
[32696a4]431
[800f6b1]432 </sect2>
[32696a4]433
[800f6b1]434</sect1>
Note: See TracBrowser for help on using the repository browser.