- 设置账号、email
1
2git config --global user.name "yourname"
git config --global user.email "youremail" - 检查
1
2git config user.name
git config user.email - 创建SSH ;
id_rsa
:私人秘钥id_rsa.pub
:公共秘钥1
ssh-keygen -t rsa -C "youremail"
- GitHub -> New SSH key ->id_rsa.pub
- 检查
1
ssh -T git@github.com