diff options
author | Pratik Karki <predatoramigo@gmail.com> | 2017-10-17 14:56:28 +0545 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-17 14:56:28 +0545 |
commit | 233aabcaa42d89d3cfa60dd181011d5ce7a708c3 (patch) | |
tree | 72032018093f55651376f56c5ceaa5a8bbd8d7b3 | |
parent | 8612e00b9f26feafcb531609f0ab0ec61ea06dd0 (diff) | |
parent | 53604f0358c7ae771ce39254a7fe7588f2aceac5 (diff) |
Merge pull request #2916 from Xeleron/master
[git/en] added signed commit example
-rw-r--r-- | git.html.markdown | 4 |
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" |