From 84df3c982b6d208123cda93bf23ff1cb4a17c058 Mon Sep 17 00:00:00 2001 From: bagginslin <51952061+bagginslin@users.noreply.github.com> Date: Sun, 4 Apr 2021 12:59:11 +0000 Subject: [PATCH] git-commit: add --file example (#5676) --- pages/common/git-commit.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/common/git-commit.md b/pages/common/git-commit.md index 78447a20c..59979f651 100644 --- a/pages/common/git-commit.md +++ b/pages/common/git-commit.md @@ -7,6 +7,10 @@ `git commit -m "{{message}}"` +- Commit staged files with a message read from a file: + +`git commit --file {{path/to/commit_message_file}}` + - Auto stage all modified files and commit with a message: `git commit -a -m "{{message}}"` @@ -17,4 +21,4 @@ - Commit only specific (already staged) files: -`git commit {{path/to/my/file1}} {{path/to/my/file2}}` +`git commit {{path/to/file1}} {{path/to/file2}}`