Skip to main content

管理用户的推送通知保护

您可以控制 GitHub 阻止可能包含机密信息的推送的能力。

谁可以使用此功能?

默认情况下,针对公共存储库的用户推送保护处于打开状态

  1. In the upper-right corner of any page on GitHub, click your profile picture, then click Settings.

  2. In the "Security" section of the sidebar, click Code security.

  3. Under "User", to the right of "Push protection for yourself", update your settings.

    Screenshot of the "User" section of the "Code security and analysis" settings page. A button labeled "Disable" is outlined in dark orange.