check diff in two commits git diff code example
Example 1: git show diff between branches
git diff branch_1..branch_2
Example 2: git diff two commits
-> git diff 0da94be 59ff30c > my.patch
-> git apply my.patch
git diff branch_1..branch_2
-> git diff 0da94be 59ff30c > my.patch
-> git apply my.patch