Git: GPG signing commits (#863)
This commit is contained in:
parent
c9279b9858
commit
537771aeab
|
@ -89,7 +89,7 @@ Misc
|
||||||
|
|
||||||
git rebase 76acada^
|
git rebase 76acada^
|
||||||
|
|
||||||
## Misc
|
### Misc
|
||||||
|
|
||||||
# get current sha1 (?)
|
# get current sha1 (?)
|
||||||
git show-ref HEAD -s
|
git show-ref HEAD -s
|
||||||
|
@ -136,3 +136,13 @@ Misc
|
||||||
git log --grep="fixes things" # search in commit messages
|
git log --grep="fixes things" # search in commit messages
|
||||||
git log -S"window.alert" # search in code
|
git log -S"window.alert" # search in code
|
||||||
git log -G"foo.*" # search in code (regex)
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue