1
0
mirror of synced 2025-12-25 02:17:36 -05:00

Added quotation marks

When signing commits with git commit. User needs to specify the commit message within quotation marks.
This commit is contained in:
Leon
2021-11-20 20:56:37 +00:00
committed by GitHub
parent 1f86d4b9e2
commit 762b94592b

View File

@@ -36,7 +36,7 @@ If you have multiple keys or are attempting to sign commits or tags with a key t
1. When committing changes in your local branch, add the -S flag to the git commit command:
```shell
$ git commit -S -m <em>your commit message</em>
$ git commit -S -m <em>"your commit message"</em>
# Creates a signed commit
```
2. If you're using GPG, after you create your commit, provide the passphrase you set up when you [generated your GPG key](/articles/generating-a-new-gpg-key).