From f0c02cbbbac91fbe63ff9874f1b8b04bc1d704e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sih=20S=C3=AEng-h=C3=B4ng=E8=96=9B=E4=B8=9E=E5=AE=8F?= Date: Tue, 5 Nov 2024 12:02:29 +0800 Subject: [PATCH] Sign all tags by default Refer: https://stackoverflow.com/a/56979390 --- data/reusables/gpg/set-auto-sign.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/reusables/gpg/set-auto-sign.md b/data/reusables/gpg/set-auto-sign.md index 04385ba48590..7246571da029 100644 --- a/data/reusables/gpg/set-auto-sign.md +++ b/data/reusables/gpg/set-auto-sign.md @@ -1,7 +1,8 @@ -1. Optionally, to configure Git to sign all commits by default, enter the following command: +1. Optionally, to configure Git to sign all commits and tags by default, enter the following command: ```shell git config --global commit.gpgsign true + git config --global tag.gpgSign true ``` For more information, see "[AUTOTITLE](/authentication/managing-commit-signature-verification/signing-commits)."