From 700b238b9799532fcae29e7209add12007d6b62b Mon Sep 17 00:00:00 2001 From: zdroid Date: Fri, 17 Jul 2020 19:59:43 +0200 Subject: [PATCH] Revert "git-diff: remove 9th example" This reverts commit d31091d9377a79f80940adee753910a86ab6f997. --- 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 5b8593222..cb2695dbf 100644 --- a/pages/common/git-diff.md +++ b/pages/common/git-diff.md @@ -27,6 +27,10 @@ `git diff --summary {{commit}}` +- Create a patch file: + +`git diff > {{target_file}}.patch` + - Compare a single file between two branches or commits: `git diff {{branch_1}}..{{branch_2}} [--] {{path/to/file}}`