Created
February 26, 2020 20:41
-
-
Save vMarkusK/0b8207ae352aea6af8316951a63b4f76 to your computer and use it in GitHub Desktop.
GPG and GitHub
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
# Generate Key | |
$ gpg --gen-key | |
# List Keys | |
$ gpg --list-secret-keys --keyid-format LONG | |
# Show Public Key Block | |
$ gpg --armor --export F5900F8A49F4FB76 | |
# Add Key to git Config | |
$ git config --global user.signingkey F5900F8A49F4FB76 | |
# Signed Commit | |
$ git commit -S -a -m "minor changes" | |
# Enable Signing by default | |
$ git config --global commit.gpgsign true | |
# Export Key | |
$ gpg --output mygpgkey_pub.gpg --armor --export F5900F8A49F4FB76 | |
$ gpg --output mygpgkey_sec.gpg --armor --export-secret-key F5900F8A49F4FB76 | |
# Import Key | |
$ gpg --import ./mygpgkey_pub.gpg | |
# signing failed: Inappropriate ioctl for device | |
https://d.sb/2016/11/gpg-inappropriate-ioctl-for-device-errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment