Git is a distributed version control system. I won’t go into much details of what Git is or why use Git instead of other VC systems. There’s plenty other sites where to check that information.
I love Git, but there’s a slight problem with Ubuntu’s repositories (feisty, gutsy): its an old version.
Git’s version on the repositories is 188.8.131.52. Its an old version and it lacks many of the new cool features like git stash and git citool and many others. So to get the latest version with all the cool features, you have to compile from source.
To do that, you will need the following packages:
First install the all the basic tools for compiling source:
sudo aptitude build-essential
sudo aptitude install libc6 libcurl3-gnutls libexpat1 zlib1g perl-modules liberror-perl libdigest-sha1-perl cpio openssh patch
gettext curl tk8.4 tcl8.4
Download the tarball from http://git.or.cz and uncompress it.
$ tar xvzf git*.tar.gz
Then, run the compilation steps and install:
$ sudo make install
And there it is! Run the following to check your version.
$ git --version
The only thing that I still don’t know how to get is git command autocomplete on bash. If you install from repositories, then install from source, you’ll have it all.