It is easiest to install Git on Linux using the preferred package manager of your Linux distribution.
$ apt-get install git
$ yum install git
$ emerge --ask --verbose dev-vcs/git
$ pacman -S git
$ cd /usr/ports/devel/git
$ make install
$ pkg install developer/versioning/git
$ pkg_add git
Install Git for Linux and Unix
原文:http://www.cnblogs.com/peishuanglin/p/linuxer.html