比較分支機構

顯示 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