Git安装
# yum 命令安装
sudo yum install -y git
Git使用
配置用户信息
# 查看所有配置信息
git config --list
# 配置当前主机的git用户名和邮件地址
git config --global user.name "xxx"
git config --global user.email xxx@example.com
# 清除配置信息
git config --unset --local user.name
生成ssh密钥
# 1. 创建密钥
ssh-keygen -t rsa
# 2. github上传公钥
# setting -> SSH and GPG keys -> new SSH key