Skip to content

Instantly share code, notes, and snippets.

@hustshawn
Last active July 30, 2022 04:36
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 hustshawn/61541740c9119e9425722fd42133f49d to your computer and use it in GitHub Desktop.
Save hustshawn/61541740c9119e9425722fd42133f49d to your computer and use it in GitHub Desktop.
$HOME/. gitconfig
[user]
name = <username>
email = <email>
signingkey = <gpg-sign-key>
[core]
editor = vi
[init]
defaultBranch = main
[color]
ui = auto
[gpg]
program = gpg2
[commit]
gpgsign = true
@hustshawn
Copy link
Author

hustshawn commented Jul 30, 2022

Get the gpg signing key

gpg --list-secret-keys --keyid-format LONG

Get the last 16 chars of your key / sub-key.

@hustshawn
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment