在 Goland 里使用 GPG 签名时提示错误:

error: gpg failed to sign the data
fatal: failed to write commit object

原因居然是 Terminal 的窗口太小了~

echo "test" | gpg --clearsign
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

test
gpg: signing failed: Screen or window too small

参考

gpg failed to sign the data fatal: failed to write commit object [Git 2.10.0]