← Quiz: Git Basics: all 10 questions
Quiz: Git Basics · Question 5 of 10
What does git diff --staged show?
What does git diff --staged show?
- A.Untracked files
- B.The changes that are staged for the next commit
- C.All commits
- D.Remote changes
Answer & explanation
Correct answer: The changes that are staged for the next commit
Without --staged, git diff shows unstaged changes.
Can you get the rest right without peeking?
Take the timed Quiz: Git Basics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →