bouzuya.hatenablog.com

ぼうずやのにっき

Verified が表示されるようになった

今週くらいから GitHub に GPG Key を登録した。 Verified が表示されるようになった。合わせてパスワードマネージャーを pass https://www.passwordstore.org/ に移行しようとしている。こちらも GPG を使っている。

GPG の設定は↓のあたりを見ながら設定した。

GitHubhttps://github.com/settings/keys から設定する。 GitHub 側にも手順が書いてある。 https://help.github.com/en/github/authenticating-to-github/managing-commit-signature-verification こちらは↑と比べると鍵の管理がゆるい。

macOS の場合 (?) に git commit で↓のようなエラーが出るかもしれない。

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

https://stackoverflow.com/questions/39494631/gpg-failed-to-sign-the-data-fatal-failed-to-write-commit-object-git-2-10-0

brew install pinentry-mac
echo "pinentry-program $(which pinentry-mac)" >> ~/.gnupg/gpg-agent.conf
killall gpg-agent

↑の StackOverflow に書いてある方法で解決した。 brew のものはおそらく GPGTools/pinentry-mac


朝。 ABC154 F を復習。なぜか WA 。 mod ありの引き算がまずかった。次から今回つくったものを使おう……。


23:00 5 。