git compare commits in different branches code example
Example 1: git show diff between branches
git diff branch_1..branch_2
Example 2: how to compare two commits in git
$ git diff 012345..abcdef
git diff branch_1..branch_2
$ git diff 012345..abcdef