操作步骤如下:

yum remove -y git  #卸载旧版本Git
yum install -y tk zlib-devel openssl-devel perl cpio expat-devel gettext-devel asciidoc xmlto autoconf #安装依赖,否则一路报错....
wget https://www.kernel.org/pub/software/scm/git/git-2.1.2.tar.gz
tar xf v2.2.1.tar.gz
cd git-2.2.
make configure
./configure --prefix=/usr/local/git --with-iconv=/usr/local/libiconv #添加 iconv 支持
make all doc #编译并生成帮助文档
make install install-doc install-html #安装程序
echo "export PATH=$PATH:/usr/local/git/bin" >> ~/.bash_profile
echo "export GIT_SSL_NO_VERIFY=1" > ~/.bash_profile (如果不加入这句会出现fatal Peer certificate cannot be authenticated with known CA certificate)
source ~/.bash_profile
git --version Git 项目地址:https://github.com/git/git

最新文章

  1. Java开发中的23种设计模式详解
  2. electron 入门小白贴
  3. 怎么给我的Office文档加密
  4. curl常用选项详解
  5. 在struts里使用Kindeditor注意事项
  6. mysql其他函数
  7. SuperSocket学习笔记(一)
  8. Hibernate框架(一)——总体介绍
  9. 符号文件(.pdb)——Windows 应用程序调试必备
  10. java抽象类的特点
  11. JQuery中参数e,event
  12. ZooKeeper笔记——技术点汇总
  13. LIMS系统仪器数据采集-使用xpdf解析pdf内容
  14. redux 简介
  15. unity读取txt,并且生成vector3的数组
  16. Android客户端与数据库交互数据的简单学习
  17. ActivityCapture
  18. poj 3041(最大匹配问题)
  19. NodeJS express不是外部或内部命令的解决办法
  20. day7:vcp考试

热门文章

  1. this泛指函数的上下文
  2. 123: The filename, directory name, or volume label syntax is incorrect今天玩nginx的时候报错
  3. SpringMVC详解------参数绑定
  4. DB2 catalog 编目
  5. vue浏览器全屏实现
  6. 【转载】更简单的学习Android事件分发
  7. MongoDB 副本集丢失数据的测试
  8. Python—时间模块(time)和随机模块(random)
  9. LCD RGB 控制技术 时钟篇(下)【转】
  10. [视频教程] ubuntu系统下安装最新版PHP7.3.X环境