Git · Middle · Question 37 of 75
What does git stash -u add compared with plain git stash?
- 1It stashes only the staged changes
- 2It stashes changes into a new branch
- ✓Correct answer: It also stashes untracked files
Explanation
Plain stash leaves new files in place, which can be surprising when you switch branches. -a also includes ignored files.