Intermediate
Git & Version Control
Q75 / 100
What is the purpose of "git stash branch <branchname>"?
Correct! Well done.
Incorrect.
The correct answer is A) It creates a new branch from the commit where the stash was created, checks it out, and applies the stashed changes there, dropping the stash if successful
A
Correct Answer
It creates a new branch from the commit where the stash was created, checks it out, and applies the stashed changes there, dropping the stash if successful
Explanation
This is useful when applying a stash directly would cause conflicts due to changes made since stashing — creating a fresh branch from the original commit avoids those conflicts entirely.
Progress
75/100