Spot the Merge Mistake
Find the Mistake Medium
Question
This sequence tries to merge 'feature' into 'main'. What is wrong?
Code
git merge feature # currently on feature branch
Hint
Merge combines INTO the current branch.
Explanation
git merge feature merges the feature branch INTO the currently checked-out branch. If you are on feature, this merges feature into feature (a no-op). To merge feature into main, you must first git checkout main, then git merge feature.
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.