我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们
文章版本: Enterprise Server 2.15

此版本的 GitHub Enterprise 将停止服务 此版本的 GitHub Enterprise 已停止服务 2019-10-16. 即使针对重大安全问题,也不会发布补丁。 For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

关于受保护分支和必需状态检查

受保护分支确保仓库的协作者无法对分支进行不可撤销的更改。 必需状态检查确保在协作者可以对受保护分支进行更改前,所有必需的 CI 测试都已通过。 Branches within repositories that belong to organizations can be configured so that only certain users or teams can push to the branch.

受保护分支在仓库管理员选择保护的分支上阻止 Git 的多个功能。 受保护分支:

Anyone with admin permissions for a repository are always able to push to a protected branch. If you enable branch restrictions, only users or teams that have been given permission can push to a protected branch. 更多信息请参阅”配置受保护分支和必需状态检查“。

限制的分支权限.

Note: If "Include administrators" is selected, you've enabled required status checks on the branch, and status checks fail, any attempt to push changes to the protected branch will also fail, even for people with admin permissions.

问问别人

找不到要找的内容?

联系我们