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

 

posted @ 2010-09-08 20:46  网络小虫  阅读(463)  评论(0编辑  收藏  举报