Przeglądaj źródła

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

Ivan Aracki 5 lat temu
rodzic
commit
4057b76db6
1 zmienionych plików z 4 dodań i 0 usunięć
  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}}`