系统:centos 5
到下面的目录去下载需要的git版本
http://code.google.com/p/git-core/downloads/list
在linux环境下执行
./configure –prefix=/usr/local/git
warning: zlib.h: No such file or directory
yum -y install zlib-devel
make;
make install
也可以直接通过其他方式安装
关于git的常用命令,在网上看了一位老兄的总结,觉得不错。
http://www.cnblogs.com/1-2-3/archive/2010/07/18/git-commands.html