跳至主要内容

管理用户的推送保护

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

谁可以使用此功能?

对公共仓库,用户推送保护默认开启

  1. 在 GitHub 任意页面的右上角,点击您的个人头像,然后点击 设置

  2. 在侧边栏的“安全”部分,点击 代码安全

  3. 在“User”下,位于“Push protection for yourself”右侧,更新您的设置。

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

© . This site is unofficial and not affiliated with GitHub, Inc.