电脑第一次安装git

  1. git 下载地址
    https://git-scm.com/download/win
    image.png
  2. 安装 git
    一直下一步安装
  3. 安装 tortoisegit
    下载地址:https://tortoisegit.org/download/
    下载中文包:https://tortoisegit.org/download/
    image.png

安装:
一直下一步

  1. 绑定远程仓库
    4.1 设置秘钥
    https://www.cnblogs.com/xiuxingzhe/p/9303278.html
    如果找不到秘钥
    https://www.cnblogs.com/tzxy/p/11719746.html
    git提醒 No supported anuthentication methods avaliable (server sent: publickey)
    解决办法:https://blog.csdn.net/xc917563264/article/details/80533734

报错:Disconnected no supported authentication methods available(server sent: publickey)

image.png

解决:将客户端程序替换为git的ssh.exe的程序,这样在推送时会自动加载本地公钥,服务器就能验证通过了

image.png

你可能感兴趣的:(电脑第一次安装git)