配置user.name和user.email
git config --global user.name "xxx"
git config --global user.email "xxxxx"
生成ssh密钥对
ssh-keygen
获取公钥
cat /root/.ssh/id_rsa.pub
Github上配置ssh公钥
验证
ssh -T git@github.com
git config --global user.name "xxx"
git config --global user.email "xxxxx"
ssh-keygen
cat /root/.ssh/id_rsa.pub
ssh -T git@github.com