Skip to content

Instantly share code, notes, and snippets.

@toby1991
Forked from LeonardoCardoso/GPG-Tower
Created March 17, 2025 10:05
Show Gist options
  • Select an option

  • Save toby1991/c12225702defed5a306522e700991ccc to your computer and use it in GitHub Desktop.

Select an option

Save toby1991/c12225702defed5a306522e700991ccc to your computer and use it in GitHub Desktop.

Revisions

  1. @LeonardoCardoso LeonardoCardoso revised this gist Mar 21, 2017. 2 changed files with 1 addition and 2 deletions.
    1 change: 1 addition & 0 deletions GPG-Tower
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    # GPG on Tower
    2 changes: 0 additions & 2 deletions GPG on Tower → README.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,3 @@
    # GPG on Tower

    ## Setup

    *No need* for homebrew or anything like that. Works with https://www.git-tower.com and the command line.
  2. @LeonardoCardoso LeonardoCardoso renamed this gist Mar 21, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @LeonardoCardoso LeonardoCardoso created this gist Mar 21, 2017.
    23 changes: 23 additions & 0 deletions GPG on Tower.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    # GPG on Tower

    ## 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**.
    1. Create or import a key -- see below for https://keybase.io
    1. Run `gpg --list-secret-keys` and look for `sec`, use the key ID for the next step
    1. 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
    ```