How To Push Without Set Upstream In Git

Tiered of typing git branch --set-upstream awesome-branch origin/awesome-branch?

Change your git setting to use the current branch name:

git config --global push.default current

And you can just use

git push

Thanks to zamith on stackoverflow.com.

Happy coding! – Found a mistake or a typo? Please submit a PR to my GitHub-repo.

Get my next post right in your inbox via Blogsend
(I don't get your email address so I can't spam you)

Like this post? Follow @adriaanvrossum on Twitter