centos上git搭建
1 git的安装需要一些包: yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
2 把git的包导入系统 3 解压 4 进入包里编译安装 make prefix=/usr/local/git all (编译) make prefix=/usr/local/git install (安装) 5 进入/etc/profile加入环境变量 export PATH=$PATH:/usr/local/git source /etc/profile 6 检查是否安装成功 git --version