source: general/prog/git.xml@ 1b2d41b

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

Editorial changes

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

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