mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
git-range-diff: add page (#5701)
This commit is contained in:
parent
9fe15f5609
commit
7aefc85884
1 changed files with 16 additions and 0 deletions
16
pages/common/git-range-diff.md
Normal file
16
pages/common/git-range-diff.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# git range-diff
|
||||
|
||||
> Compare two commit ranges (e.g. two versions of a branch).
|
||||
> More information: <https://git-scm.com/docs/git-range-diff>.
|
||||
|
||||
- Diff the changes of two individual commits:
|
||||
|
||||
`git range-diff {{commit_1}}^! {{commit_2}}^!`
|
||||
|
||||
- Diff the changes of ours and theirs from their common ancestor, e.g. after an interactive rebase:
|
||||
|
||||
`git range-diff {{theirs}}...{{ours}}`
|
||||
|
||||
- Diff the changes of two commit ranges, e.g. to check whether conflicts have been resolved appropriately when rebasing commits from `base1` to `base2`:
|
||||
|
||||
`git range-diff {{base1}}..{{rev1}} {{base2}}..{{rev2}}`
|
Loading…
Add table
Reference in a new issue