Skip to content

Instantly share code, notes, and snippets.

@mislav
Created September 1, 2022 15:45
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mislav/2c0b066ea15b4ed36582b69ab428d174 to your computer and use it in GitHub Desktop.
Save mislav/2c0b066ea15b4ed36582b69ab428d174 to your computer and use it in GitHub Desktop.
# you must also upload the public key as signing key to https://github.com/settings/keys
git config --global user.signingkey '~/.ssh/id_rsa'
git config --global commit.gpgsign true
git config --global gpg.format ssh
# (optional) this file enables `git log --show-signature` and contains email addresses associated with public keys
git config --global gpg.ssh.allowedsignersfile '~/.ssh/git-signers'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment