以前我会通过执行以下操作来压缩分支中的所有提交:-
git rebase -i f41790727e8c136d9987d5099cd01429459d8065
但是,如果我在存储库上启用 GPG 签名。
Git 配置条目
[commit]
gpgsign = true
然后我收到以下错误。
gpg: cannot open tty `no tty': No such file or directory
error: gpg failed to sign the data
fatal: failed to write commit object
Could not apply f608db8... Testing
我已经尝试了如何在交互式变基挤压后保留提交 gpg 签名中的建议?
git rebase -i --gpg-sign=<my-email> f41790727e8c136d9987d5099cd01429459d8065
失败并出现相同的错误。
我真的坚持如何解决这个问题。您必须能够通过 GPG 签名来变基。
可能与偏离搜索引擎的人有关。由于奇怪的原因,我收到了以下错误。
gpg: cannot open tty `no tty': No such file or directory
error: gpg failed to sign the data
fatal: failed to write commit object
Could not apply 94e5xxxx... xxxxxx
我设置了一个squash
序列,drop
在尝试变基时失败,我得到了这个错误。选中git status
,您可能会在舞台上发现失败的更改。对我来说,这个问题与gpg
无关,但与失败的git rebase --continue
有关;这个错误误导了我。