Skip to content

Instantly share code, notes, and snippets.

@neelindresh
neelindresh / GPG_key_config.md
Created October 18, 2022 12:51 — forked from saradindusengupta/GPG_key_config.md
Git Repository-wise configuration Guide for verified signed commit with GPG in GitHub

Git Repository-wise configuration Guide for verified signed commit with GPG in GitHub

1. Generate GPG keys

  1. Download and install the GPG command line tools for your operating system. We generally recommend installing the latest version for your operating system.
  2. Open Git Bash.
  3. Generate a GPG key pair. If you are not on version 2.1.17 or greater then
    1. gpg --default-new-key-algo rsa4096 --gen-key
  4. Enter your user ID information.
  5. Type a secure passphrase. This is a must.