You can control the default behavior by setting push.default in your git config.


The possible values are referenced in the official documentation.


Here is the setting I use to always push the current branch on a remote branch with the same name: current


Set it globally with:

git config push.default current


Like that, when I am on branch fix/tooltip-label and I push, it will push automatically on a remote branch called fix/tooltip-label.