【问题标题】:Git commit failed : Couldn't load public keyGit 提交失败:无法加载公钥
【发布时间】:2022-10-05 04:36:26
【问题描述】:

我不能承诺 git 。每次我尝试它都会显示此消息。

error: Couldn\'t load public key 632EA751459C3A1A: No such file or directory?

fatal: failed to write commit object

我正在使用 Gpg4Win。

  • 也遇到了这个问题,最近更新了 Gpg4Win。它以前工作过。 :shrug: 如果你解决了这个问题,我很想知道它需要什么。假设 gnupg 找不到它创建的发布。

标签: git gnupg gpg-signature


【解决方案1】:

我相信我解决了我的问题,也许对你来说也是一样的。出于某种原因,我在本地 Git 配置中将 gpg.format 值设置为“SSH”。

只需从我的 ~/.gitconfig 中删除它,Gpg4Win 就可以解析密钥的正确位置。

【讨论】:

    【解决方案2】:

    ~/.gitconfig 中删除format = ssh

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-07-12
      • 2012-04-14
      • 2011-11-27
      • 2015-05-14
      • 2013-07-22
      • 1970-01-01
      • 2014-01-31
      • 2011-10-05
      相关资源
      最近更新 更多