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