Skip to content

Instantly share code, notes, and snippets.

@thewh1teagle
Last active February 24, 2024 00:06
Show Gist options
  • Save thewh1teagle/b581b9273e46fab988183fa02f9722e6 to your computer and use it in GitHub Desktop.
Save thewh1teagle/b581b9273e46fab988183fa02f9722e6 to your computer and use it in GitHub Desktop.
Configure GPG commit signing windows

Install https://www.gpg4win.org/

Add to %appdata%\gnupg\gpg.conf to disable GUI asking password

code %appdata%\gnupg\gpg.conf

pinentry-mode loopback
default-cache-ttl 2592000
max-cache-ttl 2592000

Add password caching

code %USERPROFILE%\.gnupg\gpg-agent.conf

default-cache-ttl 31536000
max-cache-ttl 31536000

Reload agent

gpgconf.exe --reload gpg-agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment