浏览代码

git-diff: create a patch file

Frank 8 年之前
父节点
当前提交
6bdd183e86
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pages/common/git-diff.md

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

@@ -17,3 +17,7 @@
 - Show staged (added, but not yet committed) changes only:
 - Show staged (added, but not yet committed) changes only:
 
 
 `git diff --staged`
 `git diff --staged`
+
+- Create a patch file:
+
+`git diff > {{target-file.patch}}`