当前位置: 首页 > news >正文

【Bug经验分享】SourceTree用户设置必须被修复/SSH 主机密钥未缓存(踩坑)

在这里插入图片描述

文章目录

    • 配置错误问题原因
    • 配置错误问题解决
    • 主机密钥缓存问题原因
    • 主机密钥缓存问题解决

更多相关内容可查看

配置错误问题原因

电脑太卡,曾多次强制关机,在关机前没有关闭SourceTree,导致配置错误等问题

配置错误问题解决

方式一:重置配置,自动修复(如果项目不多可选择这种方式,避免更多的麻烦)

方式二:手动修复(适用项目多,不想重新搞的)

  • 找到sourcetree缓存所在的对应路径:
...\AppData\Local\Atlassian\SourceTree.exexxxx

在这里插入图片描述

  • 删除该路径下Composition.cache和user.config文件(建议把多个缓存文件的都删掉)
    -在这里插入图片描述

  • 重新启动sourcetree,此时会自动重新生成Composition.cache和user.config文件

主机密钥缓存问题原因

删掉了对应的缓存,如果之前配置的主机密钥的缓存也被删掉了,所以在push远端仓库的时候,SourceTree会报一个类似如下的问题

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --no-tags origin
The host key is not cached for this server:
gitee.xxx.work (port xxx)
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 xxxxxxxxxxxxxxxxxxxxxxxxx+mpQE
If you trust this host, enter "y" to add the key to Plink's

主机密钥缓存问题解决

方式一:打开sourcetree->工具->选项,选择openSSH,重新提交试一下
在这里插入图片描述

方式二:Sourcetree会自带plink,用命令行切换到plink.exe所在路径,并执行plink git@github.com 命令,根据提示输入y 回车,问题就解决了。本质上是plink问玩家要y还是n,但是在Sourcetree的错误提示那里不能输入。


文章转载自:
http://breaking.isnyv.cn
http://backhand.isnyv.cn
http://bifer.isnyv.cn
http://baseless.isnyv.cn
http://avengingly.isnyv.cn
http://biosonar.isnyv.cn
http://bessy.isnyv.cn
http://catfight.isnyv.cn
http://bundu.isnyv.cn
http://ball.isnyv.cn
http://biotic.isnyv.cn
http://ballooner.isnyv.cn
http://adlerian.isnyv.cn
http://aeolianly.isnyv.cn
http://chippie.isnyv.cn
http://chechako.isnyv.cn
http://antilepton.isnyv.cn
http://asme.isnyv.cn
http://brucellergen.isnyv.cn
http://aigret.isnyv.cn
http://aesop.isnyv.cn
http://aberglaube.isnyv.cn
http://boxthorn.isnyv.cn
http://acclimation.isnyv.cn
http://atonement.isnyv.cn
http://catspaw.isnyv.cn
http://absorbant.isnyv.cn
http://chorioallantois.isnyv.cn
http://almanac.isnyv.cn
http://anadolu.isnyv.cn
http://www.dtcms.com/a/175996.html

相关文章:

  • 【论文阅读】在调制分类中针对对抗性攻击的混合训练时和运行时防御
  • 如何减少锁竞争并细化锁粒度以提高 Rust 多线程程序的性能?
  • 【国产化】在银河麒麟ARM环境下离线安装docker
  • K8S - 金丝雀发布实战 - Argo Rollouts 流量控制解析
  • 记一次SSE数据被缓存导致实时性失效问题
  • Missashe考研日记-day34
  • TPS40210的回路分析及干扰源解析
  • 利用并行处理提高LabVIEW程序执行速度
  • 禁止idea联网自动更新通过防火墙方式
  • 算法设计与分析实验题-序列对齐
  • 浅聊find_package命令的搜索模式(Search Modes)
  • UniAppx 跳转Android 系统通讯录
  • spark基本介绍
  • 【Java ee 初阶】多线程(9)上
  • 深入浅出之FPN (Feature Pyramid Networks for Object Detection)
  • Spark-core-RDD入门
  • Clojure 学习笔记
  • Dify平台下基于搜索引擎SearXNG 和文本转换工具Marp的PPT助手搭建
  • Flutter——数据库Drift开发详细教程(五)
  • Ubuntu也开始锈化了?Ubuntu 计划在 25.10 版本开始引入 Rust Coreutils
  • 深度学习:智能车牌识别系统(python)
  • 力扣1812题解
  • 电商双十一美妆数据分析(代码)
  • 【笔记】当个自由的书籍收集者从canvas得到png转pdf
  • win11指定Microsoft Print To PDF的输出路径(电子书djvu转pdf输出路径)
  • java每日精进 5.07【框架之数据权限】
  • Zsh + iTerm2搭配使用教学,非常舒服,macOS
  • java CompletableFuture 异步编程工具用法2
  • SpringBoot学生宿舍管理系统开发实现
  • 中间件-RocketMQ