Compare branches

suggest change

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

git diff original compares the working tree to original, including unstaged edits. It is not the same as git diff original..HEAD, which compares the two commits and ignores unstaged work.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents