配置密钥
bash1git config --global user.name "WangEden"2git config --global user.email "wangeden_@outlook.com"3ssh-keygen -t rsa -b 4096 -C "wangeden_@outlook.com" -f ~/.ssh/id_rsa_github4
在github上配置
bash1cat ~/.ssh/id_rsa_github.pub2
之后把输出的内容贴到github的SSH and GPG keys项中
测试连接:
bash1ssh -T git@github.com2
如果失败,手动在 config 中添加
bash1vim ~/.ssh/config2# 添加3Host github.com4 HostName github.com5 User git6 IdentityFile ~/.ssh/id_rsa_github7

