sign commit with pgp
We can sign our commit with PGP to get verification that it was committed by us. On github we would also get a green "Verified" check mark in our commit.
Make sure you have a key that matched the email that you used for the commit. (eg:
[email protected]
add
-S
flag when you want to sign the commit$ git commit -S -m "your commit message"
# Creates a signed commit
or add enable it by default
Tell git which key to use
git config --global user.signingkey ABC123
git config --global commit.gpgsign true
If you are having issue,
GIT_TRACE=1
with your git commentGIT_TRACE=1 git commit -S -m "your commit message"
Last modified 1yr ago