1.下载git

1
wget https://github.com/git/git/archive/v2.14.1.zip

centos/linux下的安装git_git安装

 2.安装依赖

1
sudo yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel curl-devel perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker

 安装成功后的截图

centos/linux下的安装git_perl_02

 3.解压git

1
unzip v2.14.1.zip

 centos/linux下的安装git_git_03

4.将git安装到/usr/local上

先进入git文件夹

编译

安装

1
cd git-2.14.1<br>make prefix=/usr/local all<br>make prefix=/usr/local install

 5.验证是否安装完成

1
git --version

 centos/linux下的安装git_.net_04

6.生成ssh密钥

1
ssh-keygen -t rsa -C "lonecloudmac@icloud.com"

7.查看ssh公钥

1
cat ~/.ssh/id_rsa.pub

 8.将密码复制到码云/github上面

9.下载代码

1
git clone git@git.oschina.net:lonecloud/qrcode.git

10.可以正常下载则说明是正确的 

1.下载git

1
wget https://github.com/git/git/archive/v2.14.1.zip

centos/linux下的安装git_git安装

 2.安装依赖

1
sudo yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel curl-devel perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker

 安装成功后的截图

centos/linux下的安装git_perl_02

 3.解压git

1
unzip v2.14.1.zip

 centos/linux下的安装git_git_03

4.将git安装到/usr/local上

先进入git文件夹

编译

安装

1
cd git-2.14.1<br>make prefix=/usr/local all<br>make prefix=/usr/local install

 5.验证是否安装完成

1
git --version

 centos/linux下的安装git_.net_04

6.生成ssh密钥

1
ssh-keygen -t rsa -C "lonecloudmac@icloud.com"

7.查看ssh公钥

1
cat ~/.ssh/id_rsa.pub

 8.将密码复制到码云/github上面

9.下载代码

1
git clone git@git.oschina.net:lonecloud/qrcode.git

10.可以正常下载则说明是正确的