Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@repodevs
Created April 15, 2019 11:32
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 repodevs/37563ba3db42bab03a5919b61db2a8a2 to your computer and use it in GitHub Desktop.
Save repodevs/37563ba3db42bab03a5919b61db2a8a2 to your computer and use it in GitHub Desktop.
Setup GPG Key macOS from keybase.io
## Download first your keybase-private.key and keybase-public.key
gpg --allow-secret-key-import --import keybase-private.key
gpg --import keybase-public.key
## check list gpg
gpg --list-secret-keys
## fix io error
export GPG_TTY=$(tty)
## test message with sign
echo "test" | gpg --clearsign
## config git with gpg key
git config --global user.signingkey 32C064EA1713F9902ACF6B2B96A3FF2F38AF394C
git config --global commit.gpgsign true
## sign commit with
# git commit -S -m 'your message'
## check signed commit with
# git log --show-signature -1
## reference
# https://www.keybits.net/post/import-keybase-private-key/
# https://github.com/pstadler/keybase-gpg-github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment