git以及TortoiseGit使用
1、下载安装git
2、生成ssh
git config --global user.name "yangjianliang"
配置用户名
git config --global user.email "[email protected]"
配置邮箱
ssh-****** -t rsa -C "[email protected]"
生成公钥和私钥
按3次Enter,
不需要设置名称与密码
查看公钥
路径是C:\Users\Administrator\.ssh pub文件
增加ssh公钥
3、tortoiseGit下载地址:https://download.tortoisegit.org/tgit/ 包括语言包
Git安装:https://www.cnblogs.com/xiuxingzhe/p/9300905.html
Git生成秘钥及GitLab配置: http://www.cnblogs.com/xiuxingzhe/p/9303278.html
https://www.cnblogs.com/xiuxingzhe/p/9312929.html
参考文章
4、TortoiseGit连接github出现disconnected no supported错误解决办法
TortoiseGit连接github
git bash连接正常,但是TortoiseGit在push时提【disconnected no supported authentication methods available(server sent: publickey) 】
【解决办法】
如图所示,修改TortoiseGit->Setting->NetWork下的SSH client目录结构即可。
注意:必须勾选Enable Proxy Server ,否则保存不了。