mirror of https://github.com/CrimsonTome/tldr.git
git-diff: add cross-branch diff example (#1454)
parent
bad0110e8a
commit
91d54f868e
|
@ -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…
Reference in New Issue