%general-entities; ]> $LastChangedBy$ $Date$ Git-&git-version; Git Introduction to Git Git is a free and open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server. Branching and merging are fast and easy to do. Git is used for version control of files, much like tools such as Mercurial, Bazaar, , , Perforce, and Team Foundation Server. &lfs74_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &git-md5sum; Download size: &git-size; Estimated disk space required: &git-buildsize; Estimated build time: &git-time; Additional Downloads http://git-core.googlecode.com/files/git-manpages-&git-version;.tar.gz (only needed if you've not installed asciidoc and xmlto) http://git-core.googlecode.com/files/git-htmldocs-&git-version;.tar.gz and other docs (only needed if you've not installed asciidoc). Git Dependencies Recommended (needed to use Git over http, https, ftp or ftps), , and Optional , with Perl bindings (for git svn), and (gitk, a simple Git repository viewer, uses Tk at runtime) Optional (to create the man pages and html docs) AsciiDoc and User Notes: Installation of Git Install Git by running the following commands: ./configure --prefix=/usr \ --libexecdir=/usr/lib \ --with-gitconfig=/etc/gitconfig && make If you have installed AsciiDoc you can create the html version of the man pages and other docs: make html If you have installed AsciiDoc and you can create the man pages: make man To check the results, issue: make test. Now, as the root user: make install If you created the man pages, install them as the root user: make install-man If you created the html docs, install them as the root user: make htmldir=/usr/share/doc/git-&git-version; install-html && mkdir -p /usr/share/doc/git-&git-version;/man-pages/{html,text} && mv /usr/share/doc/git-&git-version;/{git*.txt,man-pages/text} && mv /usr/share/doc/git-&git-version;/{git*.,index.,man-pages/}html && mkdir /usr/share/doc/git-&git-version;/technical/{html,text} && mv /usr/share/doc/git-&git-version;/technical/{*.txt,text} && mv /usr/share/doc/git-&git-version;/technical/{*.,}html && mkdir /usr/share/doc/git-&git-version;/howto/{html,text} && mv /usr/share/doc/git-&git-version;/howto/{*.txt,text} && mv /usr/share/doc/git-&git-version;/howto/{*.,}html Alternatively, If you downloaded the man pages untar them as the root user: tar -xf ../git-manpages-&git-version;.tar.gz -C /usr/share/man --no-same-owner --no-overwrite-dir If you downloaded the html docs untar them as the root user: mkdir -p /usr/share/doc/git-&git-version;/man-pages/{html,text} && tar -xf ../git-htmldocs-&git-version;.tar.gz \ -C /usr/share/doc/git-&git-version; --no-same-owner --no-overwrite-dir && find /usr/share/doc/git-&git-version; -type d -exec chmod 755 {} \; && find /usr/share/doc/git-&git-version; -type f -exec chmod 644 {} \; && mv /usr/share/doc/git-&git-version;/{git*.txt,man-pages/text} && mv /usr/share/doc/git-&git-version;/{git*.,index.,man-pages/}html && mkdir /usr/share/doc/git-&git-version;/technical/{html,text} && mv /usr/share/doc/git-&git-version;/technical/{*.txt,text} && mv /usr/share/doc/git-&git-version;/technical/{*.,}html && mkdir /usr/share/doc/git-&git-version;/howto/{html,text} && mv /usr/share/doc/git-&git-version;/howto/{*.txt,text} && mv /usr/share/doc/git-&git-version;/howto/{*.,}html Command Explanations --with-gitconfig=/etc/gitconfig: This sets /etc/gitconfig as the file that stores the default, system wide, Git settings. : Use this switch if Python is not installed. : Use this switch if PCRE is installed. tar -xf ../git-manpages-&git-version;.tar.gz -C /usr/share/man --no-same-owner: This untars git-manpages-&git-version;.tar.gz. The option makes tar change directory to /usr/share/man before it starts to decompress the docs. The option stops tar from preserving the user and group details of the files. This is useful as that user or group may not exist on your system; this could (potentially) be a security risk. mv /usr/share/doc/git-&git-version; ...: These commands move some of the files into subfolders to make it easier to sort through the docs and find what you're looking for. find ... chmod ...: These commands correct the permissions in the shipped documentation tar file. Configuring Git Config Files ~/.gitconfig and /etc/gitconfig ~/.gitconfig /etc/gitconfig Contents Installed Programs Installed Libraries Installed Directories git, git-receive-pack and git-upload-archive (hardlinked to each other); git-shell, git-cvsserver, git-upload-pack and gitk (this one is optional) None /usr/lib/git-core, /usr/share/doc/git-&git-version;, /usr/share/git-core, /usr/share/git-gui, /usr/share/gitk (optional), /usr/share/gitweb, /usr/lib/perl5/site_perl/<5.x.y>/Git and /usr/lib/perl5/site_perl/&lfs-perl-version;/auto/Git Short Descriptions git is the stupid content tracker. git git-cvsserver is a CVS server emulator for Git. git-cvsserver gitk (optional) is a graphical Git repository browser (needs ). gitk git-receive-pack is invoked by git send-pack and updates the repository with the information fed from the remote end. git-receive-pack git-shell is a login shell for SSH accounts to provide restricted Git access. git-shell git-upload-archive is invoked by git archive --remote and sends a generated archive to the other end over the git protocol. git-upload-archive git-upload-pack is invoked by git fetch-pack, it discovers what objects the other side is missing, and sends them after packing. git-upload-pack