Push With Upstream Fill
Fill in the Blank Medium
Question
Fill in the blank to push a new branch and set up tracking.
Code
git push ___ origin feature
Hint
The flag for upstream tracking is two characters.
Explanation
The -u flag (short for --set-upstream) sets up tracking between your local branch and the remote branch. After the first push with -u, you can simply run git push and git pull without specifying the remote and branch names.
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.