# 关于防止泄漏的操作指南

了解如何在不同环境中使用 GitHub 的推送保护。

## Links

* [从命令行使用推送保护](/zh/enterprise-server@3.22/code-security/how-tos/secure-your-secrets/work-with-leak-prevention/push-protection-on-the-command-line)

  了解用于在 GitHub 在更改中检测到机密时从命令行取消阻止推送到 secret scanning 的选项。

* [通过 GitHub UI 使用推送保护功能](/zh/enterprise-server@3.22/code-security/how-tos/secure-your-secrets/work-with-leak-prevention/push-protection-in-the-github-ui)

  了解当 secret scanning 在你的更改中检测到机密时，解封提交的选项。