Re:This is how I git
by tele_ski on Tuesday November 10, 2020 @10:29AM
(#25047001)
I always go into each new repo I create and turn off the ability to merge and require commits to be up to date with master, I think this might get what you want?
[ Parent
| on HN ]
Do you know can I enforce that a PR must be up to date with master before it can be merged? I don't remember seeing that option in the branch protection settings.
"Require branches to be up to date before merging" is a check box under branch protection rules, I always turn it it. It's under the required status checks section.
Thanks! Turns out that this setting is hidden unless you first check the "Require status checks" option.