Intermediate
Git & Version Control
Q42 / 100
What does "git stash" do?
Correct! Well done.
Incorrect.
The correct answer is B) It temporarily saves uncommitted changes (both staged and unstaged) and reverts the working directory to match HEAD, allowing you to switch contexts and later reapply those changes
B
Correct Answer
It temporarily saves uncommitted changes (both staged and unstaged) and reverts the working directory to match HEAD, allowing you to switch contexts and later reapply those changes
Explanation
"git stash" is useful when you need to switch branches quickly without committing half-finished work; "git stash pop" or "git stash apply" later restores the stashed changes.
Progress
42/100