Linux#
Download #
If you do not already have git, go to http://git-scm.org to download.
If you do have git,
$ git clone git://git.kernel.org/pub/scm/git/git.git
or
$ git clone http://git.kernel.org/pub/scm/git/git.git
or
$ git clone git://github.com/git/git.git
if you're behind a firewall.
Extract#
If you downloaded the tarball -
$ tar xvfz git-1.7.5.1.tar.gz
Checkout#
If you cloned the code with git, you'll want to go checkout a tag. Find the latest release and run checkout.
$ git tag $ git checkout v1.7.5.1
Install Dependencies
$ sudo apt-get build-dep git-core
Configure and Build
If you cloned git -
$ autoconf # continue w/ tarball instructions
If you downloaded the tarball -
# for local installation $ ./configure --prefix=/home/username/apps/git # for system-wide installation $ ./configure --prefix=/usr/local $ make all doc $ sudo make install install-doc install-html
Mac#
By far the easiest thing to do is simply get it from from the git-osx-installer project on Google code
.
BSD#
Dependencies#
xmlto#
$ cd /usr/ports/textproc/xmlto $ sudo make install clean
asciidoc#
Get AsciiDoc from http://www.methods.co.nz/asciidoc/ and follow the installation directions. At the time of this writing it's -
# assuming ~/bin is in your path $ hg clone -r 8.6.4 https://asciidoc.googlecode.com/hg/ asciidoc-8.6.4 $ cd asciidoc-8.6.4 $ ln -s asciidoc.py ~/bin/asciidoc $ ln -s a2x.py ~/bin/a2x
Git#
Ports#
$ cd /usr/ports/devel/git $ make install clean
Tarball#
The latest version of the source is available at http://git-scm.com/.
$ wget http://kernel.org/pub/software/scm/git/git-1.7.5.1.tar.bz2 $ tar -xvfj git-1.7.5.1.tar.bz2 $ cd git-1.7.5.1
To install system-wide
$ ./configure $ gmake $ sudo gmake install
To install for just yourself
$ ./configure --prefix=/home/username/local $ gmake $ gmake install
CategoryArchived - Computing - Git - Mac - Linux Shell - BSD