Skip to content

Instantly share code, notes, and snippets.

@rafaelmaeuer
Last active August 22, 2022 14:49
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/6f6fdeec7879075a1bbc2a5df9e4cf6f to your computer and use it in GitHub Desktop.
Save rafaelmaeuer/6f6fdeec7879075a1bbc2a5df9e4cf6f to your computer and use it in GitHub Desktop.
# Option 1 (local repo-wide configuration):
# https://confluence.atlassian.com/sourcetreekb/setup-gpg-to-sign-commits-within-sourcetree-765397791.html
# Option 2 (global system-wide configuration):
# https://docs.github.com/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key
# list gpg signing keys
gpg --list-secret-keys --keyid-format=long
# global add keyid of gpg-key
git config --global user.signingkey <keyid>
# global set commit signing to true
git config --global commit.gpgsign true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment