Git Push Set Upstream

Feb 3, 2019
git push -u origin master vs git push origin master

Both are the same, except -u do git branch --set-upstream master origin/master as well.

If you use git push -u origin master, you can use git pull (which infer origin master).

If you didn't do --set-upstream, you need the full command git pull origin master.

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.