第一步:yum -y install git

2.查看版本:git --version
出现 git version 1.8.3.1 说明安装成功。
3.在想要设置仓库的地方建好文件夹:
mkdir gitee
cd gitee
4.设置公钥:
ssh-keygen -t rsa -C "xxx@qq.com" //这个地方是你自己的邮箱
然后连续按3次回车

5.查看公钥:
cat ~/.ssh/id_rsa.pub
6.复制公钥到gitee里,添加公钥,然后就可以拉代码了
7.拉需要的代码:
git clone git@gitee.com:xxxxxxxxxxxxxxxxxxx.git
以上就是centos配置git并拉取代码的步骤,记录一下。
nginx资源404 nginx无法访问静态资源 Mac nginx PHP安装Imagick Imagick 多版本PHP环境安装Imagick SSL免费续签 SSL证书续签 SSL证书领取 SSL免费 SSL证书 link must be in js secure domain list uniapp分享 wx.config is not a function 微信分享 pyenv-virtualenv brew install pyenv-virtualenv ModuleNotFoundError: No module named 'requests' python报错 python环境