I have setup the push.default
option to simple
in my git config, because I think it makes more sense so that I don't create unwanted branches on my remote repository if I push something inadvertendly.
However, sometimes, I know that this push is going to create a new branch in the remote, so I'd like to tell git that for this specific command, I'm willing to change the push.default config to current
(so that it creates a branch of the same name as the one I'm currently in), but only for that command.
Is they a way to do this using git ? Or should I just create a bash alias ?