Skip to content

Instantly share code, notes, and snippets.

@roustem
Last active March 28, 2020 19:11
Show Gist options
  • Save roustem/b61bdff72f39dcb7d078380187a34c6b to your computer and use it in GitHub Desktop.
Save roustem/b61bdff72f39dcb7d078380187a34c6b to your computer and use it in GitHub Desktop.
# Export GPG key to `key.asc` file and then import
gpg --import key.asc
# or add --pinentry-mode if there is ap problem with entering the password
# gpg --import --pinentry-mode loopback key.asc
git config --global commit.gpgsign true
git config --global user.signingkey E25C1E01F3A98447
git config --global gpg.program /usr/bin/gpg
git config --global user.email [email protected]
git config --global user.name Roustem
# Debugging gpg signing:
echo “Test” | gpg --clear-sign
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment