Open abitrolly opened 2 years ago
I think this would be better as a custom command
.
This could also be a good candidate for a pre-set custom command. See https://github.com/jesseduffield/lazygit/wiki/Custom-Commands-Compendium
It's much easier to implement features if a user has created a custom command for it first, because it's clearer what the expected behaviour is
@konosubakonoakua gud, but doesn't autodetect upstream
remote. I do this by parsing PR page https://github.com/yakshaveinc/linux/blob/master/bin/amend-pr.sh
Is your feature request related to a problem? Please describe.
I'm always frustrated when I need to rebase against the parent and have no upsteam remote in my clone.
Describe the solution you'd like
In remotes menu press (a)dd (u)pstream to detect if the repo is a GitLab/GitHub fork and add
upstream
remote.Additional context
Current shortcut for adding remote is (n)ew, which is not intuitive, because plain git uses
git remote add
with no (n) letters. I don't know if renaming or deprecating it is possible.An alternative is to use (u) shortcut for upstream.