Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (29.3k points)

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 a parameter.

1 Answer

0 votes
by (50.2k points)

You can see what a commit did, using git show, for that you can do:

git show <commit-id>

And to show what a commit did to stats you can use: 

git show <commit-id> --stat 


Browse Categories