diff --git a/pages.de/common/git-commit.md b/pages.de/common/git-commit.md index 2eb6e12b2..359ff04ca 100644 --- a/pages.de/common/git-commit.md +++ b/pages.de/common/git-commit.md @@ -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` diff --git a/pages/common/git-commit.md b/pages/common/git-commit.md index 40c27f091..c6258c53e 100644 --- a/pages/common/git-commit.md +++ b/pages/common/git-commit.md @@ -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`