Created
April 15, 2019 11:32
-
-
Save repodevs/37563ba3db42bab03a5919b61db2a8a2 to your computer and use it in GitHub Desktop.
Setup GPG Key macOS from keybase.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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