From 155df72786a50f53ed1b75684e39d5664c64872e Mon Sep 17 00:00:00 2001 From: Simon Marcher Date: Thu, 15 Jul 2021 19:01:00 +0200 Subject: [PATCH] git-commit: add gpg-sign example --- pages.de/common/git-commit.md | 4 ++++ pages/common/git-commit.md | 4 ++++ 2 files changed, 8 insertions(+) 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`