centos安装git

1、安装依赖

  1. yum -y install curl curl-devel zlib-devel openssl-devel perl cpio expat-devel gettext-devel autoconf

2、开始安装

  1. wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
  2. tar xzvf git-latest.tar.gz
  3. cd git-`date +%F`
  4. autoconf
  5. ./configure
  6. make && make install

3、查看版本

  1. git --version

git version 1.7.12.GIT

标签:CentosGIT 发布于:2019-11-23 01:01:49