소스 검색

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}}`