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

[复制链接]
发表于 2025-9-17 09:12:32 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×



更多相关内容可检察
设置错误题目缘故原由

电脑太卡,曾多次欺压关机,在关机前没有关闭SourceTree,导致设置错误等题目
设置错误题目办理

方式一:重置设置,主动修复(如果项目不多可选择这种方式,避免更多的贫困)
方式二:手动修复(实用项目多,不想重新搞的)


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



  • 删除该路径下Composition.cache和user.config文件(发起把多个缓存文件的都删掉)
    -

  • 重新启动sourcetree,此时会主动重新天生Composition.cache和user.config文件
主秘密钥缓存题目缘故原由

删掉了对应的缓存,如果之前设置的主秘密钥的缓存也被删掉了,所以在push远端堆栈的时间,SourceTree会报一个类似如下的题目
  1. git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --no-tags origin
  2. The host key is not cached for this server:
  3. gitee.xxx.work (port xxx)
  4. You have no guarantee that the server is the computer you
  5. think it is.
  6. The server's ssh-ed25519 key fingerprint is:
  7. ssh-ed25519 255 xxxxxxxxxxxxxxxxxxxxxxxxx+mpQE
  8. If you trust this host, enter "y" to add the key to Plink's
复制代码
主秘密钥缓存题目办理

方式一:打开sourcetree->工具->选项,选择openSSH,重新提交试一下

方式二:Sourcetree会自带plink,用下令行切换到plink.exe所在路径,并实行plink [email protected] 下令,根据提示输入y 回车,题目就办理了。本质上是plink问玩家要y照旧n,但是在Sourcetree的错误提示那里不能输入。
回复

使用道具 举报

登录后关闭弹窗

登录参与点评抽奖  加入IT实名职场社区
去登录
快速回复 返回顶部 返回列表