完整错误信息
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 官方有例子。