1
0
Fork 0
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:
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`