git diff compare code example
Example 1: git show diff between branches
git diff branch_1..branch_2
Example 2: git diff of a file between two commits
git diff <branch_hash> <other_branch_hash> -- <file_path>
git diff branch_1..branch_2
git diff <branch_hash> <other_branch_hash> -- <file_path>