@TOCcentos7.9下安装git
安装git
yum install git
查看版本号
git --version
生成添加密钥
先配置git:
1.git config --global user.name “xx”
2.git config --global user.email “xxxx@xxx.com”
添加密钥:
ssh-keygen -C ‘xxxx@xxx.com’ -t rsa 一路回车确认yes
密钥文件位置
root/.ssh
@TOCcentos7.9下安装git
yum install git
git --version
先配置git:
1.git config --global user.name “xx”
2.git config --global user.email “xxxx@xxx.com”
添加密钥:
ssh-keygen -C ‘xxxx@xxx.com’ -t rsa 一路回车确认yes
root/.ssh