Git Revert Quiz
Multiple Choice Medium
Question
What does `git revert <commit>` do?
Hint
Revert adds a new commit; it does not rewrite history.
Explanation
git revert <commit> creates a new commit that inverses the changes introduced by the specified commit. This is safe for shared branches because it does not rewrite history — it adds to it. git reset moves the branch pointer and rewrites history, which is different.
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.