From 6bdd183e86f33a751aa438290036dc9ec101e934 Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 17 Jun 2016 13:08:01 +0200 Subject: [PATCH] git-diff: create a patch file --- pages/common/git-diff.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/git-diff.md b/pages/common/git-diff.md index 6903360bb..cbca7d470 100644 --- a/pages/common/git-diff.md +++ b/pages/common/git-diff.md @@ -17,3 +17,7 @@ - Show staged (added, but not yet committed) changes only: `git diff --staged` + +- Create a patch file: + +`git diff > {{target-file.patch}}`