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