1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

gitで署名付きcommitが突然できなくなったときの解決方法 (備忘録)

Last updated at Posted at 2023-05-13

問題内容

これまで git で署名付き commit ができていたのに, 突然できなくなることがたびたびある.
(だいたい brew upgrade した後のタイミング)

$ git commit -S -m 'Hello'
error: gpg failed to sign the data
fatal: failed to write commit object

解決方法

gpg-agent を以下のように再起動する.

$ gpgconf --kill gpg-agent  

参考

環境

  • GPG: 2.3.8
  • Git: 2.33.0
  • macOS: 13.3.1
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?