初始化邮箱用户名
1 | git config --global user.email "shianqi@imudges.com" |
1 | git config --global user.name "shianqi" |
生成SSH密钥
1 | ssh-keygen -t rsa -C "shianqi@imudges.com" |
windows 需要在 GitBush 中添加
将密钥添加到 Github 设置中
测试连接
1 | ssh -T git@github.com |
出现下面的文本,则链接成功1
Hi shianqi! You've successfully authenticated, but GitHub does not provide shell access.