@@ -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}}`
|
||||||
|
Reference in New Issue
Block a user