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.
Follow:
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.