Anyone with admin permissions to a repository can enable force pushes.
About force pushes to protected branches
By default, force pushes are blocked on all protected branches. When you enable force pushes to a protected branch, anyone with at least write permissions to the repository can force push to the branch, including those with admin permissions.
Enabling force pushes will not override any other branch protection rules. For example, if a branch requires a linear commit history, you cannot force push merge commits to that branch.
You cannot enable force pushes for a protected branch if a site administrator has blocked force pushes to all branches in your repository. For more information, see "Blocking force pushes to repositories owned by a user account or organization."
If a site administrator has blocked force pushes to the default branch only, you can still enable force pushes for any other protected branch.
リポジトリ中の一部あるいはすべてのブランチに対して、保護されたブランチの設定を自動的に強制できます。 詳しい情報については保護されたブランチの設定を参照してください。
Enabling force pushes
- GitHub Enterpriseで、リポジトリのメインページにアクセスしてください。
- リポジトリ名の下で Settings(設定)をクリックしてください。

- 左のメニューでBranches(ブランチ)をクリックしてください。

- "Branch protection rules(ブランチ保護のルール)"の隣のAdd rule.(ルールの追加)をクリックしてください。

- "Branch name pattern(ブランチ名のパターン)"の下で、保護したいブランチの名前もしくはパターンを入力してください。

- Under "Rules applied to everyone including administrators", select Allow force pushes.

- Click Create.

