mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 12:53:28 +02:00
git-diff: add cross-branch diff example (#1454)
This commit is contained in:
parent
bad0110e8a
commit
91d54f868e
1 changed files with 4 additions and 0 deletions
|
@ -25,3 +25,7 @@
|
|||
- Create a patch file:
|
||||
|
||||
`git diff > {{target_file}}.patch`
|
||||
|
||||
- Compare a single file between two branches or commits:
|
||||
|
||||
`git diff {{branch_1}}..{{branch_2}} [--] {{path/to/file}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue