From 4057b76db696ef36a5f5294b92cba64e1d458ca2 Mon Sep 17 00:00:00 2001 From: Ivan Aracki Date: Thu, 6 Jun 2019 11:07:20 +0200 Subject: [PATCH] git commit: add example for committing specific files (#3090) --- 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 df41d22000..73e18c710a 100644 --- a/pages/common/git-commit.md +++ b/pages/common/git-commit.md @@ -14,3 +14,7 @@ - Replace the last commit with currently staged changes: `git commit --amend` + +- Commit only specific (already staged) files: + +`git commit {{path/to/my/file1}} {{path/to/my/file2}}`