mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-29 18:23:08 +03:00
Merge pull request #2916 from Xeleron/master
[git/en] added signed commit example
This commit is contained in:
commit
233aabcaa4
@ -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