Skip to content

Make multi-remote push behave the same way as opening pull requests #4292

@ChrisMcD1

Description

@ChrisMcD1

Is your feature request related to a problem? Please describe.
With the merging of #1889, we now have a very nice flow for choosing target branches for remotes. I would like to have the equivalent flow when pushing my branch up to a remote. Currently I have to press my arrow keys to go to the start of the line and erase the default remote and put in my new one.

Describe the solution you'd like
My ideal solution behaves the same way as opening a pull request with multiple remotes. If you have one remote, the suggestions will just show an auto-populated branch name. If you have multiple, then it will show you your remotes, with the default selected. After you pick your target remote, it will show you your default branch name filled out

Describe alternatives you've considered
Only alternative I can think of is doing no changes.

Additional context
I plan to implement this!

This would add an additional keystroke in the happy path case where you have 2 remotes and all the defaults are correct. You would have to press Confirm twice. Since this was deemed an acceptable trade-off for the opening of a pull request, I think it should be acceptable here too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions