Some issues with git and gpg


Read here if you want to stumble upon some interesting URLs (my repo)

Key takeaways:

make sure to configure your username, email, and gpg private key, sometimes even gpg version

git config --global --list

you can get some info here about your key, after generating your key

gpg --list-secret-keys --keyid-format=long

if you got that error while executing gpg -a --export your@email then try these commands instead, in order to get your public key to provide to github (or gitlab)

gpg --armor --export 7E98CBC76F9B33F8 to get pub key
OR gpg --export -a  5E0E8CB44844126F (key id)

Make sure to

export GPG_TTY=$(tty)

If shit still happens

see if any errors here

systemctl --user status gpg-agent

and try my last resort

❯ cat  ~/.gnupg/gpg-agent.conf
pinentry-program /usr/bin/pinentry-curses

Facebook Comments

Leave a Reply