source: general/prog/git.xml@ 435934c

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 435934c was 435934c, checked in by Andrew Benton <andy@…>, 12 years ago

added download links for the git man pages and html docs

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

  • Property mode set to 100644
File size: 12.7 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
8 "http://git-core.googlecode.com/files/git-&git-version;.tar.gz">
9 <!ENTITY git-download-ftp " ">
10 <!ENTITY git-md5sum "d94314eb49622a945b22595b36b7fc47">
11 <!ENTITY git-size "3.4 MB">
12 <!ENTITY git-buildsize "140 MB">
13 <!ENTITY git-time "0.7 SBU">
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><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>.</para>
44
45 &lfs70_checked;
46
47 <bridgehead renderas="sect3">Package Information</bridgehead>
48 <itemizedlist spacing="compact">
49 <listitem>
50 <para>Download (HTTP): <ulink url="&git-download-http;"/></para>
51 </listitem>
52 <listitem>
53 <para>Download (FTP): <ulink url="&git-download-ftp;"/></para>
54 </listitem>
55 <listitem>
56 <para>Download MD5 sum: &git-md5sum;</para>
57 </listitem>
58 <listitem>
59 <para>Download size: &git-size;</para>
60 </listitem>
61 <listitem>
62 <para>Estimated disk space required: &git-buildsize;</para>
63 </listitem>
64 <listitem>
65 <para>Estimated build time: &git-time;</para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
70 <itemizedlist spacing="compact">
71 <listitem>
72 <para><ulink
73 url="http://git-core.googlecode.com/files/git-manpages-&git-version;.2.tar.gz">Man
74 Pages</ulink> (only needed if you've not installed asciidoc)</para>
75 </listitem>
76 <listitem>
77 <para><ulink
78 url="http://git-core.googlecode.com/files/git-htmldocs-&git-version;.2.tar.gz">Html
79 version of the Man Pages</ulink> and other docs (only needed if you've
80 not installed asciidoc and xmlto).</para>
81 </listitem>
82 </itemizedlist>
83
84 <bridgehead renderas="sect3">Git Dependencies</bridgehead>
85
86 <bridgehead renderas="sect4">Required</bridgehead>
87 <para role="required"><xref linkend="python2"/></para>
88
89 <bridgehead renderas="sect4">Recommended</bridgehead>
90 <para role="recommended"><xref linkend="curl"/> (needed to use
91 <application>Git</application> over http, https, ftp or ftps)</para>
92
93 <bridgehead renderas="sect4">Optional</bridgehead>
94 <para role="optional"><xref linkend="openssl"/>, <xref linkend="expat"/>
95 and <xref linkend="tk"/> (gitk, a simple <application>Git</application>
96 repository viewer, uses <application>Tk</application> at runtime)</para>
97
98 <bridgehead renderas="sect4">Optional (to create the man
99 pages and html docs)</bridgehead>
100 <para><ulink url="http://www.methods.co.nz/asciidoc/">AsciiDoc</ulink> and
101 <xref linkend="xmlto"/>.</para>
102
103 <para condition="html" role="usernotes">User Notes:
104 <ulink url="&blfs-wiki;/git"/></para>
105 </sect2>
106
107 <sect2 role="installation">
108 <title>Installation of Git</title>
109
110 <para>Install <application>Git</application> by running the following
111 commands:</para>
112
113<screen><userinput>./configure -&#45;prefix=/usr -&#45;with-gitconfig=/etc/gitconfig &amp;&amp;
114make</userinput></screen>
115
116 <para>If you have installed <ulink
117 url="http://www.methods.co.nz/asciidoc/">AsciiDoc</ulink> and you wish to
118 create the man pages:</para>
119
120<screen><userinput>make man</userinput></screen>
121
122 <para>If you have installed <ulink
123 url="http://www.methods.co.nz/asciidoc/">AsciiDoc</ulink> and
124 <xref linkend="xmlto"/> you can create the html version of the man
125 pages and other docs:</para>
126
127<screen><userinput>make html</userinput></screen>
128
129 <para>To check the results, issue: <command>make test</command>.</para>
130
131 <para>Now, as the <systemitem class="username">root</systemitem>
132 user:</para>
133
134<screen role="root"><userinput>make install</userinput></screen>
135
136 <para>If you created the man pages, install them as the
137 <systemitem class="username">root</systemitem> user:</para>
138
139<screen role="root"><userinput>make install-man</userinput></screen>
140
141 <para>If you created the html docs, install them as the
142 <systemitem class="username">root</systemitem> user:</para>
143
144<screen role="root"><userinput>make htmldir=/usr/share/doc/git-&git-version; install-html &amp;&amp;
145mkdir -p /usr/share/doc/git-&git-version;/man-pages/{html,text} &amp;&amp;
146mv /usr/share/doc/git-&git-version;/{git*.txt,man-pages/text} &amp;&amp;
147mv /usr/share/doc/git-&git-version;/{git*.,index.,man-pages/}html &amp;&amp;
148mkdir /usr/share/doc/git-&git-version;/technical/{html,text} &amp;&amp;
149mv /usr/share/doc/git-&git-version;/technical/{*.txt,text} &amp;&amp;
150mv /usr/share/doc/git-&git-version;/technical/{*.,}html &amp;&amp;
151mkdir /usr/share/doc/git-&git-version;/howto/{html,text} &amp;&amp;
152mv /usr/share/doc/git-&git-version;/howto/{*.txt,text} &amp;&amp;
153mv /usr/share/doc/git-&git-version;/howto/{*.,}html</userinput></screen>
154
155 <para>Alternatively, If you downloaded the man pages untar them as the
156 <systemitem class="username">root</systemitem> user:</para>
157
158<screen role="root"><userinput>tar xf ../git-manpages-&git-version;.2.tar.gz -C /usr/share/man --no-same-owner</userinput></screen>
159
160 <para>If you downloaded the html docs untar them as the
161 <systemitem class="username">root</systemitem> user:</para>
162
163<screen role="root"><userinput>mkdir -p /usr/share/doc/git-&git-version;/man-pages/{html,text} &amp;&amp;
164tar -xf ../git-htmldocs-&git-version;.2.tar.gz \
165 -C /usr/share/doc/git-&git-version; --no-same-owner &amp;&amp;
166mv /usr/share/doc/git-&git-version;/{git*.txt,man-pages/text} &amp;&amp;
167mv /usr/share/doc/git-&git-version;/{git*.,index.,man-pages/}html &amp;&amp;
168mkdir /usr/share/doc/git-&git-version;/technical/{html,text} &amp;&amp;
169mv /usr/share/doc/git-&git-version;/technical/{*.txt,text} &amp;&amp;
170mv /usr/share/doc/git-&git-version;/technical/{*.,}html &amp;&amp;
171mkdir /usr/share/doc/git-&git-version;/howto/{html,text} &amp;&amp;
172mv /usr/share/doc/git-&git-version;/howto/{*.txt,text} &amp;&amp;
173mv /usr/share/doc/git-&git-version;/howto/{*.,}html</userinput></screen>
174 </sect2>
175
176 <sect2 role="commands">
177 <title>Command Explanations</title>
178
179 <para><option>-&#45;with-gitconfig=/etc/gitconfig</option>: This sets
180 <filename>/etc/gitconfig</filename> as the file that stores the default,
181 system wide, <application>Git</application> settings.</para>
182
183 <para><command>tar xf ../git-manpages-&git-version;.2.tar.gz -C
184 /usr/share/man --no-same-owner</command>: This untars
185 <filename>git-manpages-&git-version;.2.tar.gz</filename>. The
186 <option>-C</option> option makes tar change directory to
187 <filename class="directory">/usr/share/man</filename> before it starts to
188 decompress the docs. The <option>--no-same-owner</option> option stops tar
189 from preserving the user and group details of the files. This is useful as
190 that user or group may not exist on your system; this could
191 (potentially) be a security risk.</para>
192
193 <para><command>mv /usr/share/doc/git-&git-version; ...</command>: These
194 commands move some of the files into subfolders to make it easier to sort
195 through the docs and find what you're looking for.</para>
196 </sect2>
197
198 <sect2 role="configuration">
199 <title>Configuring Git</title>
200
201 <sect3 id="git-config">
202 <title>Config Files</title>
203 <para><filename>~/.gitconfig</filename> and
204 <filename>/etc/gitconfig</filename></para>
205
206 <indexterm zone="git git-config">
207 <primary sortas="e-AA.gitconfig">~/.gitconfig</primary>
208 </indexterm>
209
210 <indexterm zone="git git-config">
211 <primary sortas="e-etc-gitconfig">/etc/gitconfig</primary>
212 </indexterm>
213 </sect3>
214
215 <sect3><title>Configuration Information</title>
216
217 <para>If you want to use <command>git svn</command> you will need to
218 install <xref linkend="subversion"/> and its perl bindings.</para>
219
220 <para>To be able to use git to pull from a https source you need first
221 install the <xref linkend="cacerts"/> and then configure git to know where
222 they are. To set the default location of the SSL certificates, as the
223 <systemitem class="username">root</systemitem> user:</para>
224
225<screen role="root"><userinput>git config --system http.sslCAPath /etc/ssl/certs</userinput></screen>
226 </sect3>
227 </sect2>
228
229 <sect2 role="content">
230 <title>Contents</title>
231
232 <segmentedlist>
233 <segtitle>Installed Programs</segtitle>
234 <segtitle>Installed Directories</segtitle>
235
236 <seglistitem>
237 <seg>git, git-cvsserver, gitk, git-receive-pack, git-shell,
238 git-upload-archive and git-upload-pack.</seg>
239 <seg>/usr/libexec/git-core, /usr/share/git-&git-version;,
240 /usr/share/git-core, /usr/share/git-gui, /usr/share/gitk and
241 /usr/share/gitweb</seg>
242 </seglistitem>
243 </segmentedlist>
244
245 <variablelist>
246 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
247 <?dbfo list-presentation="list"?>
248 <?dbhtml list-presentation="table"?>
249
250 <varlistentry id="git-prog">
251 <term><command>git</command></term>
252 <listitem>
253 <para>is the stupid content tracker.</para>
254 <indexterm zone="git git-prog">
255 <primary sortas="b-git">git</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="git-cvsserver">
261 <term><command>git-cvsserver</command></term>
262 <listitem>
263 <para>is a CVS server emulator for git.</para>
264 <indexterm zone="git git-cvsserver">
265 <primary sortas="b-git-cvsserver">git-cvsserver</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 <varlistentry id="gitk">
271 <term><command>gitk</command></term>
272 <listitem>
273 <para>is a git repository browser (needs <xref linkend="tk"/>).</para>
274 <indexterm zone="git gitk">
275 <primary sortas="b-gitk">gitk</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="git-receive-pack">
281 <term><command>git-receive-pack</command></term>
282 <listitem>
283 <para>is invoked by <command>git send-pack</command> and updates the
284 repository with the information fed from the remote end.</para>
285 <indexterm zone="git git-receive-pack">
286 <primary sortas="b-git-receive-pack">git-receive-pack</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 <varlistentry id="git-shell">
292 <term><command>git-shell</command></term>
293 <listitem>
294 <para>is a login shell for SSH accounts to provide restricted Git
295 access.</para>
296 <indexterm zone="git git-shell">
297 <primary sortas="b-git-shell">git-shell</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="git-upload-archive">
303 <term><command>git-upload-archive</command></term>
304 <listitem>
305 <para>is invoked by <command>git archive --remote</command> and sends
306 a generated archive to the other end over the git protocol.</para>
307 <indexterm zone="git git-upload-archive">
308 <primary sortas="b-git-upload-archive">git-upload-archive</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="git-upload-pack">
314 <term><command>git-upload-pack</command></term>
315 <listitem>
316 <para>is invoked by <command>git fetch-pack</command>, it discovers
317 what objects the other side is missing, and sends them after
318 packing.</para>
319 <indexterm zone="git git-upload-pack">
320 <primary sortas="b-git-upload-pack">git-upload-pack</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
324 </variablelist>
325 </sect2>
326</sect1>
Note: See TracBrowser for help on using the repository browser.