使用命令:
yum –y install gitgit --version如果出现版本信息则代表安装成功
cd /usr/local
mkdir git
cd gitgit config --global user.name "你的名字"
git config --global user.email "你的邮箱"ssh-keygen -t rsa -C "你的邮箱"一直回车…
cat /root/.ssh/id_rsa.pub默认是在该文件夹中
git clone git@github.com:fanrendale/spring-boot-04-web-restfulcrud.git能正常下载则代表是配置正确