Skip to content

Commit f03fc09

Browse files
updated readme to include some bits about gpg setup
1 parent aa3354c commit f03fc09

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,4 +611,22 @@ detect-secrets scan --update .secrets.baseline
611611
If we need to update the excluded files (these are saved in the .secrets.baseline file) do this:
612612
```bash
613613
detect-secrets -v scan --update .secrets.baseline --exclude-files "plugin/i18n/v1Resources/|plugin/i18n/v2Resources/|(.*test.*)|(vendor)|(go.sum)|bin/"
614+
```
615+
616+
617+
# Commit Signing
618+
Always a good idea to sign commits, even if it takes a bit to setup.
619+
620+
1. `git config --global commit.gpgsign true` Enabled signed commits
621+
2. `gpg --full-generate-key` Create a GPG key to sign commits with (use your github email)
622+
3. `git commit --message="THE MESSAGE"` is your normal commit, but should now be signed! You may be prompted for a password
623+
4. `git log --show-signature` confirm its signed.
624+
625+
## Windows setup
626+
627+
In windows GPG pops up an annoying window for password prompting. Following [Using Command-Line Passphrase Input for GPG with Git](https://betakuang.medium.com/using-command-line-passphrase-input-for-gpg-with-git-for-windows-f78ae2c7cd2e) to be prompted on the CLI
628+
629+
```
630+
$> cat ~/.gnupg/gpg-agent.conf
631+
allow-loopback-pinentry
614632
```

0 commit comments

Comments
 (0)