Skip to content

Instantly share code, notes, and snippets.

@rafaelmaeuer
Last active December 2, 2022 14:04
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 rafaelmaeuer/fb66f6293a1ef9f4b03bd5e5526aeae1 to your computer and use it in GitHub Desktop.
Save rafaelmaeuer/fb66f6293a1ef9f4b03bd5e5526aeae1 to your computer and use it in GitHub Desktop.
# (Optional) unset previous configuration
git config --global --unset gpg.format
# List all PGP Keys
gpg --list-secret-keys --keyid-format=long
# ------------------------------------
# sec 4096R/3AA5C34371567BD2 2016-03-10 [expires: 2017-03-10]
# uid Hubot <hubot@example.com>
# Set signing key by key-id
git config --global user.signingkey 3AA5C34371567BD2
# Enable git commit signing by default
git config --global commit.gpgsign true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment