Skip to content

Instantly share code, notes, and snippets.

@dotLou
Created December 22, 2021 21:03
Show Gist options
  • Save dotLou/297baf0cc34031a56b9072d55b253ea2 to your computer and use it in GitHub Desktop.
Save dotLou/297baf0cc34031a56b9072d55b253ea2 to your computer and use it in GitHub Desktop.
git commit signing on mac os
1. Import GPG keys from 1password/keybase/etc. (public & private!)
2. `brew install gpg gpg2 pinentry-mac`
3. `echo "pinentry-program $(which pinentry-mac)" | tee ~/.gnupg/gpg-agent.conf`
4. Restart the agent (something like `pkill -TERM gpg-agent` and then a new terminal)
5. Test it out `echo test | gpg -e -r EMAIL_GOES_HERE | gpg -d` (replace `EMAIL_GOES_HERE` with email of target key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment