Skip to content

Instantly share code, notes, and snippets.

@dotLou
Created December 22, 2021 21:05
Show Gist options
  • Save dotLou/28a208198d5625fcdeff6d24ab3499ad to your computer and use it in GitHub Desktop.
Save dotLou/28a208198d5625fcdeff6d24ab3499ad to your computer and use it in GitHub Desktop.
git commit signing with gpg keys 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)
@dotLou
Copy link
Author

dotLou commented Dec 22, 2021

Maybe not required, but I also installed gpg suite before step 2 here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment