[Ubuntu 12.04]
The git on ubuntu 12.04 is a little old, so I upgrade the git from git repository.
1. remove git
--->8---
$ sudo apt-get remove git
$ sudo apt-get purge git (this step remove git configuration file, if not will cause "bash: /usr/lib/git-core/git-sh-prompt: No such file or directory" error)
---8<---
2. install new git
--->8---
$ git clone git://github.com/git/git.git
$ cd git
$ make
$ make install (installed to /home/<user>/bin)
---8<---
3. after git is remove, the tig can not be used
--->8---
$ git clone git://github.com/jonas/tig.git
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
---8<---
You may meet following errors
1. Can't locate Error.pm in @INC
[Solved] $ sudo apt-get install liberror-perl