Skip to content

git: auto setup remote on new branch

Posted on:July 15, 2022 at 03:22 PM

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

:tada: