Sourcetree 拉取推送时报错:git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetc

完整错误信息

Sourcetree 拉取推送时报错

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --tags origin
The host key is not cached for this server: gitee.com (port 22)
You have no guarantee that the server is the computer you think it is.
The server's ssh-ed25519 key fingerprint is: ssh-ed25519 255 SHA256:+ULzij2u6666eWYFTw1W4ErYG/aepHL9527PAUCoV37
If you trust this host, enter "y" to add the key to

处理方法:配置一下SSH客户端

选择 OpenSSH

选择我们已经生成好的密钥

完成后再试着拉取一次

同时:gitee.com 的指纹会自动添加到 C:\Users\用户名\.ssh\known_hosts

至于 ed25519 公钥、密钥如何生成 gitee 官方有例子。

参考资料

gitee 产品文档:怎样生成公钥

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值