When you enable branch restrictions, only users, teams, or apps that have been given permission can push to the protected branch. 在启用分支限制后,只有被授予权限的用户,团队或应用才可推送到受保护分支。 You can view and edit the users, teams, or apps with push access to a protected branch in the protected branch's settings.
You can only give push access to a protected branch to users, teams, or installed GitHub 应用程序 with write access to a repository.
People and apps with admin permissions to a repository are always able to push to a protected branch.
注:如果选中“Include administrators(包括管理员)”,并且您对分支启用了必需状态检查,如有任何状态检查失败,则即使是具有管理员权限的人员和应用,将更改推送到受保护分支的任何尝试也会失败。 更多信息请参阅“启用必需状态检查”。

