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

When I do git diff COMMIT I see the changes between that commit and HEAD (as far as I know), but I would like to see the changes that were made by that single commit.

I haven't found any obvious options on diff / log that will give me that output.

1 Answer

0 votes
by (50.2k points)

To see the changes between two commits use


This will show you the changes between its previous commit and this commit. 

For details go through-

git show COMMIT 

Will show you commit’s data, including diff - but not merge commits.

Related questions

Browse Categories