← Quiz: Undoing Changes: all 10 questions
Quiz: Undoing Changes · Question 3 of 10
You need to switch branches but have unfinished, uncommitted work. What do you use?
You need to switch branches but have unfinished, uncommitted work. What do you use?
- A.git reset --hard
- B.git stash
- C.git revert
- D.git push
Answer & explanation
Correct answer: git stash
stash saves the work aside; stash pop brings it back.
Can you get the rest right without peeking?
Take the timed Quiz: Undoing Changes quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →