Skip to content

Instantly share code, notes, and snippets.

@tknv
Created November 17, 2016 17:28
Show Gist options
  • Save tknv/43604e851a371949343b78261c48f190 to your computer and use it in GitHub Desktop.
Save tknv/43604e851a371949343b78261c48f190 to your computer and use it in GitHub Desktop.
~/.gnupg/gpg-agent.conf
default-cache-ttl 28800
# 8 hours
pinentry-program /usr/bin/pinentry-curses
allow-loopback-pinentry
@FradSer
Copy link

FradSer commented Nov 9, 2020

Try gpg-connect-agent reloadagent /bye to reload agent.

@PaulRBerg
Copy link

PaulRBerg commented Nov 11, 2020

I want to use gpg signing in git and set a very long passphrase cache, but for some reason git doesn't pick up the settings I listed in ~/.gnupg/gpg-agent.conf:

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

Also my global .gitconfig file:

[commit]
	gpgSign = true

What am I missing?

Update: I posted this as a question on StackOverflow.

@marcofranssen
Copy link

I have provided you with my solution. I'm prompted by the gpg agent once an hour to provide my credentials for the key.

@tknv
Copy link
Author

tknv commented Nov 12, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment