git-diff: add example using relative time range

Close #1368
coverage
jitakirin 2017-10-31 22:32:16 +00:00 committed by GitHub
parent 3b1696ecb4
commit a33f630def
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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