Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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 

Reference: https://git-scm.com/docs/git-show

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94k users

Browse Categories

...