From 6814b4352b542d1cdb93b1e5bf5cabf5f05b29dc Mon Sep 17 00:00:00 2001 From: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Date: Sun, 6 Jun 2021 12:11:45 +0200 Subject: [PATCH] git-commit: add example --- pages/common/git-commit.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/git-commit.md b/pages/common/git-commit.md index 59979f651..80e1a3b1a 100644 --- a/pages/common/git-commit.md +++ b/pages/common/git-commit.md @@ -22,3 +22,7 @@ - Commit only specific (already staged) files: `git commit {{path/to/file1}} {{path/to/file2}}` + +- Commit staged files to the repository with a message while allowing the commit be empty: + +`git commit -m "{{message}}" --allow-empty`