Git Git Diff Show changes between two commits


git diff 1234abc..6789def    # old   new

E.g.: Show the changes made in the last 3 commits:

git diff @~3..@    # HEAD -3   HEAD

Note: the two dots (..) is optional, but adds clarity.

This will show the textual difference between the commits, regardless of where they are in the tree.