linux安装git

linux安装git,第1张

1、检查服务器是否已经安装了git
git version

2、安装依赖
yum install openssl-devel zlib-devel perl-ExtUtils-MakeMaker svn tcl perl-Locale-Msgfmt gettext asciidoc xmlto docbook2x
3、下载资源

(1)切换到你的包文件存放目录下

cd /usr/local

(2)下载git安装包

wget https://www.kernel.org/pub/software/scm/git/git-2.8.3.tar.gz
4、解压git安装包
tar -zxvf git-2.8.3.tar.gz
cd git-2.8.3
make configure
./configure --prefix=/usr
make all doc
make install install-doc install-html

报错信息:fatal: unable to access ‘https://github.com/***/***’: SSL connect error
解决办法:

git config --global http.sslversion tlsv1
5、查看版本和安装路径
git --version
whereis git

参考路径:https://www.cnblogs.com/imyalost/p/8715688.html

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/800225.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-06
下一篇2022-05-06

发表评论

登录后才能评论

评论列表(0条)

    保存