How to diff a commit with its parent


Aside from writing an alias or script, is there a shorter command for getting the diff for a particular commit?

git diff 15dc8^..15dc8

If you only give the single commit id git diff 15dc8, it diffs that commit against HEAD.


Use git show $COMMIT. It'll show you the log message for the commit, and the diff of that particular commit.

Difference between author and committer in Git?

What does Bump Version stand for?