source: general/prog/git.xml@ 068521ee

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 068521ee was 068521ee, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Typo

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

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