Skip to content

Instantly share code, notes, and snippets.

@mverteuil
Forked from lucko/auto-sign-commits-mac.md
Created October 25, 2018 20:48
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 mverteuil/3409092b6a063ea46c7fa67c0849aa79 to your computer and use it in GitHub Desktop.
Save mverteuil/3409092b6a063ea46c7fa67c0849aa79 to your computer and use it in GitHub Desktop.
Auto-sign commits with IntelliJ on MacOS

Run:

  • brew install gnupg gnupg2 pinentry-mac
  • git config --global user.signingkey <key>
  • git config --global commit.gpgsign true
  • git config --global gpg.program gpg

Followed by:

  • nano ~/.gnupg/gpg.conf
no-tty
  • nano ~/.gnupg/gpg-agent.conf
pinentry-program /usr/local/bin/pinentry-mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment