As per Magit's visual walkthrough, it is possible to save some configs as defaults, e.g: for diffing (section "Changing diff arguments").
I went through the documentation, but did not find anything referencing how to save configs for pushing. All I found was this bit from magit-remote.el library, with which I can figure out how to add more configurations to magit-push-popup
:
(magit-define-popup-switch 'magit-push-popup
?X "My flag" "--force-with-lease")
How can I set --force-with-lease
as default when pushing?