Git · Junior · Question 56 of 75
How do you set the upstream branch when pushing a new branch for the first time?
- 1
git push --new feature - ✓Correct answer:
git push -u origin feature - 3
git branch --remote feature
Explanation
-u (--set-upstream) links the local branch to origin/feature, so later a plain git push or git pull knows where to go.