git config --global push.default current
Set default tracking for new branches
This command sets the default behavior for pushing to the upstream branch to 'current'. Before issuing this command, git by default will push the current branch to the "upstream" branch in the remote, even if it does not have the same name.
This command ensures the current branch is always pushed to the branch with the same name in the remote, regardless of whether it's the "upstream" branch (the branch being "tracked" by the current branch).
Use with care as this usually is not what you want to do.