1. 创建SSH Key
xiaowudeMacBook-Pro:xiaowu$ cd ~
xiaowudeMacBook-Pro:~ xiaowu$ pwd
/Users/zw
xiaowudeMacBook-Pro:~xiaowu$ cd .ssh
xiaowudeMacBook-Pro:~ xiaowu$ cd /Users/zw
xiaowudeMacBook-Pro:~ xiaowu$ cd .ssh
1.配置Git环境
git config --global user.name "xxxxx"
git config --global user.email "xxx@xx.xxx"
ssh-keygen -t rsa -C git@github.com/RoboyCore //你的邮箱
2.一路回车,在用户目录.ssh有公钥
Generating
public/private
rsa key pair.
3。粘贴到指定的ssh公钥区域即可