Recall & Review
beginner
What does the command
git stash pop do?It restores the most recently saved changes from the stash and removes that stash entry from the stash list.
Click to reveal answer
intermediate
How is
git stash pop different from git stash apply?git stash pop restores changes and deletes the stash entry, while git stash apply restores changes but keeps the stash entry.Click to reveal answer
intermediate
What happens if there is a conflict when running
git stash pop?Git will show conflict markers in the files. You must manually resolve conflicts before committing the changes.
Click to reveal answer
intermediate
How can you pop a specific stash entry instead of the latest one?
Use
git stash pop stash@{n} where n is the stash index number.Click to reveal answer
beginner
Why use
git stash pop instead of manually copying files?Because it safely restores changes tracked by Git, preserving history and avoiding manual errors.
Click to reveal answer
What does
git stash pop do?✗ Incorrect
git stash pop restores the latest stash and deletes it from the stash list.
Which command restores changes but keeps the stash entry?
✗ Incorrect
git stash apply restores changes but does not remove the stash entry.
How do you specify which stash to pop?
✗ Incorrect
Use stash@{n} to specify the stash index to pop.
What should you do if
git stash pop causes conflicts?✗ Incorrect
Conflicts must be resolved manually before committing.
Why is
git stash pop useful?✗ Incorrect
It restores saved changes and removes them from stash, keeping your work organized.
Explain how
git stash pop works and when you would use it.Think about saving your work temporarily and then bringing it back.
You got /3 concepts.
Describe the difference between
git stash pop and git stash apply.One cleans up stash, the other keeps it.
You got /3 concepts.