Complete the command to see changes between your working directory and the staging area.
git [1]The git diff command shows the differences between your current files and the staging area.
Complete the command to compare changes between two commits.
git diff [1] [2]
To compare two commits, you specify their IDs after git diff. Here, you start with the first commit ID.
Fix the error in the command to show changes staged for the next commit.
git diff --[1]The correct option to see staged changes is --cached. It shows what is ready to be committed.
Fill both blanks to create a diff of changes between the current branch and the main branch.
git diff [1] [2]
HEAD refers to your current branch, and main is the main branch. This command compares your current work with main.
Fill all three blanks to create a diff that shows changes introduced by the last commit.
git diff [1]~1 [2] -- [3]
This command compares the previous commit (HEAD~1) with the last commit (HEAD) and limits the diff to the current directory (.).