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.
Puedes requerir automáticamente la configuración de rama protegida para algunas o todas las ramas de tu repositorio. Para obtener más información, consulta "Configurar ramas protegidas".
Enabling force pushes
- En GitHub, visita la página principal del repositorio.
- Debajo de tu nombre de repositorio, da clic en Configuración.

- En el menú izquierdo, da clic en Ramas.

- Junto a "Reglas de protección de rama", da clic en Agregar regla.

- Debajo del "Patrón del nombre de la rama", teclea el nombre de la rama o el patrón que quieras proteger.

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

- Click Create.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
