gitu icon indicating copy to clipboard operation
gitu copied to clipboard

Configure/use upstream/pushRemote when pushing and pulling

Open altsem opened this issue 4 months ago • 1 comments

@rynoV I've been hacking around and testing things out. I opened up this new PR, but it continues on your work. I'd appreciate any input on the code! :)

To summarize:

  • Change bindings to u and p: p was previously the push.default (which often would be upstream). Now u is upstream, and p is pushRemote
  • Fix when upstream was a local branch
  • Make push-commands more explicit with refspecs (I copied Magit)
  • Display upstream & pushRemote dynamically in the menus: to origin/main instead of to upstream

altsem avatar Oct 05 '24 11:10 altsem