diff --git a/pages/common/git-diff.md b/pages/common/git-diff.md index 0c895d397..f0e6d92ec 100644 --- a/pages/common/git-diff.md +++ b/pages/common/git-diff.md @@ -14,9 +14,9 @@ `git diff --staged` -- Show changes from all commits since a given date/time: +- Show changes from all commits since a given date/time (a date expression, e.g. `1 week 2 days` or an ISO date): -`git diff 'HEAD@{3 days ago}'` +`git diff 'HEAD@{3 months|weeks|days|hours|seconds ago}'` - Show only names of changed files since a given commit: