Git · Junior · Question 7 of 75
What does plain git diff show?
- 1Differences between local and remote branches
- ✓Correct answer: Changes in the working tree that are not staged yet
- 3Changes that are staged for the next commit
Explanation
git diff compares the working tree with the index. Use git diff --staged to see what will go into the next commit, and git diff HEAD for both.