Skip to content

Instantly share code, notes, and snippets.

@thewellington
Forked from LeonardoCardoso/GPG-Tower
Created December 7, 2021 18:36
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 thewellington/4c402d5c3d3670fb687fd91ee80a1f68 to your computer and use it in GitHub Desktop.
Save thewellington/4c402d5c3d3670fb687fd91ee80a1f68 to your computer and use it in GitHub Desktop.
How to setup Tower to use the GPG Suite

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
git config --global gpg.program /usr/local/MacGPG2/bin/gpg2
git config --global user.signingkey A6B167E1 
git config --global commit.gpgsign true 
  1. Add this line to ~/.gnupg/gpg-agent.conf
pinentry-program /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac
  1. Add this line to ~/.gnupg/gpg.conf
no-tty
# GPG on Tower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment