安装
依赖安装
# 安装
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
yum install gcc perl-ExtUtils-MakeMaker
yum -y install gcc automake autoconf libtool make
安装git
# 卸载旧的git
yum remove git
# 下载源码包
https://www.kernel.org/pub/software/scm/git/
wget https://www.kernel.org/pub/software/scm/git/git-2.10.0.tar.gz
wget http://soft.meimg.com/git-2.10.0.tar.gz # 备份下载地址
# 编译安装
tar -zvxf git-2.10.0.tar.gz
cd git-2.10.0
make prefix=/usr/local/git all
make prefix=/usr/local/git install
# 创建软连接
ln -s /usr/local/git/bin/git /usr/bin/git
# 查看当前Git版本
git --version
创建ssh秘钥
ssh-keygen -t rsa
# 查看秘钥文件
ll ~/.ssh/
转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 [email protected]