Skip directly to content

git

How to install the most current stable version of Git on Ubuntu

on Thu, 2010-07-29 02:23

The easiest way to install the version control system Git on Ubuntu is of course to do apt-get install git-core. But that will not give you the most current stable version of Git.

Usually, that wouldn’t matter to me. I prefer the stability of Ubuntu’s official repositories, instead of having the latest version of every software. But with Git it is different.

In previous versions of Ubuntu, the repository have had very old version of Git. That has improved with Ubuntu 10.04, but I guess it will fall behind again. So therefore, I have previously compiled Git from source. But there is actually a

How to install Git from source on Ubuntu

on Fri, 2009-01-16 15:14

UPDATE: There is an easier and better way to do this. See How to install the most current stable version of Git on Ubuntu.

This mini-HOWTO explains how to install Git from source on Ubuntu. Git is a free Version Control System (VCS) which is distributed.

How to install Git on Ubuntu:

  1. sudo apt-get build-dep git-core git-doc
  2. Download the latest stable release of Git from its web site http://git-scm.com/.
  3. Unpack the downloaded archive file.
  4. Go into the unpacked folder.
  5. ./configure
  6. make prefix=/usr/local all doc
  7. sudo make install install-doc
  8. Remove the unpacked folder.

You are now ready to use Git.