Asianux 3 linux系统下GitLab客户端安装

来源:互联网 发布:工业三维建模软件 编辑:程序博客网 时间:2024/06/03 14:29

0 、下载git源码包

1、git 安装包的下载地址:
https://www.kernel.org/pub/software/scm/git
2、从以上地址下载git-2.8.2.tar.gz源码包;

3、将源码包上传到对应服务器;

我将源码包放在了下面的目录:

[root@localhost ~]#mkdir /tmp/git

1、安装git

1、编译安装

[root@localhost ~]#tar  -zxf  git-2.8.2.tar.gz
[root@localhost ~]#cd git-2.8.2/ 
[root@localhost ~]#./configure 
[root@localhost ~]#make 
[root@localhost ~]#make prefix=/usr/local install

为确保$PATH环境变量生效,需要重新连接后执行

[root@localhost ~]#git --version[root@localhost ~]#exit

2、使用git下载项目

[dba@localhost ~]$ git clone https://github.com/jhyehuang/gf_financial.git
0 0