Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Signed git commits with Git Tower on Catalina

Original article: and



Create a new GPG key on ore transfer your old one

Set up Git to sign all commits

$ gpg --list-secret-keys --keyid-format LONG
sec   rsa4096/E5W5QU4O429GHPWZ 2016-04-06 [expires: 2032-04-02]
uid                 [ultimate] Dominik Wilkowski (dominikwilkowski) <>
ssb   rsa4096/JHAS653JHASD76T3 2016-04-06 [E]

$ git config --global user.signingkey E5W5QU4O429GHPWZ
$ git config --global commit.gpgsign true

Test that comminting from cli works

$ git commit -S -m "testing signed commits"

Add no-tty to your GPG configuration, to allow Tower to use it

echo no-tty >> ~/.gnupg/gpg.conf

You'll need to specify the absolute path to the gpg program in order for Tower to be able to find it

git config --global gpg.program /usr/local/bin/gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.