Recall & Review
beginner
What is 'git stash' used for?
It temporarily saves your uncommitted changes so you can work on something else without losing your current work.
Click to reveal answer
beginner
How does stashing help when switching branches?
Stashing saves your changes so you can switch branches without committing incomplete work, then apply the changes later.
Click to reveal answer
intermediate
What happens to your changes after you run 'git stash'?
Your changes are saved in a hidden stack and your working directory is cleaned to match the last commit.
Click to reveal answer
intermediate
Can you stash multiple sets of changes in Git?
Yes, Git allows multiple stashes saved in a stack, which you can apply or drop individually later.
Click to reveal answer
beginner
What command restores your stashed changes back to your working directory?
The command 'git stash apply' restores the most recent stash without removing it from the stash list.
Click to reveal answer
What does 'git stash' do?
✗ Incorrect
'git stash' saves your uncommitted changes temporarily so you can work on something else.
After running 'git stash', what happens to your working directory?
✗ Incorrect
The working directory is cleaned to match the last commit, removing your uncommitted changes temporarily.
Which command restores stashed changes without removing them from the stash list?
✗ Incorrect
'git stash apply' restores changes but keeps the stash in the list for later use.
Can you stash multiple sets of changes in Git?
✗ Incorrect
Git allows multiple stashes saved in a stack, which you can manage individually.
Why would you use 'git stash' before switching branches?
✗ Incorrect
Stashing saves your incomplete work so you can switch branches without losing changes.
Explain how 'git stash' helps you manage unfinished work when you need to switch tasks quickly.
Think about saving your work without committing it.
You got /4 concepts.
Describe the difference between 'git stash apply' and 'git stash pop'.
One keeps the stash, the other removes it after restoring.
You got /3 concepts.