compare 2 local branches git code example Example: git compare two branches git diff branch1..branch2