Skip to content

Instantly share code, notes, and snippets.

@viswanathkgp12
Created June 10, 2020 14: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 viswanathkgp12/7a6941a20a886c7f211030cb282346e5 to your computer and use it in GitHub Desktop.
Save viswanathkgp12/7a6941a20a886c7f211030cb282346e5 to your computer and use it in GitHub Desktop.

Generate a GPG Key:

gpg --generate-key

List Key:

gpg --list-keys

Display in full:

gpg --armor --export <pubkey>

Open Github->Settings->GPG Keys->Copy and Paste

GIT Config

nano ~/.gitconfig

In the User section,

[user]

signingkey = <signing-key>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment