From a33f630def569a66d7163ff0d4a1ed6d310a2245 Mon Sep 17 00:00:00 2001 From: jitakirin Date: Tue, 31 Oct 2017 22:32:16 +0000 Subject: [PATCH] git-diff: add example using relative time range Close #1368 --- 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 e042dbf60..0c895d397 100644 --- a/pages/common/git-diff.md +++ b/pages/common/git-diff.md @@ -14,6 +14,10 @@ `git diff --staged` +- Show changes from all commits since a given date/time: + +`git diff 'HEAD@{3 days ago}'` + - Show only names of changed files since a given commit: `git diff --name-only {{commit}}`