Git: GPG signing commits (#863)

This commit is contained in:
Bez Hermoso 2018-11-16 11:49:59 -08:00 committed by chad d
parent c9279b9858
commit 537771aeab
1 changed files with 11 additions and 1 deletions

View File

@ -89,7 +89,7 @@ Misc
git rebase 76acada^
## Misc
### Misc
# get current sha1 (?)
git show-ref HEAD -s
@ -136,3 +136,13 @@ Misc
git log --grep="fixes things" # search in commit messages
git log -S"window.alert" # search in code
git log -G"foo.*" # search in code (regex)
## GPG Signing
git config set user.signingkey <GPG KEY ID> # Sets GPG key to use for signing
git commit -m "Implement feature Y" --gpg-sign # Or -S, GPG signs commit
git config set commit.gpgsign true # Sign commits by default
git commit -m "Implement feature Y" --no-gpg-sign # Do not sign