Finding difference in commits of Git repository
- In last lab we did two commits to our git repository
- Let’s look at those two commits
git log
- Let’s compare the difference between these two commits
git diff <commit-id-1> <commit-id-2>
Usinggit diff
command followed by the commit IDs you can compare the differences between the files which has been done between 2 commits