1、git config --global user.name "tangyuhui"
2、git config --global user.email "317972442@qq.com"
3、将ssh-keygen.exe 所在路径添加至环境变量,否则会出现ssh-keygen 不是内部或外部命令的错误
4、ssh-keygen -t rsa -C "317972442@qq.com"
或者ssh-keygen -t rsa -f C://Users/Administrator/.ssh/id_rsa.osc -C "317972442@qq.com"

4、复制.pub文件的内容至github
5、下载tortoisegit,配置Network中的ssh-client为本地的
q:如何设置为本地的?
a:如下图所示,将network中的ssh设置为git下的ssh.exe。

网友评论