GPG Key Works Only For A Few Minutes
I use my GPG key to commit to GitHub but every time I want to commit again (for the first time in a new terminal) It asks me for a password every time.
How do I fix that I don't need to enter my password every time on my own machine.
I am using MacOS with ZSH terminal.
EDIT: I don't have a conf file. I don't know where it is located. I installed gpg with
brew install gnupg
Files inside ~./gnupg/ >> https://i.stack.imgur.com/B8pyX.png
Add two lines below in
~/.gnupg/gpg-agent.conf (Create one if you don't have one)
default-cache-ttl 34560000 max-cache-ttl 34560000
max-cache-ttl is set to a really high value - 400 days to be precise. GnuPG will now cache the passphrase for that length of time or until you next restart your machine.
This saves you from being prompted for the passphrase every single commit given the default cache time.
- → Authenticate with a cookie using laravel 5.1 and jwt
- → Finding a specific GitLab tag from PHP
- → React: How to publish page on server using React-starter-kit
- → babel-loader, webpack, ES2015 modules: "Element type is invalid"
- → Create a function-attribute of a function, which is, in its turn, a method of an object literal
- → Model Validation in laravel 5.1 not working
- → GIT fatal: loose object
- → Laravel validation required rule not working
- → Axios array map callback
- → Where does this `webpack://` come from for `webpack-dev-middleware`?
- → error when trying to modify project in laravel forge
- → GitHub Pages and Jekyll content duplication and SEO issues
- → Use Laravel repositories with Datatables