Skip to content

Instantly share code, notes, and snippets.

@jiayuasu
Last active December 21, 2020 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jiayuasu/8bab8ecb0234dfc280264fb587fd8b01 to your computer and use it in GitHub Desktop.
Save jiayuasu/8bab8ecb0234dfc280264fb587fd8b01 to your computer and use it in GitHub Desktop.
https://github.com/pstadler/keybase-gpg-github/issues/11
For some reason I had to setup the GPG TTY variable on my bash when I tried to sign my commit (i.e. -S flag) because of passphrase, which is new to me since I usually have the passphrase prompt within my terminal, so who knows, might be a new GPG version.
Anyway, fixed it with:
GPG_TTY=$(tty)
export GPG_TTY
Might be worth adding it to the README.md under common issues and/or what not.
Cache GitHub password for 15 minutes
git config --global credential.helper cache
... which tells Git to keep your password cached in memory for (by default) 15 minutes. You can set a longer timeout with:
git config --global credential.helper "cache --timeout=3600"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment