Skip to content

Commit d3a5ed3

Browse files
authored
Merge pull request #1850 from ottok/gpg-sign-by-default
Add tip about commit.gpgsign to automate all commits being signed
2 parents d9b20b8 + fe8a33d commit d3a5ed3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

book/07-git-tools/sections/signing.asc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,6 @@ Merge made by the 'recursive' strategy.
199199
==== Everyone Must Sign
200200

201201
Signing tags and commits is great, but if you decide to use this in your normal workflow, you'll have to make sure that everyone on your team understands how to do so.
202+
This can be achieved by asking everyone working with the repository to run `git config --local commit.gpgsign true` to automatically have all of their commits in the repository signed by default.
202203
If you don't, you'll end up spending a lot of time helping people figure out how to rewrite their commits with signed versions.
203204
Make sure you understand GPG and the benefits of signing things before adopting this as part of your standard workflow.

0 commit comments

Comments
 (0)