mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 20:42:07 +02:00
git-diff: update examples to show other possibilities
Show that date expression/spec can contain other items and combinations of items, or an actual timestamp.
This commit is contained in:
parent
a33f630def
commit
29bae17f8c
1 changed files with 2 additions and 2 deletions
|
@ -14,9 +14,9 @@
|
||||||
|
|
||||||
`git diff --staged`
|
`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:
|
- Show only names of changed files since a given commit:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue