Git学习01:Git安装
Git学习01:Git安装
Linux Centos7 安装
一、yum安装,只要执行 yum -y install git 即可,但是yum安装无法控制版本,可能版本会比较老,推荐使用方法二
[ ~]# yum -y install git Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile ...... Installed: git.x86_64 0:1.8.3.1-21.el7_7 Dependency Installed: perl-Error.noarch 1:0.17020-2.el7 perl-Git.noarch 0:1.8.3.1-21.el7_7 perl-TermReadKey.x86_64 0:2.30-20.el7 rsync.x86_64 0:3.1.2-6.el7_6.1 Complete! [-x-large-2-linux-20200229160057 ~]# git --version git version 1.8.3.1
二、从GitHub上下载最新的源码编译后安装
1- 去Gitbub下载安装包XXX.tar.gz文件,并上传到Linux服务器/usr目录下
2- 解压压缩包,并进入到解压后的文件夹
[ git-2.26.0]# cd /usr [-x-large-2-linux-20200229160057 git-2.26.0]# tar -zxvf git-2.26.0.tar.gz ...... [-x-large-2-linux-20200229160057 git-2.26.0]# cd git-2.26.0 /usr/git-2.26.0
3- 安装编译所需要的依赖,然后编译。
END
相关推荐
formula 2020-11-12
huhongfei 2020-11-05
乾坤一碼農 2020-10-27
liumengyanysu 2020-10-22
E哥的aws认证攻略 2020-10-15
tianyafengxin 2020-10-08
guying 2020-10-05
好脑筋不如烂笔头 2020-09-17
nebulali 2020-09-11
佛系程序员J 2020-09-15
fenggit 2020-09-15
JustHaveTry 2020-09-11
兄dei努力赚钱吧 2020-09-06
IngeniousIT 2020-08-25
liumengyanysu 2020-08-17
guying 2020-08-16