Sam Liao Sam Liao - 3 months ago 13
Git Question

How to show what a commit did?

A stupid way I know is:

git diff commit-number1 commit-number2


any better way?

I mean I want to know the commit1 itself, I don't want to add the commit2 before it as parameter.

Answer
git show <commit-id>

Documentation for git show