mirror of https://github.com/CrimsonTome/tldr.git
parent
d31091d937
commit
700b238b97
|
@ -27,6 +27,10 @@
|
||||||
|
|
||||||
`git diff --summary {{commit}}`
|
`git diff --summary {{commit}}`
|
||||||
|
|
||||||
|
- Create a patch file:
|
||||||
|
|
||||||
|
`git diff > {{target_file}}.patch`
|
||||||
|
|
||||||
- Compare a single file between two branches or commits:
|
- 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}}`
|
||||||
|
|
Loading…
Reference in New Issue