Merge pull request #2916 from Xeleron/master

[git/en] added signed commit example
This commit is contained in:
Pratik Karki 2017-10-17 14:56:28 +05:45 committed by GitHub
commit 233aabcaa4

View File

@ -292,6 +292,10 @@ contains the changes made and a message created by the user.
# commit with a message # commit with a message
$ git commit -m "Added multiplyNumbers() function to HelloWorld.c" $ 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 # automatically stage modified or deleted files, except new files, and then commit
$ git commit -a -m "Modified foo.php and removed bar.php" $ git commit -a -m "Modified foo.php and removed bar.php"