Force Push Quiz
Multiple Choice Medium
Question
Why is `git push --force` dangerous?
Hint
Force push rewrites remote history.
Explanation
git push --force overwrites the remote branch with your local version, discarding any commits on the remote that you do not have locally. This can destroy work that collaborators have pushed. Use --force-with-lease instead, which only force-pushes if no one else has pushed since you last fetched.
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.