Mid
From PDF
Version Control
Git & GitHub
How can you view the difference between two commits?
Use git diff with two commit hashes:
git diff <commit1> <commit2>
This shows line-by-line changes between the two commits.
Example:
If you want to compare how your project changed between version 1.0 and version 1.1:
git diff v1.0 v1.1
You’ll see added, removed, and modified lines across files.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png