Skip to content

Commit 9da37fe

Browse files
sgngitster
authored andcommitted
Documentation: reword commit --no-gpg-sign
Merge with --gpg-sign option, and clarify that --no-gpg-sign also override earlier --gpg-sign. Signed-off-by: Đoàn Trần Công Danh <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ae06ba6 commit 9da37fe

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Documentation/git-commit.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,12 @@ changes to tracked files.
348348

349349
-S[<keyid>]::
350350
--gpg-sign[=<keyid>]::
351+
--no-gpg-sign::
351352
GPG-sign commits. The `keyid` argument is optional and
352353
defaults to the committer identity; if specified, it must be
353-
stuck to the option without a space.
354-
355-
--no-gpg-sign::
356-
Countermand `commit.gpgSign` configuration variable that is
357-
set to force each and every commit to be signed.
354+
stuck to the option without a space. `--no-gpg-sign` is useful to
355+
countermand both `commit.gpgSign` configuration variable, and
356+
earlier `--gpg-sign`.
358357

359358
\--::
360359
Do not interpret any more arguments as options.

0 commit comments

Comments
 (0)