git config --global user.name "Your Name" git config --global user.email "email@example.com" ssh-keygen -t rsa -C "email@example.com" # 查看你的公钥 cat ~/.git/id_rsa.pub
去 github 个人设置 ssh key,把公钥的内容
测试是否能连接
ssh -vT git@github.com