'Github: Allow force pushes to specific users/groups

Is there any rule that can be configured on GitHub that restricts who can force-push? The way it looks right now is that any rule opened on any branch automatically prevents force-pushes to anyone (including administrators). I want to allow force-pushes to specific users/groups (e.g., administrators).



Solution 1:[1]

This is now actually supported on GitHub:

https://github.blog/changelog/2021-12-21-specify-who-can-force-push-to-a-repository/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 TomerFi