jesseduffield / jesseduffield/lazygit
Make multi-remote push behave the same way as opening pull requests
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
**Is your feature request related to a problem? Please describe.**
With the merging of https://github.com/jesseduffield/lazygit/pull/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.
Contributor guide
Assessment
This issue has not been assessed yet.