Ubuntu Git安装

$ cd ~/tmp

下载git

$ wget http://www.kernel.org/pub/software/scm/git/git-1.6.0.2.tar.gz

解压

$ tar xvzf git-1.6.0.2.tar.gz

编译

$ cd  git-1.6.0.2

$ ./configure --prefix=/usr/bin

$ make

如果这一步没错,有显示版本号,那就OK

$git –version  

使用git 下载源代码

$ cd ~/tmp

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

 

原文地址:https://www.cnblogs.com/foxhengxing/p/1821732.html