Finish GPG key setup
christopher-francisco opened this issue · comments
Copied from readme:
- Copying the key to clipboard
$ gpg --list-secret-keys --keyid-format LONG
$ gpg --armor --export FINGERPRINT | pbcopy
need to get the FINGERPRINT from the output of list-secret-keys
- Install GPG CLI tool
brew install gpg2
- Create the key with a size of 4096
$ gpg --full-generate-key
- Add this to
~/.zshrc.aliases
export GPG_TTY=$(tty)
- Get the key ID, print key and add to github
$ gpg --list-secret-keys --keyid-format LONG
$ gpg --armor --export <key>
- Modify
.gitconfig.[local|enterprise]
and add
[user]
signingkey = <key>
[commit]
gpgsign = true