You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Brandon Shoop edited this page Jun 2, 2026
·
1 revision
cache-gpg
Warms the GPG agent cache by performing a throwaway clearsign operation.
Usage
cache-gpg
Why
Git commit signing prompts for your GPG passphrase when the agent cache is cold. Running cache-gpg before a signing flow pre-unlocks the key so the subsequent git commit -S doesn't interrupt with a passphrase prompt.
What it does
Pipes the string "test" through gpg --clearsign and discards the output. This is enough to unlock the key and populate the agent cache for the configured cache TTL.
Requirements
gpg must be installed and a signing key configured