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

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

Like this post? Follow @adriaandotcom on X