mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
git-commit: add gpg-sign example
This commit is contained in:
parent
30e8740521
commit
155df72786
2 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,10 @@
|
|||
|
||||
`git commit -a -m "{{nachricht}}"`
|
||||
|
||||
- Committe alle gestagten Dateien und [S]igniere sie mit dem in `~/.gitconfig` definierten GPG Schlüssel:
|
||||
|
||||
`git commit -S -m "{{nachricht}}"`
|
||||
|
||||
- Ersetze den letzten Commit mit den gerade auf dem Stage liegenden Änderungen:
|
||||
|
||||
`git commit --amend`
|
||||
|
|
|
@ -15,6 +15,10 @@
|
|||
|
||||
`git commit -a -m "{{message}}"`
|
||||
|
||||
- Commit staged files and [S]ign them with the GPG key defined in `~/.gitconfig`:
|
||||
|
||||
`git commit -S -m "{{message}}"`
|
||||
|
||||
- Update the last commit by adding the currently staged changes, changing the commit's hash:
|
||||
|
||||
`git commit --amend`
|
||||
|
|
Loading…
Add table
Reference in a new issue