Skip to content

Instantly share code, notes, and snippets.



Last active Apr 19, 2020
What would you like to do?
Sign commits automatically on macOS Sierra and Github Desktop
# Install GPG Tools 2 and generate your PGP keys
# Add the public key in your Github account
# Get your long id by doing: gpg --list-keys --keyid-format long
# Execute this:
# Ty
git config --global user.signingkey [LONG KEY ID] && git config --global commit.gpgsign true && git config --global gpg.program gpg2; echo 'no-tty' >> ~/.gnupg/gpg.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment