Last active
December 2, 2022 14:04
-
-
Save rafaelmaeuer/fb66f6293a1ef9f4b03bd5e5526aeae1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (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