Version 2.37.0 brought a well-awaited feature! No more git push --set-upstream every time we create a new branch.

You can set a global config that will automatically set up the current branch on remote.

git config --global --add --bool push.autoSetupRemote true

Two terminals compared. Old: git push fails because the current branch has no upstream branch. New: git push creates the remote branch and sets it to track origin/example.

🎉