Complete the code to show differences between branch1 and branch2.
git diff [1] [2]
The correct syntax to compare two branches is git diff branch1 branch2.
Complete the command to compare branchA with branchB using the three-dot syntax.
git diff [1]The three-dot syntax branchA...branchB shows differences from the merge base to branchB.
Fix the error in the command to compare branchX and branchY.
git diff [1]The correct way to compare two branches is to list them separated by space, like branchX branchY.
Fill both blanks to create a command that shows differences between branch1 and branch2 with color output.
git diff [1] [2] --color
--word-diff or --no-color as branch names.The command compares branch1 and branch2 with color enabled by default or with --color.
Fill all three blanks to create a command that compares branchA and branchB, shows word differences.
git diff [1] [2] [3]
-w instead of --word-diff for word differences.The command git diff branchA branchB --word-diff shows word-level differences between the branches.