Created
November 24, 2020 09:40
-
-
Save aamsur/5535aa9bd45fcd9d8c45572d3f53a444 to your computer and use it in GitHub Desktop.
Git Commit Verified
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
# Create GPG | |
gpg --full-generate-key | |
# Your selection? 1 | |
# Key is valid for? (0) 0 | |
# Is this correct? (y/N) y | |
# Real name: Aam Surganda | |
# Email address: aam.surganda@unitedfamilyfood.com (sesuaikan dengan alamat email ketika commit) | |
# Comment: Professional Identity | |
# Show all generated GPG | |
gpg --list-secret-keys --keyid-format LONG | |
# Example output | |
/home/xxx/.gnupg/pubring.kbx | |
------------------------------- | |
sec rsa4096/C97EB56911A9ED67 2020-11-24 [SC] | |
AAAAAAABBBBBBBBBCCCCCCCCCCCC1111112222333333 | |
uid [ultimate] Aam Surganda (Git personal) <surganda@gmail.com> | |
ssb rsa4096/A0C6C77414F29DCA 2020-11-24 [E] | |
sec rsa4096/30EBAFD7E0A81FE3 2020-11-24 [SC] | |
QQQQQWWWWWWEEEEEEEERRRRRRRRRRTTTTTTTTTTTYYYY | |
uid [ultimate] Aam Surganda (Professional Identity) <aam.surganda@unitedfamilyfood.com> | |
ssb rsa4096/1A76346589BA5FC9 2020-11-24 [E] | |
# Show public key of a key (resultnya taro di GPG Github ya) | |
gpg --armor --export QQQQQWWWWWWEEEEEEEERRRRRRRRRRTTTTTTTTTTTYYYY | |
# Config git by generated key | |
git config --global user.signingkey QQQQQWWWWWWEEEEEEEERRRRRRRRRRTTTTTTTTTTTYYYY | |
git config --global commit.gpgsign true | |
git config --global gpg.program gpg | |
# Optional | |
killall gpg-agent | |
# Cara commit with signature | |
# Example : | |
git commit -m "Commit menggunakan signature" -S |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment