-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(git-gpg): export GPG private key as an ASCII armored version
- Loading branch information
1 parent
ac28204
commit cecbc21
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|