最近项目中用到jenkins去部署web项目,jenkins配置了shell脚本之后会从github上拉一些packages,但是发现拉不下来,问题我也忘记记录了(哎,搞定之后才想起来去记录一些东西,发现没截图存一下过程)。
查了一下原因是说redhat默认的git 版本是1.7.1的所以建议升级,查了一下服务器上装了yum,所以就先卸载了默认版本的git
yum remove git
下载最新的git源码
wget https://github.com/git/git/tar.gz/v2.16.1
然后解压缩并进入目录。一般我们安装都先去看一下INSTALL文
Git installation
Normally you can just do "make" followed by "make install", and that
will install the git programs i