Spot the Push Mistake
Find the Mistake Medium
Question
This is the first push of a new local branch 'feature'. What is missing?
Code
git push origin feature
Hint
First push of a branch should set up tracking.
Explanation
While git push origin feature works for the first push, it does not set up tracking. Without tracking, future git push and git pull commands require the remote and branch names every time. The better command is: git push -u origin feature, after which git push and git pull work without arguments.
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.