Преглед изворни кода

git commit: add example for committing specific files (#3090)

Ivan Aracki пре 5 година
родитељ
комит
4057b76db6
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      pages/common/git-commit.md

+ 4 - 0
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}}`