GPG Signing Shit in Git

Created on 2021-02-03T22:21:00-06:00

Return to the Index

This card can also be read via Gemini.

Unless you have a proper, GUI pinentry you need to do these. Git consumes the tty and so the console based pinentry will not work.

~/.gnupg/gpg.conf
use-agent 
pinentry-mode loopback
~/.gnupg/gpg-agent.conf
allow-loopback-pinentry

Reboot the agent:

gpg-connect-agent reloadagent /bye

Probably has severe security ramifications. RIP.

To be extra specific:

git config --global user.signingkey 

Because some distros use gpg2 now instead:

git config --global gpg.program (which gpg2)

To sign a block of commits you already made:

git rebase --exec 'git commit --amend --no-edit -n -S' -i development