After updating to Git 2.28 I realized the conditional includes. However I was unable to find a way to set a different pull reconciliation option for master(main) other than the rest.
So for the master(main) branch I want to have --ff-only while for other branches I'd go with --rebase
Is there a way to do it inside the main .gitconfig file, just using onbranch?
The only solution I was able to come up with was:
.gitconfig
[includeIf "onbranch:master"]
path = ~/.gitconfigmaster
and then create a .gitconfigmaster having:
[pull]
ff = only