gitu
gitu copied to clipboard
Configure/use upstream/pushRemote when pushing and pulling
@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
andp
:p
was previously thepush.default
(which often would beupstream
). Nowu
isupstream
, andp
ispushRemote
- 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 ofto upstream