mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 14:46:59 +00:00
Update cheatsheets
This commit is contained in:
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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 months|weeks|days|hours|seconds ago}'`
|
||||
`git diff 'HEAD@{{{3 months|weeks|days|hours|seconds ago}}}'`
|
||||
|
||||
- Show diff statistics, like files changed, histogram, and total line insertions/deletions:
|
||||
|
||||
@@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Compare a single file between two branches or commits:
|
||||
|
||||
`git diff {{branch_1}}..{{branch_2}} [--] {{path/to/file}}`
|
||||
`git diff {{branch_1}}..{{branch_2}} {{path/to/file}}`
|
||||
|
||||
- Compare different files from the current branch to other branch:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user