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

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

added openssl and expat as optional deps of git

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

  • Property mode set to 100644
File size: 9.0 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">Git Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Required</bridgehead>
72 <para role="required"><xref linkend="python2"/></para>
73
74 <bridgehead renderas="sect4">Recommended</bridgehead>
75 <para role="recommended"><xref linkend="curl"/> (needed to use
76 <application>Git</application> over http, https, ftp or ftps)</para>
77
78 <bridgehead renderas="sect4">Optional</bridgehead>
79 <para role="optional"><xref linkend="openssl"/>, <xref linkend="expat"/>
80 and <xref linkend="tk"/> (gitk, a simple <application>Git</application>
81 repository viewer, uses <application>Tk</application> at runtime)</para>
82
83 <bridgehead renderas="sect4">Optional (to create the man
84 pages)</bridgehead>
85 <para><ulink url="http://www.methods.co.nz/asciidoc/">AsciiDoc</ulink> and
86 <xref linkend="xmlto"/>.</para>
87
88 <para condition="html" role="usernotes">User Notes:
89 <ulink url="&blfs-wiki;/git"/></para>
90 </sect2>
91
92 <sect2 role="installation">
93 <title>Installation of Git</title>
94
95 <para>Install <application>Git</application> by running the following
96 commands:</para>
97
98<screen><userinput>./configure -&#45;prefix=/usr -&#45;with-gitconfig=/etc/gitconfig &amp;&amp;
99make</userinput></screen>
100
101 <para>If you have installed <ulink
102 url="http://www.methods.co.nz/asciidoc/">AsciiDoc</ulink> and
103 <xref linkend="xmlto"/> and you wish to create the man pages:</para>
104
105<screen><userinput>make man</userinput></screen>
106
107 <para>To check the results, issue: <command>make test</command>.</para>
108
109 <para>Now, as the <systemitem class="username">root</systemitem>
110 user:</para>
111
112<screen role="root"><userinput>make install</userinput></screen>
113
114 <para>If you created the man pages, install them:</para>
115
116<screen role="root"><userinput>make install-man</userinput></screen>
117 </sect2>
118
119 <sect2 role="commands">
120 <title>Command Explanations</title>
121
122 <para><option>-&#45;with-gitconfig=/etc/gitconfig</option>: This sets
123 <filename>/etc/gitconfig</filename> as the file that stores the default,
124 system wide, <application>Git</application> settings.</para>
125 </sect2>
126
127 <sect2 role="configuration">
128 <title>Configuring Git</title>
129
130 <sect3 id="git-config">
131 <title>Config Files</title>
132 <para><filename>~/.gitconfig</filename> and
133 <filename>/etc/gitconfig</filename></para>
134
135 <indexterm zone="git git-config">
136 <primary sortas="e-AA.gitconfig">~/.gitconfig</primary>
137 </indexterm>
138
139 <indexterm zone="git git-config">
140 <primary sortas="e-etc-gitconfig">/etc/gitconfig</primary>
141 </indexterm>
142 </sect3>
143
144 <sect3><title>Configuration Information</title>
145
146 <para>If you want to use <command>git svn</command> you will need to
147 install <xref linkend="subversion"/> and its perl bindings.</para>
148
149 <para>To be able to use git to pull from a https source you need first
150 install the <xref linkend="cacerts"/> and then configure git to know where
151 they are. To set the default location of the SSL certificates, as the
152 <systemitem class="username">root</systemitem> user:</para>
153
154<screen role="root"><userinput>git config --system http.sslCAPath /etc/ssl/certs</userinput></screen>
155 </sect3>
156 </sect2>
157
158 <sect2 role="content">
159 <title>Contents</title>
160
161 <segmentedlist>
162 <segtitle>Installed Programs</segtitle>
163 <segtitle>Installed Directories</segtitle>
164
165 <seglistitem>
166 <seg>git, git-cvsserver, gitk, git-receive-pack, git-shell,
167 git-upload-archive and git-upload-pack.</seg>
168 <seg>/usr/libexec/git-core, /usr/share/git-core, /usr/share/git-gui,
169 /usr/share/gitk and /usr/share/gitweb</seg>
170 </seglistitem>
171 </segmentedlist>
172
173 <variablelist>
174 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
175 <?dbfo list-presentation="list"?>
176 <?dbhtml list-presentation="table"?>
177
178 <varlistentry id="git-prog">
179 <term><command>git</command></term>
180 <listitem>
181 <para>is the stupid content tracker.</para>
182 <indexterm zone="git git-prog">
183 <primary sortas="b-git">git</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="git-cvsserver">
189 <term><command>git-cvsserver</command></term>
190 <listitem>
191 <para>is a CVS server emulator for git.</para>
192 <indexterm zone="git git-cvsserver">
193 <primary sortas="b-git-cvsserver">git-cvsserver</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="gitk">
199 <term><command>gitk</command></term>
200 <listitem>
201 <para>is a git repository browser (needs <xref linkend="tk"/>).</para>
202 <indexterm zone="git gitk">
203 <primary sortas="b-gitk">gitk</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="git-receive-pack">
209 <term><command>git-receive-pack</command></term>
210 <listitem>
211 <para>is invoked by <command>git send-pack</command> and updates the
212 repository with the information fed from the remote end.</para>
213 <indexterm zone="git git-receive-pack">
214 <primary sortas="b-git-receive-pack">git-receive-pack</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="git-shell">
220 <term><command>git-shell</command></term>
221 <listitem>
222 <para>is a login shell for SSH accounts to provide restricted Git
223 access.</para>
224 <indexterm zone="git git-shell">
225 <primary sortas="b-git-shell">git-shell</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry id="git-upload-archive">
231 <term><command>git-upload-archive</command></term>
232 <listitem>
233 <para>is invoked by <command>git archive --remote</command> and sends
234 a generated archive to the other end over the git protocol.</para>
235 <indexterm zone="git git-upload-archive">
236 <primary sortas="b-git-upload-archive">git-upload-archive</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="git-upload-pack">
242 <term><command>git-upload-pack</command></term>
243 <listitem>
244 <para>is invoked by <command>git fetch-pack</command>, it discovers
245 what objects the other side is missing, and sends them after
246 packing.</para>
247 <indexterm zone="git git-upload-pack">
248 <primary sortas="b-git-upload-pack">git-upload-pack</primary>
249 </indexterm>
250 </listitem>
251 </varlistentry>
252 </variablelist>
253 </sect2>
254</sect1>
Note: See TracBrowser for help on using the repository browser.