LoginSignup
0
0

More than 1 year has passed since last update.

WSLからGit for Windowsに同梱されたGPGを使ってコミットに署名する

Posted at

Git for WindowsにはGnuPGが同梱されており、Git Bashから使うことができる。普段Windows上でコミットに署名している場合はこのGPGを使っているはずだ。鍵はC:\Users\<user>\.gnupgディレクトリに保管されている。

この鍵を使ってWSL上でGPG署名をしたい場合、WSLで次の設定をすればよい。

git config --global gpg.program '/mnt/c/Program Files/Git/usr/bin/gpg.exe'
0
0
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
0
0