[800f6b1] | 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>
|
---|
[4716d52] | 72 | <para role="required"><xref linkend="python2"/></para>
|
---|
[800f6b1] | 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 --prefix=/usr --with-gitconfig=/etc/gitconfig &&
|
---|
| 97 | make</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>--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 |
|
---|
[78bd08a] | 144 | <para>If you want to use <command>git svn</command> you will need to
|
---|
| 145 | install <xref linkend="subversion"/> and its perl bindings.</para>
|
---|
[800f6b1] | 146 |
|
---|
[874fec7f] | 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
|
---|
[78bd08a] | 149 | they are. To set the default location of the SSL certificates, as the
|
---|
[874fec7f] | 150 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[800f6b1] | 151 |
|
---|
[874fec7f] | 152 | <screen role="root"><userinput>git config --system http.sslCAPath /etc/ssl/certs</userinput></screen>
|
---|
[800f6b1] | 153 | </sect3>
|
---|
| 154 | </sect2>
|
---|
| 155 |
|
---|
| 156 | <sect2 role="content">
|
---|
| 157 | <title>Contents</title>
|
---|
| 158 |
|
---|
| 159 | <segmentedlist>
|
---|
| 160 | <segtitle>Installed Programs</segtitle>
|
---|
| 161 | <segtitle>Installed Directories</segtitle>
|
---|
| 162 |
|
---|
| 163 | <seglistitem>
|
---|
| 164 | <seg>git, git-cvsserver, gitk, git-receive-pack, git-shell,
|
---|
| 165 | git-upload-archive and git-upload-pack.</seg>
|
---|
| 166 | <seg>/usr/libexec/git-core, /usr/share/git-core, /usr/share/git-gui,
|
---|
| 167 | /usr/share/gitk and /usr/share/gitweb</seg>
|
---|
| 168 | </seglistitem>
|
---|
| 169 | </segmentedlist>
|
---|
| 170 |
|
---|
| 171 | <variablelist>
|
---|
| 172 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 173 | <?dbfo list-presentation="list"?>
|
---|
| 174 | <?dbhtml list-presentation="table"?>
|
---|
| 175 |
|
---|
| 176 | <varlistentry id="git-prog">
|
---|
| 177 | <term><command>git</command></term>
|
---|
| 178 | <listitem>
|
---|
| 179 | <para>is the stupid content tracker.</para>
|
---|
| 180 | <indexterm zone="git git-prog">
|
---|
| 181 | <primary sortas="b-git">git</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
| 186 | <varlistentry id="git-cvsserver">
|
---|
| 187 | <term><command>git-cvsserver</command></term>
|
---|
| 188 | <listitem>
|
---|
| 189 | <para>is a CVS server emulator for git.</para>
|
---|
| 190 | <indexterm zone="git git-cvsserver">
|
---|
| 191 | <primary sortas="b-git-cvsserver">git-cvsserver</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
| 196 | <varlistentry id="gitk">
|
---|
| 197 | <term><command>gitk</command></term>
|
---|
| 198 | <listitem>
|
---|
| 199 | <para>is a git repository browser (needs <xref linkend="tk"/>).</para>
|
---|
| 200 | <indexterm zone="git gitk">
|
---|
| 201 | <primary sortas="b-gitk">gitk</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 |
|
---|
| 206 | <varlistentry id="git-receive-pack">
|
---|
| 207 | <term><command>git-receive-pack</command></term>
|
---|
| 208 | <listitem>
|
---|
| 209 | <para>is invoked by <command>git send-pack</command> and updates the
|
---|
| 210 | repository with the information fed from the remote end.</para>
|
---|
| 211 | <indexterm zone="git git-receive-pack">
|
---|
| 212 | <primary sortas="b-git-receive-pack">git-receive-pack</primary>
|
---|
| 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
| 216 |
|
---|
| 217 | <varlistentry id="git-shell">
|
---|
| 218 | <term><command>git-shell</command></term>
|
---|
| 219 | <listitem>
|
---|
| 220 | <para>is a login shell for SSH accounts to provide restricted Git
|
---|
| 221 | access.</para>
|
---|
| 222 | <indexterm zone="git git-shell">
|
---|
| 223 | <primary sortas="b-git-shell">git-shell</primary>
|
---|
| 224 | </indexterm>
|
---|
| 225 | </listitem>
|
---|
| 226 | </varlistentry>
|
---|
| 227 |
|
---|
| 228 | <varlistentry id="git-upload-archive">
|
---|
| 229 | <term><command>git-upload-archive</command></term>
|
---|
| 230 | <listitem>
|
---|
| 231 | <para>is invoked by <command>git archive --remote</command> and sends
|
---|
| 232 | a generated archive to the other end over the git protocol.</para>
|
---|
| 233 | <indexterm zone="git git-upload-archive">
|
---|
| 234 | <primary sortas="b-git-upload-archive">git-upload-archive</primary>
|
---|
| 235 | </indexterm>
|
---|
| 236 | </listitem>
|
---|
| 237 | </varlistentry>
|
---|
| 238 |
|
---|
| 239 | <varlistentry id="git-upload-pack">
|
---|
| 240 | <term><command>git-upload-pack</command></term>
|
---|
| 241 | <listitem>
|
---|
| 242 | <para>is invoked by <command>git fetch-pack</command>, it discovers
|
---|
| 243 | what objects the other side is missing, and sends them after
|
---|
| 244 | packing.</para>
|
---|
| 245 | <indexterm zone="git git-upload-pack">
|
---|
| 246 | <primary sortas="b-git-upload-pack">git-upload-pack</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
| 250 | </variablelist>
|
---|
| 251 | </sect2>
|
---|
| 252 | </sect1>
|
---|