CentOS7安装Git
git官网下载地址:window版地址:https://git-scm.com/downloadslinux版:https://mirrors.edge.kernel.org/pub/software/scm/git/下载到linux上:wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz解...
·
git官网下载地址:
window版地址:https://git-scm.com/downloads
linux版:https://mirrors.edge.kernel.org/pub/software/scm/git/
安装前:
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc
yum install gcc perl-ExtUtils-MakeMaker
下载到linux上:
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz
解压:
tar zxvf git-2.9.5.tar.gz
进去文件夹然后进行安装命令
make prefix=/usr/local/git all
make prefix=/usr/local/git install
改配置文件
vim /etc/profile
#在文件最后加入下面
export PATH=$PATH:/usr/local/git/bin
保存退后:
source /etc/profile
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献2条内容
所有评论(0)