Skip to content

Instantly share code, notes, and snippets.

@JoonHoSon
Forked from scisco/git_gpt_tower.md
Created November 6, 2018 06:05
Show Gist options
  • Save JoonHoSon/9efd5bdf769f70ca7161c8b729d232f4 to your computer and use it in GitHub Desktop.
Save JoonHoSon/9efd5bdf769f70ca7161c8b729d232f4 to your computer and use it in GitHub Desktop.
Make git gpg work with Tower

source: https://aaronparecki.com/2016/07/29/10/git-tower

Configure your git client to always sign commits:

$ git config --global commit.gpgsign true

Try to sign a commit from the command line before trying it with Tower. Once you're able to successfully sign commits from the command line, you can set it up to work with Tower.

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

Now when you make a commit from Tower, you should be prompted to unlock your key with your passphrase from GPG Tools, and if you save it in your keychain it should continue to work seamlessly.

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