git-commit: add gpg-sign example

beep
Simon Marcher 2021-07-15 19:01:00 +02:00 committed by marchersimon
parent 30e8740521
commit 155df72786
2 changed files with 8 additions and 0 deletions

View File

@ -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`

View File

@ -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`