瀏覽代碼

git diff: Add --staged option

Eliot Sykes 9 年之前
父節點
當前提交
04eae51baf
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pages/common/git-diff.md

+ 4 - 0
pages/common/git-diff.md

@@ -13,3 +13,7 @@
 - Output a condensed summary of extended header information.
 
 `git diff --summary {{PATHSPEC}}`
+
+- Show staged (added, but not yet committed) changes only.
+
+`git diff --staged`