1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-27 08:37:36 +02:00

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

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"