mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
added signed commit example
This commit is contained in:
parent
340a7b6d78
commit
53604f0358
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user