mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-11 06:15:42 +02:00
parent
d31091d937
commit
700b238b97
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue