比较分支机构

显示 new 的尖端和 original 的尖端之间的变化

git diff original new     # equivalent to original..new

显示 new 上的所有更改,因为它从 original 分支 :

git diff original...new     # equivalent to $(git merge-base original new)..new

仅使用一个参数,例如

git diff 原创

相当于

git diff original..HEAD