Git Git Diff Comparing branches


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

git diff original new     # equivalent to

Show all changes on new since it branched from original:

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

Using only one parameter such as

git diff original

is equivalent to

git diff original..HEAD