Closed4
Windows に GnuPG をインストールして Git コミットに署名できるようになるまで

GPG (GnuPG) 本体と自分の鍵のインストール
winget gnupg
# 一度シェルを開きなおさないとコマンドを発見してくれない模様?
( 自分の公開鍵をとってくる ) | gpg --import
gpg --edit-key 鍵ID
# trust -> y -> 5

Git のインストール
winget git
cp <GPG 署名設定の入った .gitconfig> <$HOME>

Git に GPG のパスを教える。絶対パスじゃないといけないらしい
git config --global gpg.program "C:\Program Files (x86)\GnuPG\bin\gpg.exe"
これで Git コミットに署名がつけられる。

Yubikey の設定等、このスクラップにない設定手順(Mac):https://qiita.com/kino-ma/items/c5679997293cbbd34b34
このスクラップは2023/02/07にクローズされました