-
In the upper-right corner of any page on GitHub, click your profile picture, then click Settings.
-
In the "Security" section of the sidebar, click Code security.
-
Under "User", to the right of "Push protection for yourself", update your settings.

管理用户的推送通知保护
您可以控制 GitHub 阻止可能包含机密信息的推送的能力。