Git Reset Modes Quiz
Multiple Choice Medium
Question
Which `git reset` mode keeps changes in the working directory but unstages them?
Hint
The default mode unstages but does not touch your files.
Explanation
git reset --mixed (the default) moves the branch pointer and unstages changes, but leaves the modified files in your working directory. --soft keeps changes staged. --hard discards all changes completely. --mixed is the safest way to unstage without losing work.
Related Resources
Related Lessons
Related Cheatsheets
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.