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 ^! ^!
- Diff the changes of ours and theirs from their common ancestor, e.g. after an interactive rebase:
git range-diff ...
- Diff the changes of two commit ranges, e.g. to check whether conflicts have been resolved appropriately when rebasing commits from
base1tobase2:
git range-diff .. ..
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
