added signed commit example

This commit is contained in:
Marko Cubela 2017-10-17 09:38:17 +02:00
parent 340a7b6d78
commit 53604f0358
No known key found for this signature in database
GPG Key ID: 62A309255173AAD5

View File

@ -292,6 +292,10 @@ contains the changes made and a message created by the user.
# commit with a message
$ git commit -m "Added multiplyNumbers() function to HelloWorld.c"
# signed commit with a message (user.signingkey must have been set
# with your GPG key e.g. git config --global user.signingkey 5173AAD5)
$ git commit -S -m "signed commit message"
# automatically stage modified or deleted files, except new files, and then commit
$ git commit -a -m "Modified foo.php and removed bar.php"