Git Git Diff Comparing branches


Example

Show the changes between the tip of new and the tip of original:

git diff original new     # equivalent to original..new

Show all changes on new since it branched from original:

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

Using only one parameter such as

git diff original

is equivalent to

git diff original..HEAD