summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarko Cubela <m.cubela97@htl-ottakring.ac.at>2017-10-17 09:38:17 +0200
committerMarko Cubela <m.cubela97@htl-ottakring.ac.at>2017-10-17 09:38:17 +0200
commit53604f0358c7ae771ce39254a7fe7588f2aceac5 (patch)
tree7ba10f1d549579f3d640b6793b20cc4d13f9a94d
parent340a7b6d7812ef5ba1903983a7cd3f5cc3385288 (diff)
added signed commit example
-rw-r--r--git.html.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/git.html.markdown b/git.html.markdown
index 088c109f..582f8863 100644
--- a/git.html.markdown
+++ b/git.html.markdown
@@ -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"