pengjunling 发表于 2018-9-17 07:44:13

centos 6.8 编译安装git 2.11.0-506554897

cd /usr/local/src/  
tar zxvf git-2.11.0.tar.gz
  
make prefix=/usr/local/git all
  
make prefix=/usr/local/git install
  
添加git到环境变量
  
    echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
  
    或者
  
    echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/profile
  
source /etc/bashrc 或者 source /etc/profile


页: [1]
查看完整版本: centos 6.8 编译安装git 2.11.0-506554897