source: general/prog/git.xml@ 4716d52

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

Removed the python linkend. The python links now point at python2

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

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