Skip to content

Commit

Permalink
fix(git-gpg): export GPG private key as an ASCII armored version
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Apr 26, 2024
1 parent ac28204 commit cecbc21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion notes/Programming/Tools/Git/GitBasicNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -975,10 +975,13 @@ gpg --full-generate-key
# List GPG keys
gpg --list-secret-keys --keyid-format=long

# Generate GPG public key string
# Export GPG public key as an ASCII armored version
gpg --armor --export <pub-keyID>
# Copy output to GitHub GPG textarea

# Export GPG private key as an ASCII armored version
# gpg --armor --export-secret-key [email protected] -w0

# Git global configuration for GPG signature commits
git config --global commit.gpgsign true
git config --global gpg.program gpg
Expand Down

0 comments on commit cecbc21

Please sign in to comment.